types

package
v0.0.0-...-a9c8dba Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthVe        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVe          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVe = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DaemonVoteExtension

type DaemonVoteExtension struct {
	// Prices defines a map of marketId -> PricePair.
	Prices []PricePair `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"`
}

Daemon VoteExtension defines the vote extension structure for daemon prices.

func (*DaemonVoteExtension) Descriptor

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

func (*DaemonVoteExtension) GetPrices

func (m *DaemonVoteExtension) GetPrices() []PricePair

func (*DaemonVoteExtension) Marshal

func (m *DaemonVoteExtension) Marshal() (dAtA []byte, err error)

func (*DaemonVoteExtension) MarshalTo

func (m *DaemonVoteExtension) MarshalTo(dAtA []byte) (int, error)

func (*DaemonVoteExtension) MarshalToSizedBuffer

func (m *DaemonVoteExtension) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DaemonVoteExtension) ProtoMessage

func (*DaemonVoteExtension) ProtoMessage()

func (*DaemonVoteExtension) Reset

func (m *DaemonVoteExtension) Reset()

func (*DaemonVoteExtension) Size

func (m *DaemonVoteExtension) Size() (n int)

func (*DaemonVoteExtension) String

func (m *DaemonVoteExtension) String() string

func (*DaemonVoteExtension) Unmarshal

func (m *DaemonVoteExtension) Unmarshal(dAtA []byte) error

func (*DaemonVoteExtension) XXX_DiscardUnknown

func (m *DaemonVoteExtension) XXX_DiscardUnknown()

func (*DaemonVoteExtension) XXX_Marshal

func (m *DaemonVoteExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DaemonVoteExtension) XXX_Merge

func (m *DaemonVoteExtension) XXX_Merge(src proto.Message)

func (*DaemonVoteExtension) XXX_Size

func (m *DaemonVoteExtension) XXX_Size() int

func (*DaemonVoteExtension) XXX_Unmarshal

func (m *DaemonVoteExtension) XXX_Unmarshal(b []byte) error

type PricePair

type PricePair struct {
	MarketId  uint32 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	SpotPrice []byte `protobuf:"bytes,2,opt,name=spot_price,json=spotPrice,proto3" json:"spot_price,omitempty"`
	PnlPrice  []byte `protobuf:"bytes,3,opt,name=pnl_price,json=pnlPrice,proto3" json:"pnl_price,omitempty"`
}

PricePair defines a pair of prices for a market.

func (*PricePair) Descriptor

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

func (*PricePair) GetMarketId

func (m *PricePair) GetMarketId() uint32

func (*PricePair) GetPnlPrice

func (m *PricePair) GetPnlPrice() []byte

func (*PricePair) GetSpotPrice

func (m *PricePair) GetSpotPrice() []byte

func (*PricePair) Marshal

func (m *PricePair) Marshal() (dAtA []byte, err error)

func (*PricePair) MarshalTo

func (m *PricePair) MarshalTo(dAtA []byte) (int, error)

func (*PricePair) MarshalToSizedBuffer

func (m *PricePair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PricePair) ProtoMessage

func (*PricePair) ProtoMessage()

func (*PricePair) Reset

func (m *PricePair) Reset()

func (*PricePair) Size

func (m *PricePair) Size() (n int)

func (*PricePair) String

func (m *PricePair) String() string

func (*PricePair) Unmarshal

func (m *PricePair) Unmarshal(dAtA []byte) error

func (*PricePair) XXX_DiscardUnknown

func (m *PricePair) XXX_DiscardUnknown()

func (*PricePair) XXX_Marshal

func (m *PricePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PricePair) XXX_Merge

func (m *PricePair) XXX_Merge(src proto.Message)

func (*PricePair) XXX_Size

func (m *PricePair) XXX_Size() int

func (*PricePair) XXX_Unmarshal

func (m *PricePair) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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