handlers

package
v0.0.0-...-032496f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlgoCoinsHandler

func AlgoCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func AllCoinsHandler

func AllCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func CoinHandler

func CoinHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func CoinNodesHandler

func CoinNodesHandler(cq *coin.CoinsQueries)

CoinNodesHandler handles a request for (?)

func CoinsBinHandler

func CoinsBinHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func CoinsHandler

func CoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func CoinsWordsHandler

func CoinsWordsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func JsonAlgoCoinsHandler

func JsonAlgoCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

jsonHandler handles a request for json data

func LogoHandler

func LogoHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

LogoHandler handles a request for logo data

func NodeCoinsHandler

func NodeCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func NodeHandler

func NodeHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

NodeHandler handles a request for (?)

func RestCoinsHandler

func RestCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

func UsableCoinsHandler

func UsableCoinsHandler(cq *coin.CoinsQueries) func(c *fiber.Ctx) error

CoinsHandler handles a request for coin data

Types

type API

type API struct {
	UrlFormat string
	Endpoint  string
	Commands  map[string]string `json:"commands"`
}

type JormAPI

type JormAPI struct {
	OKNO         strapi.StrapiRestClient
	Apis         map[string][]API
	JORMcommands *JormCmds
	ExJDB        map[string]*explorer.ExplorerJDBs
	Coin         string
	CQ           *coin.CoinsQueries
}

func (*JormAPI) LastBlock

func (ja *JormAPI) LastBlock() func(c *fiber.Ctx) error

func (*JormAPI) ViewBlocks

func (ja *JormAPI) ViewBlocks(okno strapi.StrapiRestClient, apis map[string][]API, jormCommands *JormCmds, exJDBs map[string]*explorer.ExplorerJDBs) func(c *fiber.Ctx) error

func (*JormAPI) ViewStatus

func (ja *JormAPI) ViewStatus() func(c *fiber.Ctx) error

func (*JormAPI) ViewType

func (ja *JormAPI) ViewType() func(c *fiber.Ctx) error

func (*JormAPI) ViewTypes

func (ja *JormAPI) ViewTypes() func(c *fiber.Ctx) error

type JormCmds

type JormCmds struct {
	CMDs     map[string](func(vars map[string]interface{}) map[string]interface{})
	Command  string
	Variable string
}

Jump to

Keyboard shortcuts

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