actions

package
v0.0.0-...-39b8527 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoUpdateCommand = ""

AutoUpdateCommand is the path of the shell script to run in the environment chainquery is installed on. It should stop the service, download and replace the new binary from https://github.com/lbryio/chainquery/releases, start the service.

Functions

func AutoComplete

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

AutoComplete returns the name of claims that it matches against for auto completion.

func AutoUpdateAction

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

AutoUpdateAction takes a travis webhook for a successful deployment and runs an environment script to self update.

func Root

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

Root Handler is the default handler

func Status

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

Status returns the status of lighthouse including version information and elastic search state.

func Test

func Test(r *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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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