Documentation
¶
Index ¶
- type Account
- type AuthService
- func (s *AuthService) Create(data *Account) error
- func (s *AuthService) Delete(username string) error
- func (s *AuthService) Read(username string) (*Account, error)
- func (s *AuthService) Token(username, password string) string
- func (s *AuthService) Update(username, password string) error
- func (s *AuthService) Verify(username, password string) (bool, error)
- func (s *AuthService) VerifyToken(username, encryptPw string) (bool, error)
- type DirEntry
- type PrivDir
- type PrivDirService
- type Version
- type WorkerService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct{}
func NewAuthService ¶
func NewAuthService() *AuthService
func (*AuthService) Create ¶
func (s *AuthService) Create(data *Account) error
func (*AuthService) Delete ¶
func (s *AuthService) Delete(username string) error
func (*AuthService) Token ¶
func (s *AuthService) Token(username, password string) string
func (*AuthService) Update ¶
func (s *AuthService) Update(username, password string) error
func (*AuthService) VerifyToken ¶
func (s *AuthService) VerifyToken(username, encryptPw string) (bool, error)
type PrivDirService ¶
type PrivDirService struct {
// contains filtered or unexported fields
}
func NewPrivDirService ¶
func NewPrivDirService(acc *Account) *PrivDirService
func (*PrivDirService) Delete ¶
func (sv *PrivDirService) Delete(dirname string) error
func (*PrivDirService) Query ¶
func (sv *PrivDirService) Query() []PrivDir
func (*PrivDirService) QueryUser ¶
func (sv *PrivDirService) QueryUser() []PrivDir
type Version ¶
type Version struct {
Version string `json:"version"`
Branch string `json:"branch"`
Hash string `json:"hash"`
}
func NewVersion ¶
type WorkerService ¶
type WorkerService struct{}
func NewWorkerService ¶
func NewWorkerService() *WorkerService
Click to show internal directories.
Click to hide internal directories.