scheduler

package module
v0.0.0-...-2e7fcda Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FNVHash

func FNVHash(uri string) uint64

Types

type Router

type Router interface {
	Insert(unique []uint64, data interface{})
	Match(unique []uint64) interface{}
}

type Scheduler

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

func NewEngine

func NewEngine(router Router) *Scheduler

func (*Scheduler) AddRouter

func (engine *Scheduler) AddRouter(uri, method string, fn http.HandlerFunc)

func (*Scheduler) ServeHTTP

func (engine *Scheduler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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