Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectMethod ¶
type ConnectMethod string
const ( GRPCMethod ConnectMethod = "grpc" // HTTPMethod TODO implement http method HTTPMethod ConnectMethod = "http" )
func (ConnectMethod) Validate ¶
func (m ConnectMethod) Validate() error
type Options ¶
type Options struct { pkgutils.ConnectInfo `mapstructure:",squash"` pkgutils.AuthInfo `mapstructure:",squash"` // whether use tls Insecure bool `json:"insecure,omitempty" mapstructure:"insecure,omitempty"` // connect method, grpc or http Method ConnectMethod `json:"method,omitempty" mapstructure:"method,omitempty"` // timeout seconds Timeout int `json:"timeout,omitempty" mapstructure:"timeout,omitempty"` }
Click to show internal directories.
Click to hide internal directories.