More stuff, add stuff, add todos
This commit is contained in:
parent
28c5f546fe
commit
f69480b6b4
12 changed files with 40 additions and 4 deletions
4
storage/cache/coderPools.go
vendored
4
storage/cache/coderPools.go
vendored
|
@ -42,7 +42,9 @@ func (p *EncoderPool) Encode(raw any) ([]byte, error) {
|
|||
defer encoder.Unlock()
|
||||
// Clear the buffer to avoid funky output from previous operations
|
||||
encoder.Buffer.Reset()
|
||||
encoder.Encoder.Encode(raw)
|
||||
if err := encoder.Encoder.Encode(raw); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
data, err := io.ReadAll(encoder.Buffer)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
package mediaprovider
|
||||
|
||||
// TODO: Implement me
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package storage
|
||||
|
||||
// TODO: More helper stuff
|
||||
|
||||
func (s *Storage) NewRemoteUser(fullHandle string) (*Account, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
|
|
@ -5,4 +5,7 @@ type Role struct {
|
|||
Name string
|
||||
// If set, counts as all permissions being set and all restrictions being disabled
|
||||
FullAdmin bool
|
||||
// TODO: More control options
|
||||
// Extend upon whatever Masto, Akkoma and Misskey have
|
||||
// Lots of details please
|
||||
}
|
||||
|
|
|
@ -13,3 +13,5 @@ type UserInfoField struct {
|
|||
Value string
|
||||
LastUrlCheckDate *time.Time // Used if the value is an url to somewhere. Empty if value is not an url
|
||||
}
|
||||
|
||||
// TODO: Add functions to store, load, update and delete these
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue