Documentation
¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
strategy.proto
It has these top-level messages:
Property Dictionary Information Bool Asset Empty
Index ¶
- func RegisterStrategyServer(s *grpc.Server, srv StrategyServer)
- type Asset
- type Bool
- type Dictionary
- type Empty
- type Information
- type Property
- func (*Property) Descriptor() ([]byte, []int)
- func (m *Property) GetType() string
- func (m *Property) GetValueBool() bool
- func (m *Property) GetValueFloat() float32
- func (m *Property) GetValueInt() int32
- func (m *Property) GetValueString() string
- func (*Property) ProtoMessage()
- func (m *Property) Reset()
- func (m *Property) String() string
- type StrategyClient
- type StrategyServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStrategyServer ¶
func RegisterStrategyServer(s *grpc.Server, srv StrategyServer)
Types ¶
type Asset ¶
type Asset struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}
func (*Asset) Descriptor ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
type Bool ¶
type Bool struct {
Boolean bool `protobuf:"varint,1,opt,name=Boolean" json:"Boolean,omitempty"`
}
func (*Bool) Descriptor ¶
func (*Bool) GetBoolean ¶
func (*Bool) ProtoMessage ¶
func (*Bool) ProtoMessage()
type Dictionary ¶
type Dictionary struct {
CustomInt map[string]*Property `` /* 138-byte string literal not displayed */
}
func (*Dictionary) Descriptor ¶
func (*Dictionary) Descriptor() ([]byte, []int)
func (*Dictionary) GetCustomInt ¶
func (m *Dictionary) GetCustomInt() map[string]*Property
func (*Dictionary) ProtoMessage ¶
func (*Dictionary) ProtoMessage()
func (*Dictionary) Reset ¶
func (m *Dictionary) Reset()
func (*Dictionary) String ¶
func (m *Dictionary) String() string
type Empty ¶
type Empty struct {
}
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
type Information ¶
type Information struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=Version" json:"Version,omitempty"`
Description string `protobuf:"bytes,3,opt,name=Description" json:"Description,omitempty"`
}
func (*Information) Descriptor ¶
func (*Information) Descriptor() ([]byte, []int)
func (*Information) GetDescription ¶
func (m *Information) GetDescription() string
func (*Information) GetName ¶
func (m *Information) GetName() string
func (*Information) GetVersion ¶
func (m *Information) GetVersion() string
func (*Information) ProtoMessage ¶
func (*Information) ProtoMessage()
func (*Information) Reset ¶
func (m *Information) Reset()
func (*Information) String ¶
func (m *Information) String() string
type Property ¶
type Property struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
ValueInt int32 `protobuf:"varint,2,opt,name=value_int,json=valueInt" json:"value_int,omitempty"`
ValueFloat float32 `protobuf:"fixed32,3,opt,name=value_float,json=valueFloat" json:"value_float,omitempty"`
ValueString string `protobuf:"bytes,4,opt,name=value_string,json=valueString" json:"value_string,omitempty"`
ValueBool bool `protobuf:"varint,5,opt,name=value_bool,json=valueBool" json:"value_bool,omitempty"`
}
func (*Property) Descriptor ¶
func (*Property) GetValueBool ¶
func (*Property) GetValueFloat ¶
func (*Property) GetValueInt ¶
func (*Property) GetValueString ¶
func (*Property) ProtoMessage ¶
func (*Property) ProtoMessage()
type StrategyClient ¶
type StrategyClient interface {
Init(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Information, error)
GetProperty(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Dictionary, error)
SetProperty(ctx context.Context, in *Dictionary, opts ...grpc.CallOption) (*Empty, error)
// filter for long position
SellConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
// filter for short position
BuyConditions(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
// long position priority rank
RankFilter(ctx context.Context, in *Asset, opts ...grpc.CallOption) (*Bool, error)
}
func NewStrategyClient ¶
func NewStrategyClient(cc *grpc.ClientConn) StrategyClient
type StrategyServer ¶
type StrategyServer interface {
Init(context.Context, *Empty) (*Empty, error)
Info(context.Context, *Empty) (*Information, error)
GetProperty(context.Context, *Empty) (*Dictionary, error)
SetProperty(context.Context, *Dictionary) (*Empty, error)
// filter for long position
SellConditions(context.Context, *Asset) (*Bool, error)
// filter for short position
BuyConditions(context.Context, *Asset) (*Bool, error)
// long position priority rank
RankFilter(context.Context, *Asset) (*Bool, error)
}
Click to show internal directories.
Click to hide internal directories.