router

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	Address string
	// contains filtered or unexported fields
}

Router is the main application HTTP router.

func NewRouter

func NewRouter(datastore *redis.Controller, database *sql.Controller) *Router

NewRouter creates a new Router struct from the given context.

func (*Router) Run

func (r *Router) Run() error

Run starts the router and handles all shutdown operations if an external shutdown signal is received.

func (*Router) Shutdown

func (r *Router) Shutdown() error

Shutdown attempts to safely shutdown the router.

Jump to

Keyboard shortcuts

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