server

package
v0.0.0-...-20e9297 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMux

func NewMux(app Application) *bone.Mux

NewMux creates a new server mux.

func SomeHandler

func SomeHandler(app Application) http.HandlerFunc

SomeHandler handles requests of some type.

Types

type Application

type Application interface {
	log.Loggable
	stats.Statable

	// YourFunction represents your application function.
	YourFunction() error
}

Application represents the main application.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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