Documentation ¶
Index ¶
Constants ¶
View Source
const ( CurrencyVersion = 0 CurrencyCapability = "currency" CurrencyTicker = "ticker" CurrencyChainId = "chainId" )
Variables ¶
View Source
var (
ErrInvalidCurrencyRequest = errors.New("kaetzchen/meson: invalid request")
)
Functions ¶
This section is empty.
Types ¶
type CurrencyRequest ¶
func NewRequest ¶
func NewRequest(ticker string, hexBlob string, chaindId int) *CurrencyRequest
func RequestFromJson ¶
func RequestFromJson(expectedTicker string, expectedChainId int, rawRequest []byte) (*CurrencyRequest, error)
func (*CurrencyRequest) ToJson ¶
func (c *CurrencyRequest) ToJson() []byte
type CurrencyResponse ¶
func NewResponse ¶
func NewResponse(status int, message string) *CurrencyResponse
func (*CurrencyResponse) ToJson ¶
func (c *CurrencyResponse) ToJson() []byte
Click to show internal directories.
Click to hide internal directories.