api

package
v0.0.0-...-caa7b66 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (err error)

New echo api

Types

type AuthHandler

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

func (*AuthHandler) Middleware

func (ah *AuthHandler) Middleware(username, password string, c echo.Context) (bool, error)

type RegistryHandler

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

RegistryHandler handler

func (*RegistryHandler) Bind

func (h *RegistryHandler) Bind(router *echo.Echo)

Bind controller

func (*RegistryHandler) POST

func (h *RegistryHandler) POST(c echo.Context) error

POST User

type UsersHandler

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

Users handler

func (*UsersHandler) Bind

func (h *UsersHandler) Bind(router *echo.Echo)

Bind controller

func (*UsersHandler) DELETE

func (h *UsersHandler) DELETE(c echo.Context) error

DELETE User

func (*UsersHandler) GET

func (h *UsersHandler) GET(c echo.Context) error

GET User

func (*UsersHandler) POST

func (h *UsersHandler) POST(c echo.Context) error

POST User

func (*UsersHandler) PUT

func (h *UsersHandler) PUT(c echo.Context) error

PUT change info

Jump to

Keyboard shortcuts

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