simpleserver

package
v0.0.0-...-24ca9bf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HF

type HF = http.HandlerFunc // func(http.ResponseWriter, *http.Request)

HF is a type alias for http.HandlerFunc.

The HandlerFunc type is an adapter to allow the use of ordinary functions as HTTP handlers. If f is a function with the appropriate signature, HandlerFunc(f) is a Handler that calls f.

type Handler

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

BST nodes

func NewHandler

func NewHandler(pattern string, h HF) *Handler

func (*Handler) Fn

func (h *Handler) Fn() HF

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) Register

func (h *Handler) Register()

type HandlerLister

type HandlerLister interface {
	binarysearchtree.BSTer[int, *Handler]
	Name() string
	Register() error
}

func New

func New(name string) HandlerLister

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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