grpc

package
v0.0.0-...-b8e8dbd Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package grpc is a generated protocol buffer package.

It is generated from these files:

grpc/cryptotrader.proto

It has these top-level messages:

UpdateTickerReport
EnabledExchangeCurrencies
AllEnabledExchangeCurrencies
SpecificTicker

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGoCryptoTraderServiceServer

func RegisterGoCryptoTraderServiceServer(s *grpc1.Server, srv GoCryptoTraderServiceServer)

Types

type AllEnabledExchangeCurrencies

type AllEnabledExchangeCurrencies struct {
	ExchangeCurrencies []*EnabledExchangeCurrencies `protobuf:"bytes,1,rep,name=ExchangeCurrencies" json:"ExchangeCurrencies,omitempty"`
}

func (*AllEnabledExchangeCurrencies) Descriptor

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

func (*AllEnabledExchangeCurrencies) GetExchangeCurrencies

func (m *AllEnabledExchangeCurrencies) GetExchangeCurrencies() []*EnabledExchangeCurrencies

func (*AllEnabledExchangeCurrencies) ProtoMessage

func (*AllEnabledExchangeCurrencies) ProtoMessage()

func (*AllEnabledExchangeCurrencies) Reset

func (m *AllEnabledExchangeCurrencies) Reset()

func (*AllEnabledExchangeCurrencies) StoreInInflux

func (cs *AllEnabledExchangeCurrencies) StoreInInflux(ctx InfluxContext) error

func (*AllEnabledExchangeCurrencies) String

type EnabledExchangeCurrencies

type EnabledExchangeCurrencies struct {
	ExchangeName   string          `protobuf:"bytes,1,opt,name=ExchangeName" json:"ExchangeName,omitempty"`
	ExchangeValues []*ticker.Price `protobuf:"bytes,2,rep,name=ExchangeValues" json:"ExchangeValues,omitempty"`
}

func (*EnabledExchangeCurrencies) Descriptor

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

func (*EnabledExchangeCurrencies) GetExchangeName

func (m *EnabledExchangeCurrencies) GetExchangeName() string

func (*EnabledExchangeCurrencies) GetExchangeValues

func (m *EnabledExchangeCurrencies) GetExchangeValues() []*ticker.Price

func (*EnabledExchangeCurrencies) ProtoMessage

func (*EnabledExchangeCurrencies) ProtoMessage()

func (*EnabledExchangeCurrencies) Reset

func (m *EnabledExchangeCurrencies) Reset()

func (*EnabledExchangeCurrencies) String

func (m *EnabledExchangeCurrencies) String() string

type GoCryptoTraderServiceClient

type GoCryptoTraderServiceClient interface {
	GetTickers(ctx context.Context, in *google_protobuf.Empty, opts ...grpc1.CallOption) (*AllEnabledExchangeCurrencies, error)
	GetTicker(ctx context.Context, in *SpecificTicker, opts ...grpc1.CallOption) (*ticker.Price, error)
	UpdateTicker(ctx context.Context, in *google_protobuf.Empty, opts ...grpc1.CallOption) (GoCryptoTraderService_UpdateTickerClient, error)
}

func NewGoCryptoTraderServiceClient

func NewGoCryptoTraderServiceClient(cc *grpc1.ClientConn) GoCryptoTraderServiceClient

type GoCryptoTraderService_UpdateTickerClient

type GoCryptoTraderService_UpdateTickerClient interface {
	Recv() (*UpdateTickerReport, error)
	grpc1.ClientStream
}

type GoCryptoTraderService_UpdateTickerServer

type GoCryptoTraderService_UpdateTickerServer interface {
	Send(*UpdateTickerReport) error
	grpc1.ServerStream
}

type InfluxContext

type InfluxContext interface {
	GetBpCfg() ic.BatchPointsConfig
	Write(ic.BatchPoints) error
}

type SpecificTicker

type SpecificTicker struct {
	Currency     string `protobuf:"bytes,1,opt,name=Currency" json:"Currency,omitempty"`
	ExchangeName string `protobuf:"bytes,2,opt,name=ExchangeName" json:"ExchangeName,omitempty"`
	AssetType    string `protobuf:"bytes,3,opt,name=AssetType" json:"AssetType,omitempty"`
}

func (*SpecificTicker) Descriptor

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

func (*SpecificTicker) GetAssetType

func (m *SpecificTicker) GetAssetType() string

func (*SpecificTicker) GetCurrency

func (m *SpecificTicker) GetCurrency() string

func (*SpecificTicker) GetExchangeName

func (m *SpecificTicker) GetExchangeName() string

func (*SpecificTicker) ProtoMessage

func (*SpecificTicker) ProtoMessage()

func (*SpecificTicker) Reset

func (m *SpecificTicker) Reset()

func (*SpecificTicker) String

func (m *SpecificTicker) String() string

type UpdateTickerReport

type UpdateTickerReport struct {
	Price        *ticker.Price `protobuf:"bytes,1,opt,name=Price" json:"Price,omitempty"`
	ExchangeName string        `protobuf:"bytes,2,opt,name=ExchangeName" json:"ExchangeName,omitempty"`
	AssetType    string        `protobuf:"bytes,3,opt,name=AssetType" json:"AssetType,omitempty"`
}

func (*UpdateTickerReport) Descriptor

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

func (*UpdateTickerReport) GetAssetType

func (m *UpdateTickerReport) GetAssetType() string

func (*UpdateTickerReport) GetExchangeName

func (m *UpdateTickerReport) GetExchangeName() string

func (*UpdateTickerReport) GetPrice

func (m *UpdateTickerReport) GetPrice() *ticker.Price

func (*UpdateTickerReport) ProtoMessage

func (*UpdateTickerReport) ProtoMessage()

func (*UpdateTickerReport) Reset

func (m *UpdateTickerReport) Reset()

func (*UpdateTickerReport) StoreInInflux

func (rep *UpdateTickerReport) StoreInInflux(ctx InfluxContext) error

func (*UpdateTickerReport) String

func (m *UpdateTickerReport) String() string

Jump to

Keyboard shortcuts

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