Documentation ¶
Index ¶
Constants ¶
View Source
const CurrencyVersion = 0
Variables ¶
View Source
var ( ErrInvalidCurrencyRequest = errors.New("kaetzchen/meson: invalid request") ErrWrongTicker = errors.New("meson: request ticker mismatch") )
Functions ¶
func RespondFailure ¶
func RespondSuccess ¶
func ResponseFromJson ¶
Types ¶
type CurrencyRequest ¶
func NewRequest ¶
func NewRequest(command uint8, ticker string, payload []byte) *CurrencyRequest
func RequestFromJson ¶
func RequestFromJson(rawRequest []byte) (*CurrencyRequest, error)
func (*CurrencyRequest) ToJson ¶
func (c *CurrencyRequest) ToJson() []byte
type CurrencyResponse ¶
func NewResponse ¶
func NewResponse(message string, errMsg string) *CurrencyResponse
func (*CurrencyResponse) ToJson ¶
func (c *CurrencyResponse) ToJson() []byte
Click to show internal directories.
Click to hide internal directories.