Documentation ¶
Index ¶
- type Storage
- func (sto *Storage) DeleteLink(id string) error
- func (sto *Storage) DeleteSession(id string) error
- func (sto *Storage) DeleteUser(id string) error
- func (sto *Storage) GetLink(id string) (link models.Link, err error)
- func (sto *Storage) GetSession(id string) (models.Session, error)
- func (sto *Storage) GetUser(id string) (user models.User, err error)
- func (sto *Storage) GetUserByName(name string) (user models.User, err error)
- func (sto *Storage) IncreaseLinkHitCount(id string) error
- func (sto *Storage) ListLinks(ownerID string, limit, offset uint) ([]models.Link, error)
- func (sto *Storage) ListSessions(ownerID string, limit, offset uint) ([]models.Session, error)
- func (sto *Storage) ListUsers(limit, offset uint) ([]models.User, error)
- func (sto *Storage) SaveLink(link models.Link) error
- func (sto *Storage) SaveSession(session models.Session) error
- func (sto *Storage) SaveUser(user models.User) error
- func (sto *Storage) UpdateLinkContent(id, content string) error
- func (sto *Storage) UpdateSessionToken(id string, tokenID string) error
- func (sto *Storage) UpdateUser(user user_repository.UpdatePayload) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
func (*Storage) DeleteLink ¶
func (*Storage) DeleteSession ¶
func (*Storage) DeleteUser ¶
func (*Storage) GetUserByName ¶
func (*Storage) IncreaseLinkHitCount ¶
func (*Storage) ListSessions ¶
func (*Storage) UpdateLinkContent ¶
func (*Storage) UpdateSessionToken ¶
func (*Storage) UpdateUser ¶
func (sto *Storage) UpdateUser(user user_repository.UpdatePayload) error
Click to show internal directories.
Click to hide internal directories.