Documentation ¶
Index ¶
- func GracefulTerminateDetect()
- func GracefulTerminateExec(grpcServer *grpc.Server)
- type ClientBuilder
- type EscrowClientBuilder
- type GrpcServer
- func (s *GrpcServer) AcceptConnection() *GrpcServer
- func (s *GrpcServer) CreateHealthServer() *GrpcServer
- func (s *GrpcServer) CreateServer(serverName string) *GrpcServer
- func (s *GrpcServer) GrpcServer(port string, dbURL string, rdURL string, server interface{}) *GrpcServer
- func (s *GrpcServer) RegisterHealthServer() *GrpcServer
- func (s *GrpcServer) RegisterServer(server interface{}) *GrpcServer
- func (s *GrpcServer) WithGracefulTermDetectAndExec() *GrpcServer
- func (s *GrpcServer) WithReflection() *GrpcServer
- type GuardClientBuilder
- type HealthCheckClientBuilder
- type HubQueryClientBuilder
- type LedgerClientBuilder
- type RuntimeClientBuilder
- type RuntimeServer
- type StatusClientBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GracefulTerminateDetect ¶ added in v0.1.15
func GracefulTerminateDetect()
GracefulTerminateDetect catches SIGTERM and SIGINT This function only detects the signal. It does not do anything with the detect. Use GracefulTerminateExec func to cleanup else write your own after calling GracefulTerminateDetect
func GracefulTerminateExec ¶ added in v0.1.15
GracefulTerminateExec performs a default list of tasks to clean up Override this function in your package to do more.
Types ¶
type ClientBuilder ¶
type ClientBuilder struct {
// contains filtered or unexported fields
}
func (*ClientBuilder) Timeout ¶
func (b *ClientBuilder) Timeout(to time.Duration) *ClientBuilder
type EscrowClientBuilder ¶
type EscrowClientBuilder struct {
ClientBuilder
}
func EscrowClient ¶
func EscrowClient(addr string) *EscrowClientBuilder
func (*EscrowClientBuilder) WithContext ¶
func (g *EscrowClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client escrowpb.EscrowServiceClient) error) error
type GrpcServer ¶ added in v0.1.15
type GrpcServer struct {
// contains filtered or unexported fields
}
func (*GrpcServer) AcceptConnection ¶ added in v0.1.15
func (s *GrpcServer) AcceptConnection() *GrpcServer
func (*GrpcServer) CreateHealthServer ¶ added in v0.1.15
func (s *GrpcServer) CreateHealthServer() *GrpcServer
func (*GrpcServer) CreateServer ¶ added in v0.1.15
func (s *GrpcServer) CreateServer(serverName string) *GrpcServer
func (*GrpcServer) GrpcServer ¶ added in v0.1.15
func (s *GrpcServer) GrpcServer(port string, dbURL string, rdURL string, server interface{}) *GrpcServer
func (*GrpcServer) RegisterHealthServer ¶ added in v0.1.15
func (s *GrpcServer) RegisterHealthServer() *GrpcServer
func (*GrpcServer) RegisterServer ¶ added in v0.1.15
func (s *GrpcServer) RegisterServer(server interface{}) *GrpcServer
func (*GrpcServer) WithGracefulTermDetectAndExec ¶ added in v0.1.15
func (s *GrpcServer) WithGracefulTermDetectAndExec() *GrpcServer
func (*GrpcServer) WithReflection ¶ added in v0.1.15
func (s *GrpcServer) WithReflection() *GrpcServer
type GuardClientBuilder ¶
type GuardClientBuilder struct {
ClientBuilder
}
func GuardClient ¶
func GuardClient(addr string) *GuardClientBuilder
func (*GuardClientBuilder) WithContext ¶
func (g *GuardClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client guardpb.GuardServiceClient) error) error
type HealthCheckClientBuilder ¶ added in v0.1.8
type HealthCheckClientBuilder struct {
ClientBuilder
}
func HealthCheckClient ¶ added in v0.1.8
func HealthCheckClient(addr string) *HealthCheckClientBuilder
func (*HealthCheckClientBuilder) WithContext ¶ added in v0.1.8
func (g *HealthCheckClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client grpc_health_v1.HealthClient) error) error
type HubQueryClientBuilder ¶
type HubQueryClientBuilder struct {
ClientBuilder
}
func HubQueryClient ¶
func HubQueryClient(addr string) *HubQueryClientBuilder
func (*HubQueryClientBuilder) WithContext ¶
func (g *HubQueryClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client hubpb.HubQueryServiceClient) error) error
type LedgerClientBuilder ¶ added in v0.1.9
type LedgerClientBuilder struct {
ClientBuilder
}
func LedgerClient ¶ added in v0.1.9
func LedgerClient(addr string) *LedgerClientBuilder
func (*LedgerClientBuilder) WithContext ¶ added in v0.1.9
func (g *LedgerClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client ledgerpb.ChannelsClient) error) error
type RuntimeClientBuilder ¶ added in v0.1.8
type RuntimeClientBuilder struct {
ClientBuilder
}
func RuntimeClient ¶ added in v0.1.8
func RuntimeClient(addr string) *RuntimeClientBuilder
func (*RuntimeClientBuilder) WithContext ¶ added in v0.1.8
func (g *RuntimeClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client sharedpb.RuntimeServiceClient) error) error
type RuntimeServer ¶ added in v0.1.15
type RuntimeServer struct { DB_URL string RD_URL string sharedpb.UnimplementedRuntimeServiceServer // contains filtered or unexported fields }
func (*RuntimeServer) CheckRuntime ¶ added in v0.1.15
func (s *RuntimeServer) CheckRuntime(ctx context.Context, req *sharedpb.SignedRuntimeInfoRequest) (*sharedpb.RuntimeInfoReport, error)
implementation of the shared helper function
type StatusClientBuilder ¶
type StatusClientBuilder struct {
ClientBuilder
}
func StatusClient ¶
func StatusClient(addr string) *StatusClientBuilder
func (*StatusClientBuilder) WithContext ¶
func (g *StatusClientBuilder) WithContext(ctx context.Context, f func(ctx context.Context, client statuspb.StatusServiceClient) error) error
Click to show internal directories.
Click to hide internal directories.