Documentation
¶
Index ¶
- Constants
- func CheckIncident(inc *Incident) (err error)
- func NewArrayFromScannableSource[T any](src IScannableSequence) (values []T, err error)
- func NewNonNullValueFromScannableSource[T any](src IScannable) (T, error)
- func NewValueFromScannableSource[T any](src IScannable) (*T, error)
- type CaptchaAnswer
- type CaptchaId
- type Email
- type IApplication
- type IPAS
- type IScannable
- type IScannableSequence
- type IServer
- type ISettings
- type Incident
- type IncidentType
- type Module
- type Name
- type Password
- type Path
- type RequestId
- type ScheduledFn
- type Scheduler
- type StepNumber
- type UserParameters
- type UserRoles
- type VerificationCode
- type WebTokenString
Constants ¶
View Source
const ( ErrIncidentIsNotSet = "incident is not set" ErrIncidentTypeError = "incident type error" )
View Source
const ( IncidentType_IllegalAccessAttempt = 1 IncidentType_FakeToken = 2 IncidentType_VerificationCodeMismatch = 3 IncidentType_DoubleLogInAttempt = 4 IncidentType_PreSessionHacking = 5 IncidentType_CaptchaAnswerMismatch = 6 IncidentType_PasswordMismatch = 7 IncidentType_PasswordChangeHacking = 8 IncidentType_EmailChangeHacking = 9 IncidentType_FakeIPA = 10 IncidentType_ReadingNotificationOfOtherUsers = 11 IncidentType_WrongDKey = 12 )
View Source
const ( Module_ACM = Module(1) Module_GWM = Module(2) Module_MM = Module(3) Module_NM = Module(4) Module_RCS = Module(5) Module_SM = Module(6) Module_SMTP = Module(7) )
View Source
const (
CookieName_Token = "token"
)
View Source
const (
IncidentTypesCount = 12
)
Variables ¶
This section is empty.
Functions ¶
func CheckIncident ¶ added in v0.0.39
func NewArrayFromScannableSource ¶
func NewArrayFromScannableSource[T any](src IScannableSequence) (values []T, err error)
func NewNonNullValueFromScannableSource ¶ added in v0.0.39
func NewNonNullValueFromScannableSource[T any](src IScannable) (T, error)
func NewValueFromScannableSource ¶
func NewValueFromScannableSource[T any](src IScannable) (*T, error)
Types ¶
type CaptchaAnswer ¶ added in v0.0.54
type IApplication ¶
type IApplication interface {
Use() error
}
type IScannable ¶
type IScannableSequence ¶
type IScannableSequence interface { IScannable Next() bool // = HasNextValue() }
type IncidentType ¶ added in v0.0.39
type IncidentType byte
func (IncidentType) IsValid ¶ added in v0.0.39
func (it IncidentType) IsValid() (ok bool)
type Path ¶ added in v0.0.54
func NormalisePath ¶ added in v0.0.8
type ScheduledFn ¶ added in v0.0.40
type ScheduledFn = func() error
type Scheduler ¶ added in v0.0.40
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶ added in v0.0.40
func NewScheduler(srv IServer, funcs60 []ScheduledFn) (s *Scheduler)
type StepNumber ¶ added in v0.0.54
type UserParameters ¶
type UserParameters struct { Id cmb.Id `json:"id"` PreRegTime *time.Time `json:"preRegTime,omitempty"` Email Email `json:"email,omitempty"` Name Name `json:"name,omitempty"` ApprovalTime *time.Time `json:"approvalTime,omitempty"` RegTime *time.Time `json:"regTime,omitempty"` Roles *UserRoles `json:"roles,omitempty"` LastBadLogInTime *time.Time `json:"lastBadLogInTime,omitempty"` BanTime *time.Time `json:"banTime,omitempty"` LastBadActionTime *time.Time `json:"lastBadActionTime,omitempty"` }
func NewUserParameters ¶
func NewUserParameters() (up *UserParameters)
func NewUserParametersFromScannableSource ¶
func NewUserParametersFromScannableSource(src IScannable) (up *UserParameters, err error)
type UserRoles ¶
type UserRoles struct { IsAdministrator cmb.Flag `json:"isAdministrator"` IsModerator cmb.Flag `json:"isModerator"` IsAuthor cmb.Flag `json:"isAuthor"` IsWriter cmb.Flag `json:"isWriter"` IsReader cmb.Flag `json:"isReader"` CanLogIn cmb.Flag `json:"canLogIn"` }
func NewUserRoles ¶
func NewUserRoles() (ur *UserRoles)
func NewUserRolesFromScannableSource ¶
func NewUserRolesFromScannableSource(src IScannable) (ur *UserRoles, err error)
type VerificationCode ¶ added in v0.0.54
type WebTokenString ¶ added in v0.0.54
Source Files
¶
- CaptchaAnswer.go
- CaptchaId.go
- Email.go
- IApplication.go
- IPAS.go
- IScannable.go
- IScannableSequence.go
- IServer.go
- ISettings.go
- Incident.go
- IncidentType.go
- Module.go
- Name.go
- Password.go
- Path.go
- RequestId.go
- ScheduledFn.go
- Scheduler.go
- StepNumber.go
- UserParameters.go
- UserRoles.go
- VerificationCode.go
- WebTokenString.go
- sql.go
- token.go
Click to show internal directories.
Click to hide internal directories.