Documentation ¶
Index ¶
- Constants
- func GetToken(req *http.Request) (token *string, err error)
- func NewArrayFromScannableSource[T any](src IScannableSequence) (values []T, err error)
- func NewValueFromScannableSource[T any](src IScannable) (*T, error)
- func NormalisePath(path string) string
- type IApplication
- type IScannable
- type IScannableSequence
- type IServer
- type ISettings
- type UserParameters
- type UserRoles
Constants ¶
View Source
const (
CookieName_Token = "token"
)
Variables ¶
This section is empty.
Functions ¶
func NewArrayFromScannableSource ¶
func NewArrayFromScannableSource[T any](src IScannableSequence) (values []T, err error)
func NewValueFromScannableSource ¶
func NewValueFromScannableSource[T any](src IScannable) (*T, error)
func NormalisePath ¶ added in v0.0.8
Types ¶
type IApplication ¶
type IApplication interface {
Use() error
}
type IScannable ¶
type IScannableSequence ¶
type IScannableSequence interface { IScannable Next() bool // = HasNextValue() }
type UserParameters ¶
type UserParameters struct { Id uint `json:"id"` PreRegTime time.Time `json:"preRegTime"` Email string `json:"email"` Name string `json:"name"` ApprovalTime time.Time `json:"approvalTime"` RegTime time.Time `json:"regTime"` UserRoles LastBadLogInTime *time.Time `json:"lastBadLogInTime"` BanTime *time.Time `json:"banTime"` LastBadActionTime *time.Time `json:"lastBadActionTime"` }
func NewUserParameters ¶
func NewUserParameters() (up *UserParameters)
func NewUserParametersFromScannableSource ¶
func NewUserParametersFromScannableSource(src IScannable) (up *UserParameters, err error)
type UserRoles ¶
type UserRoles struct { IsAdministrator bool `json:"isAdministrator"` IsModerator bool `json:"isModerator"` IsAuthor bool `json:"isAuthor"` IsWriter bool `json:"isWriter"` IsReader bool `json:"isReader"` CanLogIn bool `json:"canLogIn"` }
func NewUserRoles ¶
func NewUserRoles() (ur *UserRoles)
func NewUserRolesFromScannableSource ¶
func NewUserRolesFromScannableSource(src IScannable) (ur *UserRoles, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.