rest

package
v0.0.0-...-d0596f5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler = func() (interface{}, error)

type RESTServer

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

func NewServer

func NewServer(opts *RESTServerOptions) *RESTServer

func (*RESTServer) Get

func (r *RESTServer) Get(route string, fn Handler)

func (*RESTServer) Run

func (r *RESTServer) Run() error

type RESTServerOptions

type RESTServerOptions struct {
	Port int
}

Jump to

Keyboard shortcuts

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