Documentation ¶
Index ¶
- func IssueToken(user *models.User) (string, error)
- type LogInterface
- type LogService
- type NodeInterface
- type NodeService
- type PermissionInterface
- type PermissionService
- type PipelineInterface
- type PipelineService
- type RoleInterface
- type RoleService
- type TaskInterface
- type TaskService
- type UserInterface
- type UserService
- func (service *UserService) Attempt(username, passwod string) (token string, err error)
- func (service *UserService) Destroy(id string, force bool) (err error)
- func (service *UserService) FindByEmail(email string) *models.User
- func (service *UserService) FindByID(id string) (*models.User, error)
- func (service *UserService) RetrieveByCredentials(username, password string) (user *models.User, err error)
- func (service *UserService) Users(params map[string]string) (*[]models.User, *response.Meta)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogInterface ¶
type LogInterface interface { }
func NewLogService ¶
func NewLogService() LogInterface
type LogService ¶
type LogService struct { }
type NodeInterface ¶
func NewNodeService ¶
func NewNodeService() NodeInterface
type NodeService ¶
type NodeService struct { }
type PermissionInterface ¶
type PermissionInterface interface { }
func NewPermissionService ¶
func NewPermissionService() PermissionInterface
type PermissionService ¶
type PermissionService struct { }
type PipelineInterface ¶
type PipelineInterface interface { }
func NewPipelineService ¶
func NewPipelineService() PipelineInterface
type PipelineService ¶
type PipelineService struct { }
type RoleInterface ¶
type RoleInterface interface { }
func NewRoleService ¶
func NewRoleService() RoleInterface
type RoleService ¶
type RoleService struct { }
type TaskInterface ¶
type TaskInterface interface { Tasks(pipline bool) []models.Task NormalTasks() ([]models.Task, error) }
func NewTaskService ¶
func NewTaskService() TaskInterface
type TaskService ¶
type TaskService struct { }
func (*TaskService) NormalTasks ¶
func (service *TaskService) NormalTasks() ([]models.Task, error)
获取需要执行的任务
type UserInterface ¶
type UserInterface interface { Users(params map[string]string) (*[]models.User, *response.Meta) FindByID(id string) (*models.User, error) FindByEmail(email string) *models.User Attempt(username, password string) (string, error) Destroy(id string, force bool) error }
func NewUserService ¶
func NewUserService() UserInterface
type UserService ¶
type UserService struct { }
func (*UserService) Attempt ¶
func (service *UserService) Attempt(username, passwod string) (token string, err error)
Attempt user credentials
func (*UserService) Destroy ¶
func (service *UserService) Destroy(id string, force bool) (err error)
Delete user
func (*UserService) FindByEmail ¶
func (service *UserService) FindByEmail(email string) *models.User
Get user by email
func (*UserService) FindByID ¶
func (service *UserService) FindByID(id string) (*models.User, error)
Get user
func (*UserService) RetrieveByCredentials ¶
func (service *UserService) RetrieveByCredentials(username, password string) (user *models.User, err error)
Get user by credentials
Source Files ¶
Click to show internal directories.
Click to hide internal directories.