Documentation ¶
Index ¶
- type Closeable
- type HealthCheckFn
- type HelthCheckClient
- type NewServiceFn
- type Option
- func WithAddr(a *string) Option
- func WithContext(ctx context.Context) Option
- func WithHealthCheckFn(healthCheck HealthCheckFn) Option
- func WithListener(l service.GrpcListener) Option
- func WithName(n string) Option
- func WithNewServiceFn(newService NewServiceFn) Option
- func WithServiceDesc(serviceDesc *grpc.ServiceDesc) Option
- type Options
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckFn ¶
type HelthCheckClient ¶
type HelthCheckClient struct {
// contains filtered or unexported fields
}
func NewHelthCheckClient ¶
func NewHelthCheckClient(ctx context.Context, addr string, d service.GrpcDialer) (*HelthCheckClient, error)
func NewHelthCheckClientWithConn ¶
func NewHelthCheckClientWithConn(conn *grpc.ClientConn) (*HelthCheckClient, error)
func (*HelthCheckClient) Check ¶
func (c *HelthCheckClient) Check(ctx context.Context, name string) (healthpb.HealthCheckResponse_ServingStatus, error)
func (*HelthCheckClient) Close ¶
func (c *HelthCheckClient) Close()
type Option ¶
type Option interface {
Apply(*Options)
}
func WithContext ¶
func WithHealthCheckFn ¶
func WithHealthCheckFn(healthCheck HealthCheckFn) Option
func WithListener ¶
func WithListener(l service.GrpcListener) Option
func WithNewServiceFn ¶
func WithNewServiceFn(newService NewServiceFn) Option
func WithServiceDesc ¶
func WithServiceDesc(serviceDesc *grpc.ServiceDesc) Option
Click to show internal directories.
Click to hide internal directories.