Documentation ¶
Index ¶
- Variables
- type Activity
- type ActivityLogBuilder
- type ActivityLogService
- type Application
- type ApplicationServices
- type AuthGuard
- type AuthGuardConstructor
- type AuthService
- type CryptService
- type DatabaseService
- type Event
- type EventListener
- type EventListenerConstructor
- type EventService
- type LoggingDriver
- type LoggingDriverConstructor
- type LoggingService
- type Middleware
- type MiddlewareConstructor
- type MiddlewareService
- type Module
- type ModuleEntrypoint
- type ModuleService
- type ScriptCommand
- type SessionCookieWriter
- type SessionData
- type SessionService
- type SessionStorage
- type StatefulAuthGuard
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCipherText = fmt.Errorf("invalid cipherText")
Functions ¶
This section is empty.
Types ¶
type ActivityLogBuilder ¶ added in v1.4.0
type ActivityLogBuilder interface { Causer(user *models.User) ActivityLogBuilder Build() Activity }
type ActivityLogService ¶ added in v1.4.0
type ActivityLogService interface { Log(activity Activity, action string) Builder() ActivityLogBuilder }
type Application ¶
type ApplicationServices ¶
type ApplicationServices struct { Auth AuthService ActivityLog ActivityLogService Crypt CryptService Database DatabaseService Event EventService Logging LoggingService Middleware MiddlewareService Module ModuleService Session SessionService WebEngine *web.Engine }
type AuthGuardConstructor ¶
type AuthGuardConstructor = func(application Application) (AuthGuard, error)
type AuthService ¶
type CryptService ¶
type DatabaseService ¶
type Event ¶
The minimal interface DomainEvent, implemented by all events, ensures support of an occurredOn() accessor. It enforces a basic contract for all events.
References:
- Implementing Domain-Driven Design, Vaughn Vernon
type EventListener ¶
type EventListenerConstructor ¶
type EventListenerConstructor = func(application Application) (EventListener, error)
type EventService ¶
type LoggingDriver ¶ added in v1.4.0
type LoggingDriver interface { Debug(message string, context map[string]interface{}) Info(message string, context map[string]interface{}) Notice(message string, context map[string]interface{}) Warning(message string, context map[string]interface{}) Error(message string, context map[string]interface{}) Critical(message string, context map[string]interface{}) Alert(message string, context map[string]interface{}) Emergency(message string, context map[string]interface{}) }
type LoggingDriverConstructor ¶ added in v1.4.0
type LoggingDriverConstructor func(config map[string]interface{}) LoggingDriver
type LoggingService ¶ added in v1.4.0
type LoggingService interface { Debug(message string, context map[string]interface{}) error Info(message string, context map[string]interface{}) error Notice(message string, context map[string]interface{}) error Warning(message string, context map[string]interface{}) error Error(message string, context map[string]interface{}) error Critical(message string, context map[string]interface{}) error Alert(message string, context map[string]interface{}) error Emergency(message string, context map[string]interface{}) error RegisterDriver(name string, construct LoggingDriverConstructor) error }
type Middleware ¶
type Middleware interface {
Handle(param interface{}) web.HandlerFunc
}
type MiddlewareConstructor ¶
type MiddlewareConstructor = func(application Application) (Middleware, error)
type MiddlewareService ¶
type MiddlewareService interface { Use(name string, params interface{}) web.HandlerFunc Global() []web.HandlerFunc Register(name string, constructor MiddlewareConstructor) error }
type Module ¶
type Module interface { Name() string App() Application }
type ModuleEntrypoint ¶
type ModuleEntrypoint = func(mod Module)
type ModuleService ¶
type ModuleService interface {
Register(name string, entrypoint ModuleEntrypoint)
}
type ScriptCommand ¶
type SessionCookieWriter ¶
type SessionCookieWriter interface {
Write(ctx *web.Context, sess SessionData)
}
type SessionData ¶
type SessionService ¶
type SessionService interface { Get(ctx *web.Context, key string) (interface{}, error) IsTokenMatch(ctx *web.Context, token string) (bool, error) Put(ctx *web.Context, key string, value interface{}) error Delete(ctx *web.Context, key string) error Clear(ctx *web.Context) error Regenerate(ctx *web.Context) error Invalidate(ctx *web.Context) error RegenerateToken(ctx *web.Context) error Start(ctx *web.Context) error }
type SessionStorage ¶
Click to show internal directories.
Click to hide internal directories.