api

package
v0.0.0-...-f8717e4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Storage *storage.Storage
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(storage *storage.Storage) *API

func (*API) GetAction

func (a *API) GetAction(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*API) PostAction

func (a *API) PostAction(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*API) Shutdown

func (a *API) Shutdown() error

func (*API) Start

func (a *API) Start(port string) error

type PostActionInput

type PostActionInput struct {
	Username string
	Password string
}

type PostActionOutput

type PostActionOutput struct {
	Id       string `json:"id"`
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

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