actions

package
v0.0.0-...-5da754f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxLBCPayment float64

MaxLBCPayment is the maximum a payment can be

View Source
var MaxLBCPerHour float64

MaxLBCPerHour is the maximum amount of LBC that can be sent in an hour.

Functions

func Addresses

func Addresses(r *http.Request) api.Response

Addresses Handler returns lbrycrd wallet available balances

func Balance

func Balance(r *http.Request) api.Response

Balance Handler returns lbrycrd wallet available balances

func ConfigureAPIServer

func ConfigureAPIServer()

ConfigureAPIServer handles all of the configuration of the api server

func Root

func Root(r *http.Request) api.Response

Root Handler is the default handler

func Send

func Send(r *http.Request) api.Response

Send Handler sends LBC via LBRYcrd to a wallet addressed passed in.

func Test

func Test(_ *http.Request) api.Response

Test Handler can be used for testing and triggering

Types

type Routes

type Routes struct {
	// contains filtered or unexported fields
}

Routes holds a map of api handlers with the key being the route

func GetRoutes

func GetRoutes() *Routes

GetRoutes returns the set of Routes specified for the API server

func (*Routes) Each

func (r *Routes) Each(f func(string, http.Handler))

Each applies to a function of the type specified to each of the Routes

Jump to

Keyboard shortcuts

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