common

package
v0.0.0-...-4f583ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 3 Imported by: 1

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

type CurrencyRequest struct {
	Version int
	Tx      string
	Ticker  string
	ChainID int
}

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

type CurrencyResponse struct {
	Version    int
	StatusCode int
	Message    string
}

func NewResponse

func NewResponse(status int, message string) *CurrencyResponse

func (*CurrencyResponse) ToJson

func (c *CurrencyResponse) ToJson() []byte

Directories

Path Synopsis
Package main for client C binding.
Package main for client C binding.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL