Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthHandler ¶
type AuthHandler interface {
Auth(next http.HandlerFunc) http.HandlerFunc
}
type Config ¶
type Config struct { URL string Version string *gateway.Config Endpoint endpoint.Config Info openapi3.Info }
Config defines standalone app config
type Option ¶ added in v0.8.0
type Option func(*Options)
Option represents standalone option
func WithConfig ¶ added in v0.8.0
func WithConfigURL ¶ added in v0.8.0
func WithOptions ¶ added in v0.8.0
WithOptions sets options
func WithUseSingleton ¶ added in v0.8.0
WithUseSingleton sets a singleton
type Options ¶
type Options struct { ConfigURL string `short:"c" long:"cfg" description:"config URIPrefix"` Version bool `short:"v" long:"version" description:"Version"` // contains filtered or unexported fields }
Options represents standalone options
func NewOptions ¶ added in v0.8.0
func (*Options) UseSingleton ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.