Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ocs ¶
type Ocs struct {
// contains filtered or unexported fields
}
Ocs defines implements the business logic for Service.
func (Ocs) GetSigningKey ¶
func (o Ocs) GetSigningKey(w http.ResponseWriter, r *http.Request)
GetSigningKey returns the signing key for the current user. It will create it on the fly if it does not exist The signing key is part of the user settings and is used by the proxy to authenticate requests Currently, the username is used as the OC-Credential
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Middleware ¶
Middleware provides a function to set the middleware option.
type Options ¶
type Options struct {
Logger log.Logger
Config *config.Config
Middleware []func(http.Handler) http.Handler
Store store.Store
}
Options defines the available options for this package.
type Service ¶
type Service interface {
ServeHTTP(http.ResponseWriter, *http.Request)
}
Service defines the service handlers.
func NewInstrument ¶
NewInstrument returns a service that instruments metrics.
func NewLogging ¶
NewLogging returns a service that logs messages.
func NewService ¶
NewService returns a service implementation for Service.
func NewTracing ¶
NewTracing returns a service that instruments traces.