handler

package
v3.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v3.0.14

type Logger struct {
	gopi.Unit
	gopi.Server
	gopi.Metrics
}

func (*Logger) Log added in v3.0.14

func (this *Logger) Log(name string) error

Register a service which logs metrics

type LoggerHandler added in v3.0.14

type LoggerHandler struct {
	*Logger

	http.Handler
	// contains filtered or unexported fields
}

func (*LoggerHandler) ServeHTTP added in v3.0.14

func (this *LoggerHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Log metrics

func (*LoggerHandler) SetHandler added in v3.0.14

func (this *LoggerHandler) SetHandler(handler http.Handler)

Set handler

type Static

type Static struct {
	gopi.Unit
	gopi.Server
}

func (*Static) ServeFolder

func (this *Static) ServeFolder(path, folder string) error

Register a service to serve static files to path from a folder

Jump to

Keyboard shortcuts

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