Documentation ¶
Index ¶
- type GRPC
- func (g *GRPC) CreateBuyPlan(ctx context.Context, req *pb.PossibleChance) (*pb.BuyPlan, error)
- func (g *GRPC) DiscoverPossibleChance(req *wrapperspb.StringValue, ds pb.Finder_DiscoverPossibleChanceServer) error
- func (g *GRPC) FollowReturnWithBuyPlan(ctx context.Context, req *pb.BuyPlan) (*pb.PositionPlan, error)
- func (g *GRPC) Startup() error
- func (g *GRPC) Stop() error
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 (*GRPC) DiscoverPossibleChance ¶
func (g *GRPC) DiscoverPossibleChance(req *wrapperspb.StringValue, ds pb.Finder_DiscoverPossibleChanceServer) error
func (*GRPC) FollowReturnWithBuyPlan ¶
Click to show internal directories.
Click to hide internal directories.