server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Set = wire.NewSet(New)

Functions

This section is empty.

Types

type HFunc

type HFunc = func(w http.ResponseWriter, req *http.Request)

type MyHandler

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

func (*MyHandler) Get

func (h *MyHandler) Get(path string, fn HFunc)

func (*MyHandler) Post

func (h *MyHandler) Post(path string, fn HFunc)

func (*MyHandler) ServeHTTP

func (h *MyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Server

type Server struct{}

func New

func New() *Server

func (*Server) Start

func (s *Server) Start(address string, cron *core.Manager) error

Jump to

Keyboard shortcuts

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