api

package
v0.0.0-...-2b82ec7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(authority common.Authority) error

Types

type APIHandler

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

func (*APIHandler) Route

func (h *APIHandler) Route(r Router)

func (*APIHandler) Version

func (h *APIHandler) Version(w http.ResponseWriter, r *http.Request)

type RouteHandler

type RouteHandler interface {
	Route(r Router)
}

type Router

type Router interface {
	MethodFunc(method, pattern string, h http.HandlerFunc)
}

Jump to

Keyboard shortcuts

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