More stuff, add stuff, add todos

This commit is contained in:
Melody Becker 2024-09-13 15:02:32 +02:00
parent 28c5f546fe
commit f69480b6b4
12 changed files with 40 additions and 4 deletions

View file

@ -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

View file

@ -1 +1,3 @@
package mediaprovider
// TODO: Implement me

View file

@ -1,5 +1,7 @@
package storage
// TODO: More helper stuff
func (s *Storage) NewRemoteUser(fullHandle string) (*Account, error) {
return nil, nil
}

View file

@ -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
}

View file

@ -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