webapi

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, BSD-2-Clause Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// CfgBindAddress defines the config flag of the web API binding address.
	CfgBindAddress = "webapi.bindAddress"
	// CfgBasicAuthEnabled defines the config flag of the webapi basic auth enabler.
	CfgBasicAuthEnabled = "webapi.basic_auth.enabled"
	// CfgBasicAuthUsername defines the config flag of the webapi basic auth username.
	CfgBasicAuthUsername = "webapi.basic_auth.username"
	// CfgBasicAuthPassword defines the config flag of the webapi basic auth password.
	CfgBasicAuthPassword = "webapi.basic_auth.password"
)
View Source
const PluginName = "WebAPI"

PluginName is the name of the web API plugin.

Variables

This section is empty.

Functions

func IndexRequest

func IndexRequest(c echo.Context) error

IndexRequest returns INDEX

func ParseJSONRequest added in v0.5.8

func ParseJSONRequest(c echo.Context, dest interface{}) error

ParseJSONRequest parses json from HTTP request body into the dest.

func Plugin added in v0.2.0

func Plugin() *node.Plugin

Plugin gets the plugin instance.

func Server

func Server() *echo.Echo

Server gets the server instance.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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