Documentation
¶
Index ¶
Constants ¶
View Source
const BACK_OFF_MAX_DELAY = 3 * time.Second
BACK_OFF_MAX_DELAY is default max delay for exponential backoff algorithm
Variables ¶
This section is empty.
Functions ¶
func SetServiceDomain ¶
func SetServiceDomain(domain string)
Types ¶
type ServiceDesc ¶
type ServiceDesc interface { GetConnection(opts ...grpc.DialOption) *grpc.ClientConn GetConnectionWithContext(ctx context.Context, opts ...grpc.DialOption) *grpc.ClientConn CloseConnection() error }
func GetServiceDesc ¶
func GetServiceDesc(alias string, c configs.GrpcConfig) ServiceDesc
type ServiceDescMock ¶
func (*ServiceDescMock) CloseConnection ¶
func (s *ServiceDescMock) CloseConnection() error
func (*ServiceDescMock) GetConnection ¶
func (s *ServiceDescMock) GetConnection(opts ...grpc.DialOption) *grpc.ClientConn
func (*ServiceDescMock) GetConnectionWithContext ¶
func (s *ServiceDescMock) GetConnectionWithContext(ctx context.Context, opts ...grpc.DialOption) *grpc.ClientConn
Click to show internal directories.
Click to hide internal directories.