Merge branch 'main' of gitlab.com:mstarongitlab/linstrom

This commit is contained in:
Melody Becker 2024-09-15 12:25:45 +02:00
commit 71beed7eb3
86 changed files with 34935 additions and 155 deletions

View file

@ -1,7 +1,13 @@
// TODO: Unify function names
// Storage is the handler for cache and db access
// It handles storing various data in the database as well as caching that data
// Said data includes notes, accounts, metadata about media files, servers and similar
package storage
import (
"errors"
"fmt"
"github.com/rs/zerolog/log"
"gitlab.com/mstarongitlab/linstrom/storage/cache"
@ -41,3 +47,8 @@ func NewStorage(dbUrl string, cache *cache.Cache) (*Storage, error) {
return &Storage{db, cache}, nil
}
// TODO: Placeholder. Update to proper implementation later. Including signature
func (s *Storage) FindLocalAccount(handle string) (string, error) {
return handle, nil
}