Documentation ¶
Index ¶
- Variables
- func NewLoggingMiddleware(logger *zap.Logger, after afterHandler) func(h http.Handler) http.Handler
- func NewRecoverMiddleware(l *zap.Logger) func(h http.Handler) http.Handler
- type APIMember
- type APIMemberJoinInput
- type APIMemberJoinOutput
- type APIMembersOutput
- type APIRoleConfigInput
- type APIRoleConfigOutput
- type Role
- func (r *Role) APIClusterJoin() usecase.Interactor
- func (r *Role) APIClusterMembers() usecase.Interactor
- func (r *Role) APIMemoryMetrics() usecase.Interactor
- func (r *Role) APIRoleConfigGet() usecase.Interactor
- func (r *Role) APIRoleConfigPut() usecase.Interactor
- func (r *Role) Schema(ctx context.Context) *openapi3.Spec
- func (r *Role) SessionMiddleware(h http.Handler) http.Handler
- func (r *Role) SessionStore() sessions.Store
- func (r *Role) Start(ctx context.Context, config []byte) error
- func (r *Role) Stop()
- type RoleConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var IndexTemplate string
Functions ¶
func NewLoggingMiddleware ¶
NewLoggingMiddleware provides an http.Handler which logs requests to the HTTP server
Types ¶
type APIMemberJoinInput ¶
type APIMemberJoinInput struct {
Peer string `json:"peer" maxLength:"255"`
}
type APIMemberJoinOutput ¶
type APIMemberJoinOutput struct {
Env string `json:"env"`
}
type APIMembersOutput ¶
type APIMembersOutput struct {
Members []APIMember `json:"members"`
}
type APIRoleConfigInput ¶
type APIRoleConfigInput struct {
Config RoleConfig `json:"config" required:"true"`
}
type APIRoleConfigOutput ¶
type APIRoleConfigOutput struct {
Config RoleConfig `json:"config" required:"true"`
}
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func (*Role) APIClusterJoin ¶
func (r *Role) APIClusterJoin() usecase.Interactor
func (*Role) APIClusterMembers ¶
func (r *Role) APIClusterMembers() usecase.Interactor
func (*Role) APIMemoryMetrics ¶
func (r *Role) APIMemoryMetrics() usecase.Interactor
func (*Role) APIRoleConfigGet ¶
func (r *Role) APIRoleConfigGet() usecase.Interactor
func (*Role) APIRoleConfigPut ¶
func (r *Role) APIRoleConfigPut() usecase.Interactor
func (*Role) SessionStore ¶
type RoleConfig ¶
type RoleConfig struct { Port int32 `json:"port"` CookieSecret string `json:"cookieSecret"` OIDC *types.OIDCConfig `json:"oidc"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.