Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientOptions ¶
func NewClientOptions(opts ...ClientOption) (*[]grpc.DialOption, error)
func NewServerOptions ¶
func NewServerOptions(opts ...ServerOption) []grpc.UnaryServerInterceptor
Types ¶
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
func WithClientTracing ¶
func WithClientTracing(tp *sdktrace.TracerProvider) ClientOption
func WithEtcdDiscovery ¶
func WithEtcdDiscovery(conf clientv3.Config, serviceDesc grpc.ServiceDesc) ClientOption
func WithInsecure ¶
func WithInsecure() ClientOption
func WithRetry ¶
func WithRetry(mc ...MethodConfig) ClientOption
type MethodConfig ¶
type MethodConfig struct { Name []MethodName `json:"name"` RetryPolicy RetryPolicy `json:"retryPolicy"` }
type MethodName ¶
type RetryPolicy ¶
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
func WithDebug ¶
func WithDebug(flag bool) ServerOption
func WithServerTracing ¶
func WithServerTracing(tp *sdktrace.TracerProvider) ServerOption
func WithTBRL ¶
func WithTBRL(pairs ...ratelimit.TBPair) ServerOption
WithTBRL TokenBucketRateLimiter
type ServiceConfig ¶
type ServiceConfig struct { Methodconfig []MethodConfig `json:"methodConfig,omitempty"` LoadBalancingPolicy string `json:"loadBalancingPolicy,omitempty"` }
Click to show internal directories.
Click to hide internal directories.