proto

package
v0.0.0-...-45a0acb Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Asset) GetName

func (m *Asset) GetName() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) Reset

func (m *Asset) Reset()

func (*Asset) String

func (m *Asset) String() string

type Bool

type Bool struct {
	Boolean bool `protobuf:"varint,1,opt,name=Boolean" json:"Boolean,omitempty"`
}

func (*Bool) Descriptor

func (*Bool) Descriptor() ([]byte, []int)

func (*Bool) GetBoolean

func (m *Bool) GetBoolean() bool

func (*Bool) ProtoMessage

func (*Bool) ProtoMessage()

func (*Bool) Reset

func (m *Bool) Reset()

func (*Bool) String

func (m *Bool) String() string

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) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

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) Descriptor() ([]byte, []int)

func (*Property) GetType

func (m *Property) GetType() string

func (*Property) GetValueBool

func (m *Property) GetValueBool() bool

func (*Property) GetValueFloat

func (m *Property) GetValueFloat() float32

func (*Property) GetValueInt

func (m *Property) GetValueInt() int32

func (*Property) GetValueString

func (m *Property) GetValueString() string

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) String

func (m *Property) String() string

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)
}

Jump to

Keyboard shortcuts

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