Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Target string `config:"target" desc:"target gprc server addr"` Addr string `config:"addr" desc:"format: host:port"` // contains filtered or unexported fields }
func DefaultConfig ¶
func StdConfig ¶
func StdConfig(key string, optionFunc ...OptionFunc) *Config
type OptionFunc ¶
type OptionFunc func(*Config)
func WithMuxOption ¶
func WithMuxOption(opts ...runtime.ServeMuxOption) OptionFunc
func WithRegisterHandler ¶
func WithRegisterHandler(handlers ...Handler) OptionFunc
func WithWrap ¶
func WithWrap(wrap Wrap) OptionFunc
Click to show internal directories.
Click to hide internal directories.