server

package
v0.0.0-...-292f928 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host           = "0.0.0.0"
	Port           = 27321
	Endpoints      = []string{}
	RevokeEtcdConn func() error
	Key            = "grpclb/service/repository"
)

Functions

func ShutdownGRPC

func ShutdownGRPC() error

func StartupGRPC

func StartupGRPC() error

Types

type GRPC

type GRPC struct {
	pb.UnimplementedServiceServer
}

func (*GRPC) Complete

func (g *GRPC) Complete(ctx context.Context, req *pb.Task) (*emptypb.Empty, error)

func (*GRPC) CreateTask

func (g *GRPC) CreateTask(ctx context.Context, req *pb.Task) (*emptypb.Empty, error)

func (*GRPC) GetQuoteLatest

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

func (*GRPC) GetStockFull

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

func (*GRPC) PushData

func (g *GRPC) PushData(req pb.Service_PushDataServer) error

func (*GRPC) Version

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

Jump to

Keyboard shortcuts

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