echo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes added in v0.4.0

func RegisterRoutes(rt *mux.Router, factory handler.Factory)

Types

type EchoModule

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

func NewEchoHandler

func NewEchoHandler() EchoModule

func (EchoModule) ServeHTTP

func (mod EchoModule) ServeHTTP(w http.ResponseWriter, r *http.Request)

type History

type History []Record

type HistoryModule

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

func NewHistoryHandler

func NewHistoryHandler() HistoryModule

func (HistoryModule) ServeHTTP

func (mod HistoryModule) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Record

type Record struct {
	Request string    `json:"request"`
	Date    time.Time `json:"date"`
}

Jump to

Keyboard shortcuts

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