Documentation
¶
Overview ¶
Package currency is a generated protocol buffer package.
It is generated from these files:
github.com/crypto-bank/proto/currency/currency.proto
It has these top-level messages:
Currency Pair Volume
Index ¶
- Variables
- type Currency
- func (*Currency) Descriptor() ([]byte, []int)
- func (this *Currency) Equal(that interface{}) bool
- func (m *Currency) GetSymbol() string
- func (m *Currency) Marshal() (dAtA []byte, err error)
- func (m *Currency) MarshalTo(dAtA []byte) (int, error)
- func (*Currency) ProtoMessage()
- func (m *Currency) Reset()
- func (m *Currency) Size() (n int)
- func (m *Currency) String() string
- func (m *Currency) Unmarshal(dAtA []byte) error
- type Pair
- func (pair *Pair) Concat(symbol string) string
- func (*Pair) Descriptor() ([]byte, []int)
- func (this *Pair) Equal(that interface{}) bool
- func (m *Pair) GetFirst() *Currency
- func (m *Pair) GetSecond() *Currency
- func (m *Pair) Marshal() (dAtA []byte, err error)
- func (m *Pair) MarshalTo(dAtA []byte) (int, error)
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) Size() (n int)
- func (m *Pair) String() string
- func (m *Pair) Unmarshal(dAtA []byte) error
- type Volume
- func (*Volume) Descriptor() ([]byte, []int)
- func (this *Volume) Equal(that interface{}) bool
- func (m *Volume) GetAmount() float64
- func (m *Volume) GetCurrency() *Currency
- func (volume *Volume) HumanString() string
- func (m *Volume) Marshal() (dAtA []byte, err error)
- func (m *Volume) MarshalTo(dAtA []byte) (int, error)
- func (*Volume) ProtoMessage()
- func (m *Volume) Reset()
- func (m *Volume) Size() (n int)
- func (m *Volume) String() string
- func (m *Volume) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCurrency = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCurrency = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}
Currency - Currency symbol.
func FromString ¶
FromString - Creates a currency from a symbol string.
func (*Currency) Descriptor ¶
func (*Currency) ProtoMessage ¶
func (*Currency) ProtoMessage()
type Pair ¶
type Pair struct { // First - First currency in pair. First *Currency `protobuf:"bytes,1,opt,name=first" json:"first,omitempty"` // Second - Second currency in pair. Second *Currency `protobuf:"bytes,2,opt,name=second" json:"second,omitempty"` }
Pair - Currency pair.
func (*Pair) Descriptor ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
type Volume ¶
type Volume struct { // Currency - Currency symbol. Currency *Currency `protobuf:"bytes,1,opt,name=currency" json:"currency,omitempty"` // Amount - Amount of currency. Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"` }
Volume - Currency volume.
func (*Volume) Descriptor ¶
func (*Volume) GetCurrency ¶
func (*Volume) HumanString ¶
HumanString - Volume as human-readable string.
func (*Volume) ProtoMessage ¶
func (*Volume) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.