grpc

package
v0.2.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcClientFactory

type GrpcClientFactory struct {
	sync.Mutex
	service.Service
	// contains filtered or unexported fields
}

func InitGrpFactory

func InitGrpFactory(svc service.Service, gatewayConfig *service.GatewayConfig) *GrpcClientFactory

func (*GrpcClientFactory) GetChannelClient

func (svc *GrpcClientFactory) GetChannelClient(channelId string) (client pb.PayChannelClient, e error)

func (*GrpcClientFactory) GetDatabaseClient

func (svc *GrpcClientFactory) GetDatabaseClient() (pb.PayDatabaseServiceClient, error)

func (*GrpcClientFactory) GetSettlementClient

func (svc *GrpcClientFactory) GetSettlementClient() (pb.SettlementGatewayClient, error)

func (*GrpcClientFactory) InitChannelServiceClient

func (svc *GrpcClientFactory) InitChannelServiceClient(channelId string) (pb.PayChannelClient, error)

func (*GrpcClientFactory) InitDatabaseServiceClient

func (svc *GrpcClientFactory) InitDatabaseServiceClient() (pb.PayDatabaseServiceClient, error)

func (*GrpcClientFactory) InitSettlementClient

func (svc *GrpcClientFactory) InitSettlementClient() (pb.SettlementGatewayClient, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL