api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonHandler

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

DaemonHandler is used to communicate with the daemon over HTTP.

func NewDaemonHandler

func NewDaemonHandler(cmdPath string) *DaemonHandler

NewDaemonHandler creates DaemonHandler.

func (*DaemonHandler) Logger

func (handler *DaemonHandler) Logger(logger *ttlog.Logger) *DaemonHandler

Logger sets logger for DaemonHandler.

func (*DaemonHandler) ServeHTTP

func (handler *DaemonHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request)

ServeHTTP handles requests to the tt daemon.

Jump to

Keyboard shortcuts

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