api

package
v0.0.0-...-59e6379 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

func ResponseError

func ResponseError(w http.ResponseWriter, msg string, code int)

func ResponseJson

func ResponseJson(w http.ResponseWriter, obj interface{})

func StartHttp

func StartHttp(httpAddr string, rt *proxy.Runtime)

Types

type AdminHandler

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

AdminHandler: admin api handler

func NewAdminHandler

func NewAdminHandler(rt *proxy.Runtime) *AdminHandler

func (*AdminHandler) Root

func (h *AdminHandler) Root(w http.ResponseWriter, r *http.Request)

adminHandler: admin api handler

func (*AdminHandler) ServiceEndpoints

func (h *AdminHandler) ServiceEndpoints(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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