Documentation
¶
Index ¶
- Variables
- type Agreement
- type DB
- func (db *DB) Close() error
- func (db *DB) GetAgreementsForUserUUID(uuid string) ([]Agreement, error)
- func (db *DB) GetDocument(name string) (Document, error)
- func (db *DB) GetDocumentsForUserUUID(uuid string) ([]UserDocument, error)
- func (db *DB) GetUser(uuid string) (User, error)
- func (db *DB) GetUserByEmail(email string) ([]*User, error)
- func (db *DB) GetUserByUsername(username string) (User, error)
- func (db *DB) GetUsersByUUID(uuids []string) ([]*User, error)
- func (db *DB) Init() error
- func (db *DB) PatchUser(user User) error
- func (db *DB) Ping() error
- func (db *DB) PostUser(user User) error
- func (db *DB) PutAgreement(agreement Agreement) error
- func (db *DB) PutDocument(doc Document) error
- type Document
- type TempDB
- type User
- type UserDocument
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDocumentNotFound = errors.New("document not found") ErrUserNotFound = errors.New("user not found") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GetAgreementsForUserUUID ¶
func (*DB) GetDocumentsForUserUUID ¶
func (db *DB) GetDocumentsForUserUUID(uuid string) ([]UserDocument, error)
func (*DB) GetUserByEmail ¶ added in v0.6.0
func (*DB) GetUserByUsername ¶ added in v0.9.0
func (*DB) GetUsersByUUID ¶ added in v0.6.0
func (*DB) PutAgreement ¶
func (*DB) PutDocument ¶
Click to show internal directories.
Click to hide internal directories.