Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemsFileRepo ¶
type ItemsFileRepo struct {
// contains filtered or unexported fields
}
func NewItemsFileRepo ¶
func NewItemsFileRepo() *ItemsFileRepo
func (*ItemsFileRepo) Remove ¶
func (r *ItemsFileRepo) Remove(uid string)
func (*ItemsFileRepo) Start ¶
func (r *ItemsFileRepo) Start() error
func (*ItemsFileRepo) Stop ¶
func (r *ItemsFileRepo) Stop()
func (*ItemsFileRepo) Store ¶
func (r *ItemsFileRepo) Store(i *model.Item)
type ItemsRepository ¶
type UserFileRepository ¶
type UserFileRepository struct {
// contains filtered or unexported fields
}
func NewFileUserRepo ¶
func NewFileUserRepo(logger *zap.SugaredLogger, userFile string) *UserFileRepository
func (*UserFileRepository) CheckUserAuth ¶
func (r *UserFileRepository) CheckUserAuth(user, password string) bool
func (*UserFileRepository) GetUser ¶
func (r *UserFileRepository) GetUser(username string) *model.UserInfo
func (*UserFileRepository) Start ¶
func (r *UserFileRepository) Start() error
func (*UserFileRepository) Stop ¶
func (r *UserFileRepository) Stop()
func (*UserFileRepository) UserIsValid ¶
func (r *UserFileRepository) UserIsValid(user, sn string) bool
Click to show internal directories.
Click to hide internal directories.