Documentation
¶
Index ¶
- type GrpcClientFactory
- func (svc *GrpcClientFactory) GetChannelClient(channelId string) (client pb.PayChannelClient, e error)
- func (svc *GrpcClientFactory) GetDatabaseClient() (pb.PayDatabaseServiceClient, error)
- func (svc *GrpcClientFactory) GetSettlementClient() (pb.SettlementGatewayClient, error)
- func (svc *GrpcClientFactory) InitChannelServiceClient(channelId string) (pb.PayChannelClient, error)
- func (svc *GrpcClientFactory) InitDatabaseServiceClient() (pb.PayDatabaseServiceClient, error)
- func (svc *GrpcClientFactory) InitSettlementClient() (pb.SettlementGatewayClient, error)
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)
Click to show internal directories.
Click to hide internal directories.