Documentation
¶
Index ¶
Constants ¶
View Source
const UserKey = userKey("UserKey")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrAlreadyExists ¶
type ErrAlreadyExists error
type ErrBadlyFormattedJson ¶
type ErrBadlyFormattedJson error
type ErrEditConflict ¶
type ErrEditConflict error
type ErrInvalidCredentials ¶
type ErrInvalidCredentials error
type ErrNoRecord ¶
type ErrNoRecord error
type RepositoryProvider ¶
type RepositoryProvider interface { CreateImage(base64File, name string) (int64, error) GetImage(id int64) (*string, *string, error) CreateUser(email, name string, avatarId *int64, passwordHash []byte) error GetUser(email string) (*User, error) CreateToken(userId int64, hash []byte, expiry time.Time) error GetUserFromToken(token []byte) (*User, error) CreateTask(title, description, status string, assignee int64) error GetAllTasks(status string) ([]*Task, error) }
type ServiceProvider ¶
type ServiceProvider interface { CreateImage(file io.ReadCloser) (int64, error) GetImage(id int64) (*Image, error) CreateTask(title, description, status string, assignee int64) error GetAllTasks(status string) ([]*Task, error) Authenticate(token string) (*User, error) CreateToken(userId int64) (*string, error) GetUser(email, password string) (*User, error) CreateUser(email, name, password string, avatarId *int64) error }
Click to show internal directories.
Click to hide internal directories.