server

package
v0.0.0-...-378a548 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPC

type GRPC struct {
	EtcdClient *clientv3.Client
	Host       string
	Port       int
	AppName    string

	pb.UnimplementedFinderServer
	// contains filtered or unexported fields
}

func (*GRPC) CreateBuyPlan

func (g *GRPC) CreateBuyPlan(ctx context.Context, req *pb.PossibleChance) (*pb.BuyPlan, error)

func (*GRPC) DiscoverPossibleChance

func (g *GRPC) DiscoverPossibleChance(req *wrapperspb.StringValue, ds pb.Finder_DiscoverPossibleChanceServer) error

func (*GRPC) FollowReturnWithBuyPlan

func (g *GRPC) FollowReturnWithBuyPlan(ctx context.Context, req *pb.BuyPlan) (*pb.PositionPlan, error)

func (*GRPC) Startup

func (g *GRPC) Startup() error

func (*GRPC) Stop

func (g *GRPC) Stop() error

Jump to

Keyboard shortcuts

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