grpc

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServerAdapter

type GrpcServerAdapter struct {
	pb.UnimplementedGrpcServer
	// contains filtered or unexported fields
}

must implement ports.PrimaryPort

func NewGrpcServerAdapter

func NewGrpcServerAdapter() *GrpcServerAdapter

func (*GrpcServerAdapter) BidirectionalStreaming

func (gsa *GrpcServerAdapter) BidirectionalStreaming(stream pb.Grpc_BidirectionalStreamingServer) error

Bidirectional streaming

func (*GrpcServerAdapter) ClientStreaming

func (gsa *GrpcServerAdapter) ClientStreaming(stream pb.Grpc_ClientStreamingServer) error

Client-side streaming

func (*GrpcServerAdapter) Register

func (gsa *GrpcServerAdapter) Register(handler *domain.PrimaryAdapterHandler) error

Register registers tasks to the server

func (*GrpcServerAdapter) Serve

func (gsa *GrpcServerAdapter) Serve(ctx context.Context, shutdownWg, readyWg *sync.WaitGroup) error

Serve starts the grpc server

func (*GrpcServerAdapter) ServerStreaming

func (gsa *GrpcServerAdapter) ServerStreaming(req *pb.StreamRequest, stream pb.Grpc_ServerStreamingServer) error

Server-side streaming

func (*GrpcServerAdapter) SimpleRPC

func (gsa *GrpcServerAdapter) SimpleRPC(ctx context.Context, req *pb.StreamRequest) (*pb.StreamResponse, error)

Regular RPC

type GrpcVariantConfigs

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

GrpcVariantConfigs holds the config for each grpc variant

Jump to

Keyboard shortcuts

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