services

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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

func SetupService(s *models.Store)

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL