hservice

package
v0.0.0-...-dd1a141 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	HelloService(context context.Context, req *proto.HelloRequest) (*proto.HelloResponse, error)
	QueryDataService(context context.Context, req *proto.TransactionQueryRequest) (grpc.ServerStreamingClient[proto.TransactionQueryResponse], error)
}

type GrpcClientCreator

type GrpcClientCreator struct {
}

func NewGrpcClientCreator

func NewGrpcClientCreator() *GrpcClientCreator

func (*GrpcClientCreator) HelloServiceClient

func (r *GrpcClientCreator) HelloServiceClient(connection *grpc.ClientConn) proto.HelloServiceClient

func (*GrpcClientCreator) QueryDataServiceClient

func (r *GrpcClientCreator) QueryDataServiceClient(connection *grpc.ClientConn) proto.QueryDataServiceClient

type HelloService

type HelloService struct {
	// contains filtered or unexported fields
}

func NewHelloService

func NewHelloService(
	console *zap.Logger,
	grpcConnection *grpc.ClientConn,
	helloServiceCreator HelloServiceCreator,
) HelloService

func (*HelloService) HelloService

func (a *HelloService) HelloService(context context.Context, req *proto.HelloRequest) (*proto.HelloResponse, error)

type HelloServiceCreator

type HelloServiceCreator interface {
	HelloServiceClient(connection *grpc.ClientConn) proto.HelloServiceClient
	QueryDataServiceClient(connection *grpc.ClientConn) proto.QueryDataServiceClient
}

Jump to

Keyboard shortcuts

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