floatingquotes

package
v0.0.0-...-360e35e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package floatingquotes is a generated protocol buffer package.

It is generated from these files:

depot.proto

It has these top-level messages:

Quote
FloatingAverage
Depot

Index

Constants

This section is empty.

Variables

View Source
var FloatingAverage_AlertState_name = map[int32]string{
	0: "NONE",
	1: "BUY",
	2: "SELL",
}
View Source
var FloatingAverage_AlertState_value = map[string]int32{
	"NONE": 0,
	"BUY":  1,
	"SELL": 2,
}

Functions

This section is empty.

Types

type Depot

type Depot struct {
	Id               string             `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	FloatingAverages []*FloatingAverage `protobuf:"bytes,2,rep,name=floatingAverages" json:"floatingAverages,omitempty"`
}

func (*Depot) Descriptor

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

func (*Depot) GetFloatingAverages

func (m *Depot) GetFloatingAverages() []*FloatingAverage

func (*Depot) GetId

func (m *Depot) GetId() string

func (*Depot) ProtoMessage

func (*Depot) ProtoMessage()

func (*Depot) Reset

func (m *Depot) Reset()

func (*Depot) String

func (m *Depot) String() string

type FloatingAverage

type FloatingAverage struct {
	Id                 string                     `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Name               string                     `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Symbol             string                     `protobuf:"bytes,3,opt,name=symbol" json:"symbol,omitempty"`
	MaxDaysCap         int32                      `protobuf:"varint,4,opt,name=maxDaysCap" json:"maxDaysCap,omitempty"`
	Quotes             []*Quote                   `protobuf:"bytes,5,rep,name=quotes" json:"quotes,omitempty"`
	DeviationThreshold string                     `protobuf:"bytes,6,opt,name=deviationThreshold" json:"deviationThreshold,omitempty"`
	LatestAverage      string                     `protobuf:"bytes,7,opt,name=latestAverage" json:"latestAverage,omitempty"`
	LatestQuoteValue   string                     `protobuf:"bytes,8,opt,name=latestQuoteValue" json:"latestQuoteValue,omitempty"`
	ClosingDate        int64                      `protobuf:"varint,9,opt,name=closingDate" json:"closingDate,omitempty"`
	AlertState         FloatingAverage_AlertState `protobuf:"varint,10,opt,name=alertState,enum=floatingquotes.FloatingAverage_AlertState" json:"alertState,omitempty"`
}

func (*FloatingAverage) Descriptor

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

func (*FloatingAverage) GetAlertState

func (m *FloatingAverage) GetAlertState() FloatingAverage_AlertState

func (*FloatingAverage) GetClosingDate

func (m *FloatingAverage) GetClosingDate() int64

func (*FloatingAverage) GetDeviationThreshold

func (m *FloatingAverage) GetDeviationThreshold() string

func (*FloatingAverage) GetId

func (m *FloatingAverage) GetId() string

func (*FloatingAverage) GetLatestAverage

func (m *FloatingAverage) GetLatestAverage() string

func (*FloatingAverage) GetLatestQuoteValue

func (m *FloatingAverage) GetLatestQuoteValue() string

func (*FloatingAverage) GetMaxDaysCap

func (m *FloatingAverage) GetMaxDaysCap() int32

func (*FloatingAverage) GetName

func (m *FloatingAverage) GetName() string

func (*FloatingAverage) GetQuotes

func (m *FloatingAverage) GetQuotes() []*Quote

func (*FloatingAverage) GetSymbol

func (m *FloatingAverage) GetSymbol() string

func (*FloatingAverage) ProtoMessage

func (*FloatingAverage) ProtoMessage()

func (*FloatingAverage) Reset

func (m *FloatingAverage) Reset()

func (*FloatingAverage) String

func (m *FloatingAverage) String() string

type FloatingAverage_AlertState

type FloatingAverage_AlertState int32
const (
	FloatingAverage_NONE FloatingAverage_AlertState = 0
	FloatingAverage_BUY  FloatingAverage_AlertState = 1
	FloatingAverage_SELL FloatingAverage_AlertState = 2
)

func (FloatingAverage_AlertState) EnumDescriptor

func (FloatingAverage_AlertState) EnumDescriptor() ([]byte, []int)

func (FloatingAverage_AlertState) String

type Quote

type Quote struct {
	Value     string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	Average   string `protobuf:"bytes,2,opt,name=average" json:"average,omitempty"`
	UpdatedAt int64  `protobuf:"varint,3,opt,name=updatedAt" json:"updatedAt,omitempty"`
}

func (*Quote) Descriptor

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

func (*Quote) GetAverage

func (m *Quote) GetAverage() string

func (*Quote) GetUpdatedAt

func (m *Quote) GetUpdatedAt() int64

func (*Quote) GetValue

func (m *Quote) GetValue() string

func (*Quote) ProtoMessage

func (*Quote) ProtoMessage()

func (*Quote) Reset

func (m *Quote) Reset()

func (*Quote) String

func (m *Quote) String() string

Jump to

Keyboard shortcuts

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