Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDisabled = httperror.NewConflictError("Maintenance mode is already disabled.")
View Source
var ErrEnabled = httperror.NewConflictError("Maintenance mode is already enabled.")
Functions ¶
This section is empty.
Types ¶
type API ¶
type Request ¶
type Store ¶
type Store interface {
Enable(ctx context.Context, message, color, userID string) error
Disable(ctx context.Context, userID string) error
}
func NewStore ¶
func NewStore( dbClient mongo.DbClient, userProvider security.UserProvider, tokenService apisecurity.TokenService, sessionStore session.Store, ) Store
Source Files
¶
- api.go
- model.go
- store.go
Click to show internal directories.
Click to hide internal directories.