Documentation
¶
Index ¶
- Variables
- type Currency
- type CurrencyAmount
- func (*CurrencyAmount) Descriptor() ([]byte, []int)deprecated
- func (x *CurrencyAmount) GetCurrency() Currency_Code
- func (x *CurrencyAmount) GetMicros() int64
- func (*CurrencyAmount) ProtoMessage()
- func (x *CurrencyAmount) ProtoReflect() protoreflect.Message
- func (x *CurrencyAmount) Reset()
- func (x *CurrencyAmount) String() string
- type CurrencyExchangeRateUSDTable
- func (*CurrencyExchangeRateUSDTable) Descriptor() ([]byte, []int)deprecated
- func (x *CurrencyExchangeRateUSDTable) GetRates() []*ExchangeRateUSD
- func (*CurrencyExchangeRateUSDTable) ProtoMessage()
- func (x *CurrencyExchangeRateUSDTable) ProtoReflect() protoreflect.Message
- func (x *CurrencyExchangeRateUSDTable) Reset()
- func (x *CurrencyExchangeRateUSDTable) String() string
- type CurrencyTransaction
- func (*CurrencyTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *CurrencyTransaction) GetAmount() *CurrencyAmount
- func (x *CurrencyTransaction) GetRate() float64
- func (*CurrencyTransaction) ProtoMessage()
- func (x *CurrencyTransaction) ProtoReflect() protoreflect.Message
- func (x *CurrencyTransaction) Reset()
- func (x *CurrencyTransaction) String() string
- type Currency_Code
- func (Currency_Code) Descriptor() protoreflect.EnumDescriptor
- func (x Currency_Code) Enum() *Currency_Code
- func (Currency_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x Currency_Code) Number() protoreflect.EnumNumber
- func (x Currency_Code) String() string
- func (Currency_Code) Type() protoreflect.EnumType
- type ExchangeRateUSD
- func (*ExchangeRateUSD) Descriptor() ([]byte, []int)deprecated
- func (x *ExchangeRateUSD) GetCurrencyCode() Currency_Code
- func (x *ExchangeRateUSD) GetRate() float64
- func (*ExchangeRateUSD) ProtoMessage()
- func (x *ExchangeRateUSD) ProtoReflect() protoreflect.Message
- func (x *ExchangeRateUSD) Reset()
- func (x *ExchangeRateUSD) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Currency_Code_name = map[int32]string{ 0: "UNKNOWN", 1: "USD", 2: "EUR", 3: "GBP", 4: "CAD", 5: "CHF", 6: "UAH", 7: "JPY", } Currency_Code_value = map[string]int32{ "UNKNOWN": 0, "USD": 1, "EUR": 2, "GBP": 3, "CAD": 4, "CHF": 5, "UAH": 6, "JPY": 7, } )
Enum value maps for Currency_Code.
View Source
var File_beeswax_currency_currency_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Currency ¶
type Currency struct {
// contains filtered or unexported fields
}
func (*Currency) Descriptor
deprecated
func (*Currency) ProtoMessage ¶
func (*Currency) ProtoMessage()
func (*Currency) ProtoReflect ¶
func (x *Currency) ProtoReflect() protoreflect.Message
type CurrencyAmount ¶
type CurrencyAmount struct { // how much money Micros int64 `protobuf:"varint,1,opt,name=micros,proto3" json:"micros,omitempty"` // in what unit Currency Currency_Code `protobuf:"varint,2,opt,name=currency,proto3,enum=currency.Currency_Code" json:"currency,omitempty"` // contains filtered or unexported fields }
Next id: 3 CurrencyAmount represents an amount of money in a local currency (micros).
func (*CurrencyAmount) Descriptor
deprecated
func (*CurrencyAmount) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyAmount.ProtoReflect.Descriptor instead.
func (*CurrencyAmount) GetCurrency ¶
func (x *CurrencyAmount) GetCurrency() Currency_Code
func (*CurrencyAmount) GetMicros ¶
func (x *CurrencyAmount) GetMicros() int64
func (*CurrencyAmount) ProtoMessage ¶
func (*CurrencyAmount) ProtoMessage()
func (*CurrencyAmount) ProtoReflect ¶
func (x *CurrencyAmount) ProtoReflect() protoreflect.Message
func (*CurrencyAmount) Reset ¶
func (x *CurrencyAmount) Reset()
func (*CurrencyAmount) String ¶
func (x *CurrencyAmount) String() string
type CurrencyExchangeRateUSDTable ¶
type CurrencyExchangeRateUSDTable struct { Rates []*ExchangeRateUSD `protobuf:"bytes,1,rep,name=rates,proto3" json:"rates,omitempty"` // contains filtered or unexported fields }
Next id: 2
func (*CurrencyExchangeRateUSDTable) Descriptor
deprecated
func (*CurrencyExchangeRateUSDTable) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyExchangeRateUSDTable.ProtoReflect.Descriptor instead.
func (*CurrencyExchangeRateUSDTable) GetRates ¶
func (x *CurrencyExchangeRateUSDTable) GetRates() []*ExchangeRateUSD
func (*CurrencyExchangeRateUSDTable) ProtoMessage ¶
func (*CurrencyExchangeRateUSDTable) ProtoMessage()
func (*CurrencyExchangeRateUSDTable) ProtoReflect ¶
func (x *CurrencyExchangeRateUSDTable) ProtoReflect() protoreflect.Message
func (*CurrencyExchangeRateUSDTable) Reset ¶
func (x *CurrencyExchangeRateUSDTable) Reset()
func (*CurrencyExchangeRateUSDTable) String ¶
func (x *CurrencyExchangeRateUSDTable) String() string
type CurrencyTransaction ¶
type CurrencyTransaction struct { // how much money Amount *CurrencyAmount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // exchange rate in effect at time of transaction Rate float64 `protobuf:"fixed64,2,opt,name=rate,proto3" json:"rate,omitempty"` // contains filtered or unexported fields }
Next id: 3 CurrencyTransaction represents an amount of currency at a particular exchange rate.
func (*CurrencyTransaction) Descriptor
deprecated
func (*CurrencyTransaction) Descriptor() ([]byte, []int)
Deprecated: Use CurrencyTransaction.ProtoReflect.Descriptor instead.
func (*CurrencyTransaction) GetAmount ¶
func (x *CurrencyTransaction) GetAmount() *CurrencyAmount
func (*CurrencyTransaction) GetRate ¶
func (x *CurrencyTransaction) GetRate() float64
func (*CurrencyTransaction) ProtoMessage ¶
func (*CurrencyTransaction) ProtoMessage()
func (*CurrencyTransaction) ProtoReflect ¶
func (x *CurrencyTransaction) ProtoReflect() protoreflect.Message
func (*CurrencyTransaction) Reset ¶
func (x *CurrencyTransaction) Reset()
func (*CurrencyTransaction) String ¶
func (x *CurrencyTransaction) String() string
type Currency_Code ¶
type Currency_Code int32
const ( Currency_UNKNOWN Currency_Code = 0 Currency_USD Currency_Code = 1 // US Dollar Currency_EUR Currency_Code = 2 // Euro Currency_GBP Currency_Code = 3 // Pound Sterling Currency_CAD Currency_Code = 4 // Canadian Dollar Currency_CHF Currency_Code = 5 // Swiss Franc Currency_UAH Currency_Code = 6 // Ukrainian hryvnia Currency_JPY Currency_Code = 7 // Japanese Yen )
func (Currency_Code) Descriptor ¶
func (Currency_Code) Descriptor() protoreflect.EnumDescriptor
func (Currency_Code) Enum ¶
func (x Currency_Code) Enum() *Currency_Code
func (Currency_Code) EnumDescriptor
deprecated
func (Currency_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Currency_Code.Descriptor instead.
func (Currency_Code) Number ¶
func (x Currency_Code) Number() protoreflect.EnumNumber
func (Currency_Code) String ¶
func (x Currency_Code) String() string
func (Currency_Code) Type ¶
func (Currency_Code) Type() protoreflect.EnumType
type ExchangeRateUSD ¶
type ExchangeRateUSD struct { CurrencyCode Currency_Code `` /* 126-byte string literal not displayed */ Rate float64 `protobuf:"fixed64,2,opt,name=rate,proto3" json:"rate,omitempty"` // contains filtered or unexported fields }
Next id: 3
func (*ExchangeRateUSD) Descriptor
deprecated
func (*ExchangeRateUSD) Descriptor() ([]byte, []int)
Deprecated: Use ExchangeRateUSD.ProtoReflect.Descriptor instead.
func (*ExchangeRateUSD) GetCurrencyCode ¶
func (x *ExchangeRateUSD) GetCurrencyCode() Currency_Code
func (*ExchangeRateUSD) GetRate ¶
func (x *ExchangeRateUSD) GetRate() float64
func (*ExchangeRateUSD) ProtoMessage ¶
func (*ExchangeRateUSD) ProtoMessage()
func (*ExchangeRateUSD) ProtoReflect ¶
func (x *ExchangeRateUSD) ProtoReflect() protoreflect.Message
func (*ExchangeRateUSD) Reset ¶
func (x *ExchangeRateUSD) Reset()
func (*ExchangeRateUSD) String ¶
func (x *ExchangeRateUSD) String() string
Click to show internal directories.
Click to hide internal directories.