Documentation
¶
Overview ¶
See https://github.com/go-openapi/kvstore/blob/master/cmd/kvstored/main.go as middlewares example
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCorsMiddleware ¶
func NewCorsMiddleware() alice.Constructor
NewAuditMW returns a new Audit middleware
Types ¶
type Config ¶
type Config struct {
LogLevel string
Postgres storage.PostgresConfig
NATS nats.Config
RESTListen int
Twitterclient twitterclient.Config
}
Config is configuration for the Server
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance stores the server state
func NewInstance ¶
NewInstance creates new server instance and copy config into that.
type Providers ¶
type Providers struct {
TwitterClientProvider TwitterClientProvider
}
type TwitterClientProvider ¶
type TwitterClientProvider func(config twitterclient.Config) twitterclient.Interface
Click to show internal directories.
Click to hide internal directories.