Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewGrpcClient ¶
func NewGrpcClient(opts ...ClientOption) *Client
func (*Client) DialWithConsul ¶
func (c *Client) DialWithConsul() (*grpc.ClientConn, error)
type ClientOption ¶
type ClientOption func(s *Client)
func WithDiscoverAddr ¶
func WithDiscoverAddr(addr string) ClientOption
func WithServiceName ¶
func WithServiceName(serviceName string) ClientOption
Click to show internal directories.
Click to hide internal directories.