finger

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

func (*Handler) GetTemplatesFuncMap

func (f *Handler) GetTemplatesFuncMap(conn *ttconn.Connection) (tplFunc map[string]interface{}, err error)

func (*Handler) ParseData

func (f *Handler) ParseData(conn *ttconn.Connection, inbuf []byte) (string, interface{}, error)

func (*Handler) PostProcess

func (f *Handler) PostProcess(conn *ttconn.Connection, route string, extraData interface{}, input interface{}) (output interface{}, err error)

func (*Handler) Process

func (f *Handler) Process(conn *ttconn.Connection, route string, extraData interface{}, forceCacheUpdate bool) (output interface{}, err error)

func (*Handler) Read

func (f *Handler) Read(conn *ttconn.Connection) ([]byte, error)

func (*Handler) RegisterPrometheusMetrics

func (f *Handler) RegisterPrometheusMetrics() error

func (*Handler) ServeConn

func (f *Handler) ServeConn(conn *ttconn.Connection) error

func (*Handler) ServeCrontab

func (f *Handler) ServeCrontab(conn *ttconn.Connection, route string, routeExtraData interface{}) error

func (*Handler) Write

func (f *Handler) Write(conn *ttconn.Connection, output interface{}) (n int64, err error)

type Query

type Query struct {
	Username string   // Username, can be blank
	Hostname []string // Hostname (zero or more), not used
}

func ParseQuery

func ParseQuery(line string) (*Query, error)

Jump to

Keyboard shortcuts

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