Documentation ¶
Index ¶
Constants ¶
View Source
const ( CurrencyVersion = 0 CurrencyCapability = "currency" CurrencyTicker = "ticker" )
Variables ¶
View Source
var (
ErrInvalidCurrencyRequest = errors.New("kaetzchen/meson: invalid request")
)
Functions ¶
func RespondFailure ¶
func RespondSuccess ¶
func ResponseFromJson ¶
Types ¶
type CurrencyRequest ¶
func NewRequest ¶
func NewRequest(ticker string, hexBlob string) *CurrencyRequest
func RequestFromJson ¶
func RequestFromJson(expectedTicker string, 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.