Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppOption ¶
type AppOption struct {
Name string `json:"name" mapstructure:"name" yaml:"name"`
}
func NewAppOption ¶
func NewAppOption() *AppOption
type GrpcOption ¶
type GrpcOption struct { Host string `json:"host" mapstructure:"host" yaml:"host"` Port int `json:"port" mapstructure:"port" yaml:"port"` }
func NewGrpcOption ¶
func NewGrpcOption() *GrpcOption
func (*GrpcOption) AddFlags ¶
func (g *GrpcOption) AddFlags(fs *pflag.FlagSet)
func (*GrpcOption) Validate ¶
func (g *GrpcOption) Validate() []error
type HttpOption ¶
type HttpOption struct { Host string `json:"host" mapstructure:"host" yaml:"host"` Port int `json:"port" mapstructure:"port" yaml:"port"` }
func NewHttpOption ¶
func NewHttpOption() *HttpOption
func (*HttpOption) AddFlags ¶
func (h *HttpOption) AddFlags(fs *pflag.FlagSet)
func (*HttpOption) Validate ¶
func (h *HttpOption) Validate() []error
Click to show internal directories.
Click to hide internal directories.