Documentation ¶
Index ¶
- type Service
- func (s *Service) CheckPassword(username string, password []byte) (ok bool, user *distrybute.User, err error)
- func (s *Service) CreateNewUser(username string, password []byte) (user *distrybute.User, err error)
- func (s *Service) Delete(deleteReference string) (err error)
- func (s *Service) DeleteUser(id uuid.UUID) (err error)
- func (s *Service) GetUserByAuthorizationToken(token string) (bool, *distrybute.User, error)
- func (s *Service) GetUserByUsername(username string) (user *distrybute.User, err error)
- func (s Service) Init() error
- func (s *Service) ListUsers() (users []*distrybute.User, err error)
- func (s *Service) RefreshAuthorizationToken(id uuid.UUID) (token string, err error)
- func (s *Service) Request(callReference string) (entry *distrybute.FileEntry, err error)
- func (s *Service) ResolveAuthorizationToken(id uuid.UUID) (token string, err error)
- func (s *Service) Store(filename, contentType string, size int64, author uuid.UUID, reader io.Reader) (entry *distrybute.FileEntry, err error)
- func (s *Service) UpdatePassword(id uuid.UUID, password []byte) (err error)
- func (s *Service) UpdateUsername(id uuid.UUID, newUsername string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CheckPassword ¶
func (*Service) CreateNewUser ¶
func (*Service) GetUserByAuthorizationToken ¶
func (*Service) GetUserByUsername ¶
func (*Service) RefreshAuthorizationToken ¶
func (*Service) ResolveAuthorizationToken ¶
func (*Service) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.