api

package
v0.0.0-...-60051b8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 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 Instance

type Instance struct {
	Echo       *echo.Echo
	RouteGroup map[string]*echo.Group
	Version    string
	// contains filtered or unexported fields
}

Instance defines web framework API instance

func New

func New() *Instance

New creates new API server instance and start the server immediately

func (*Instance) SaveRouteList

func (i *Instance) SaveRouteList() error

SaveRouteList will save all registedred route list into json file in the user home directory

func (*Instance) Stale

func (i *Instance) Stale()

Stale to shutdown the REST API Server

func (*Instance) Start

func (i *Instance) Start(nl net.Listener, address string) error

Start start up the REST API Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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