actions

package
v0.0.0-...-78446d3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockChainNotification

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

BlockChainNotification api to notify blockchain service websockets

func CommentronNotification

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

CommentronNotification api to notify commentron service websockets

func InternalAPIsNotification

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

InternalAPIsNotification api to notify internal-apis service websockets

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 is the default handler

func Test

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

Test only used when in dev mode

Types

type Routes

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

Routes container for the route map between path and handler

func GetRoutes

func GetRoutes() *Routes

GetRoutes returns the routes for the API Server

func (*Routes) Each

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

Each applies a function wrapper middleware to each route

func (*Routes) Set

func (r *Routes) Set(key string, h api.Handler)

Set sets the map entry for the route

func (*Routes) Walk

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

Walk applies a function to each route

Jump to

Keyboard shortcuts

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