Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionFunc ¶
func (OptionFunc) Apply ¶
func (fn OptionFunc) Apply(o *Options, cfg *v1.Next) error
type Options ¶
type Options struct {
Address string // server address
Timeout time.Duration // server timeout
Context context.Context // server context
Middleware []middleware.Middleware // server middleware
}
func NewDefaultOptions ¶
func NewDefaultOptions(cfg *v1.Next, opts ...ServerOption) (*Options, error)
NewDefaultOptions returns a new Options with default values.
type ServerOption ¶
func Middleware ¶
func Middleware(m ...middleware.Middleware) ServerOption
Middleware with server middleware.
Click to show internal directories.
Click to hide internal directories.