server

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrpcHost = ""
	GrpcPort = 0
)

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	ServiceName string
	ExecTimeout time.Duration
	Client      *clientv3.Client

	pb.UnimplementedRepoServer
	// contains filtered or unexported fields
}

func (*GRPC) Build

func (g *GRPC) Build(ctx context.Context, req *wrapperspb.StringValue) (*emptypb.Empty, error)

func (*GRPC) GetQuoteLatest

func (g *GRPC) GetQuoteLatest(req *pb.QuoteRequest, resp pb.Repo_GetQuoteLatestServer) error

func (*GRPC) GetStockFull

func (g *GRPC) GetStockFull(_ *emptypb.Empty, resp pb.Repo_GetStockFullServer) error

func (*GRPC) ShutdownGRPC

func (g *GRPC) ShutdownGRPC() error

func (*GRPC) StartupGRPC

func (g *GRPC) StartupGRPC() error

Jump to

Keyboard shortcuts

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