Documentation
¶
Index ¶
Constants ¶
View Source
const ( MethodMerryFund = "merry_fund" MethodMerryUpdate = "merry_update" MethodMerryVersion = "merry_version" MethodMerryBitcoin = "merry_bitcoin" MethodMerryArbitrum = "merry_arbitrum" MethodMerryEthereum = "merry_ethereum" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Fund(req RequestFund) error
Update() error
Version() (ResponseVersion, error)
RelayBitcoin(req RequestRelay) (interface{}, error)
RelayEthereum(req RequestRelay) (interface{}, error)
RelayArbitrum(req RequestRelay) (interface{}, error)
}
type Handler ¶
type Handler interface {
MerryFund(ctx context.Context, Request RequestFund) error
MerryUpdate(ctx context.Context) error
MerryVersion() ResponseVersion
MerryRelay(ctx context.Context, service string, Request RequestRelay) (merry.Response, error)
}
func NewMerryHandler ¶
type RequestFund ¶
type RequestFund struct {
To string `json:"to" binding:"required"`
}
type RequestRelay ¶
type RequestRelay struct {
Method string `json:"method" binding:"required"`
Request json.RawMessage `json:"request" binding:"required"`
}
type ResponseRelay ¶
type ResponseRelay interface{}
type ResponseVersion ¶
Click to show internal directories.
Click to hide internal directories.