webauth

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0, BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WEBAPI_AUTH_USERNAME    = "webapi.auth.username"
	WEBAPI_AUTH_PASSWORD    = "webapi.auth.password"
	WEBAPI_AUTH_PRIVATE_KEY = "webapi.auth.privateKey"
)

Variables

View Source
var PLUGIN = node.NewPlugin("WebAPI Auth", node.Disabled, configure)

Functions

func Handler

func Handler(c echo.Context) error

Types

type Request

type Request struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Response

type Response struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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