api

package
v0.0.0-...-782863c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Error string `json:"error,omitempty"`
}

type Router

type Router struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func New

func New(srv service.Service, wssrv service.WSService) *Router

type TransactionRequest

type TransactionRequest struct {
	Tx []byte `json:"tx"`
}

TransactionRequest represent the payload for a single transasction, the byte slice will be a base64 encoded string in the json payload

type TransactionsRequest

type TransactionsRequest struct {
	Txs [][]byte `json:"txs"`
}

TransactionsRequest represent the payload for a list of transasctions the byte slice slice will be a base64 encoded string slice in the json payload

type WSUpgrader

type WSUpgrader interface {
	Upgrade(w http.ResponseWriter, r *http.Request) (service.WriteMessageCloser, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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