Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Conn ¶
func (client *Client) Conn() *grpc.ClientConn
type Config ¶
type Config struct { Dial bool `config:"dial" desc:"dial when build new client."` Target string `config:"target" desc:"target server."` // contains filtered or unexported fields }
func DefaultConfig ¶
func StdConfig ¶
func StdConfig(key string, optionFunc ...OptionFunc) *Config
type OptionFunc ¶
type OptionFunc func(*Config)
func WithDialOption ¶
func WithDialOption(opt ...grpc.DialOption) OptionFunc
func WithStreamClientInterceptor ¶
func WithStreamClientInterceptor(interceptor ...grpc.StreamClientInterceptor) OptionFunc
func WithUnaryClientInterceptor ¶
func WithUnaryClientInterceptor(interceptor ...grpc.UnaryClientInterceptor) OptionFunc
Click to show internal directories.
Click to hide internal directories.