Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUsernameOrPassword = errors.New("Invalid username or password")
View Source
var ErrTooManyAttempts = errors.New("Too many failed login attempts")
Functions ¶
func GetRunner ¶
func GetRunner(runnerType RunnerType) runner.Runner
func SetupService ¶
Types ¶
type LoginService ¶
type LoginService struct {
*Service
// contains filtered or unexported fields
}
var (
LService *LoginService
)
func GetLoginService ¶
func GetLoginService() *LoginService
func (*LoginService) Login ¶
func (s *LoginService) Login(username, password string) (string, error)
func (*LoginService) LoginWithToken ¶
func (s *LoginService) LoginWithToken(tokenString string) (*models.User, error)
func (*LoginService) ResetLoginAttempts ¶
func (s *LoginService) ResetLoginAttempts(username string) error
type RunnerType ¶
type RunnerType string
const ( BashRunner RunnerType = "bash" LuaRunner RunnerType = "lua" MRubyRunner RunnerType = "mruby" )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) RunPeriodicPrograms ¶
func (s *Service) RunPeriodicPrograms()
Click to show internal directories.
Click to hide internal directories.