handler

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 24 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 interface {
	Peers(http.ResponseWriter, *http.Request)
	RPC(http.ResponseWriter, *http.Request)
	Details(http.ResponseWriter, *http.Request)
	Connections(http.ResponseWriter, *http.Request)
	Root(http.ResponseWriter, *http.Request)
	SetAllow(allow map[string][]*net.IPNet)
}

the argument passed to the handlers

func New

func New(
	log *logger.L,
	server *rpc.Server,
	start time.Time,
	version string,
	maximumConnections uint64,
) Handler

type InternalConnection

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

InternalConnection - type to allow RPC system to interface to http request

func (*InternalConnection) Close

func (c *InternalConnection) Close() error

func (*InternalConnection) Read

func (c *InternalConnection) Read(p []byte) (n int, err error)

func (*InternalConnection) Write

func (c *InternalConnection) Write(d []byte) (n int, err error)

Jump to

Keyboard shortcuts

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