Documentation ¶
Index ¶
- func NewClientConn(target string, opts ...options.Option[clientOptions]) (*grpc.ClientConn, error)
- func NewClientConnContext(ctx context.Context, target string, opts ...options.Option[clientOptions]) (*grpc.ClientConn, error)
- func NewClientOptions(opts ...options.Option[clientOptions]) (*[]grpc.DialOption, error)
- func WithClientTracing(tp *sdktrace.TracerProvider) options.Option[clientOptions]
- func WithClientValidator(all bool) options.Option[clientOptions]
- func WithEtcdDiscovery(conf clientv3.Config, serviceDesc grpc.ServiceDesc) options.Option[clientOptions]
- func WithInsecure() options.Option[clientOptions]
- func WithRRLB() options.Option[clientOptions]
- func WithRetry(mc ...MethodConfig) options.Option[clientOptions]
- type MethodConfig
- type MethodName
- type RetryPolicy
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientConn ¶
func NewClientConnContext ¶
func NewClientOptions ¶ added in v0.0.4
func NewClientOptions(opts ...options.Option[clientOptions]) (*[]grpc.DialOption, error)
func WithClientTracing ¶ added in v0.0.4
func WithClientTracing(tp *sdktrace.TracerProvider) options.Option[clientOptions]
func WithClientValidator ¶ added in v0.0.4
WithClientValidator validate fields, all==true return all fields error, otherwise return first error
func WithEtcdDiscovery ¶ added in v0.0.4
func WithInsecure ¶ added in v0.0.4
func WithRetry ¶ added in v0.0.4
func WithRetry(mc ...MethodConfig) options.Option[clientOptions]
Types ¶
type MethodConfig ¶ added in v0.0.4
type MethodConfig struct { Name []MethodName `json:"name"` RetryPolicy RetryPolicy `json:"retryPolicy"` }
type MethodName ¶ added in v0.0.4
type RetryPolicy ¶ added in v0.0.4
type ServiceConfig ¶ added in v0.0.4
type ServiceConfig struct { Methodconfig []MethodConfig `json:"methodConfig,omitempty"` LoadBalancingPolicy string `json:"loadBalancingPolicy,omitempty"` }
Click to show internal directories.
Click to hide internal directories.