api

package
v0.0.0-...-5c0bb04 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App api server

func Server

func Server() *App

Server return a api.App

func (*App) NewContext

func (app *App) NewContext(r *http.Request, w http.ResponseWriter) echo.Context

NewContext uses echo.Echo.NewContext

func (*App) Shutdown

func (app *App) Shutdown(ctx context.Context) error

Shutdown close api server

func (*App) Start

func (app *App) Start(addr string) error

Start listen api server

Jump to

Keyboard shortcuts

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