server

package
v0.0.0-...-7230577 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewGrpcServer)

ProviderSet is server providers.

Functions

This section is empty.

Types

type GrpcServer

type GrpcServer struct {
	Server *grpc.Server
	// contains filtered or unexported fields
}

GrpcServer implements a gRPC Server for the Order service

func NewGrpcServer

func NewGrpcServer(service pb.TrxServiceServer, cfg *setting.Config, zapLogger *zap.Logger) (*GrpcServer, error)

NewGrpcServer is a convenience func to create a GrpcServer

func (GrpcServer) Error

func (g GrpcServer) Error() chan error

Error returns the server's error channel

func (GrpcServer) Start

func (g GrpcServer) Start()

Start starts the server in the background, pushing any error to the error channel

func (GrpcServer) Stop

func (g GrpcServer) Stop()

Stop stops the gRPC server

Jump to

Keyboard shortcuts

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