handlers

package
v0.0.0-...-442eafe Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type Login

type Login struct {
}

func NewLogin

func NewLogin() *Login

func (*Login) Endpoint

func (h *Login) Endpoint() string

func (*Login) Method

func (h *Login) Method() string

func (*Login) Run

func (h *Login) Run(w http.ResponseWriter, r *http.Request)

type Ls

type Ls struct {
}

func NewLs

func NewLs() *Ls

func (*Ls) Endpoint

func (h *Ls) Endpoint() string

func (*Ls) Method

func (h *Ls) Method() string

func (*Ls) Run

func (h *Ls) Run(w http.ResponseWriter, r *http.Request)

type RestHandler

type RestHandler interface {
	Endpoint() string
	Run(http.ResponseWriter, *http.Request)
	Method() string
}

Jump to

Keyboard shortcuts

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