web

package
v0.0.0-...-d0a57a7 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Error bool        `json:"err"`
	Name  string      `json:"name"`
	Data  interface{} `json:"data"`
}

func GetEntries

func GetEntries(server *Server) *Response

func Welcome

func Welcome(server *Server) *Response

type Server

type Server struct {
	Config *core.Config
	DB     *sql.DB
	Router *mux.Router
	Routes routeMethodMap
}

func Create

func Create(config *core.Config) (*Server, error)

func (*Server) AddRoute

func (server *Server) AddRoute(method string, route string, callback callback)

func (*Server) Start

func (server *Server) Start()

Jump to

Keyboard shortcuts

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