srv

package
v0.0.0-...-d06d904 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSrvContext

func NewSrvContext() godoo.IServerContext

Types

type FakeSrvContext

type FakeSrvContext struct {
	Server http.Server
	// contains filtered or unexported fields
}

func (*FakeSrvContext) Serve

func (s *FakeSrvContext) Serve()

func (*FakeSrvContext) SetupServerContext

func (s *FakeSrvContext) SetupServerContext(cf godoo.ServerConfigVals)

type Handler

type Handler struct {
	Repo         godoo.IRepository
	PriorityList *godoo.PriorityList
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(ct godoo.ServerConfigVals) *Handler

Returns a new http handler. If runPl is true, then the handler will maintain a priority queue as well.

func (*Handler) AddHandler

func (h *Handler) AddHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) EditHandler

func (h *Handler) EditHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) GetHandler

func (h *Handler) GetHandler(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleRequests

func (h *Handler) HandleRequests(w http.ResponseWriter, r *http.Request)

func (Handler) TestHandler

func (h Handler) TestHandler(w http.ResponseWriter, r *http.Request)

type SrvContext

type SrvContext struct {
	Server http.Server
	// contains filtered or unexported fields
}

func (*SrvContext) Serve

func (s *SrvContext) Serve()

func (*SrvContext) SetupServerContext

func (s *SrvContext) SetupServerContext(cf godoo.ServerConfigVals)

Jump to

Keyboard shortcuts

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