Documentation ¶
Index ¶
- Constants
- func Initialize(db *gorm.DB, us *Service) error
- type Service
- func (s *Service) Create(name string, api bool, deploy bool, paths []string) (*entity.User, string, error)
- func (s *Service) Delete(id uint) error
- func (s *Service) GetAll(limit, offset uint64) ([]entity.User, uint64, error)
- func (s *Service) GetByName(name string) (*entity.User, error)
- func (s *Service) GetPaths(user *entity.User) ([]entity.Path, error)
- func (s *Service) Update(id uint, deploy bool, paths []string) (*entity.User, error)
- func (s *Service) UpdateToken(id uint) (*entity.User, string, error)
Constants ¶
View Source
const ( TokenLength = 36 BcryptCost = 12 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.