std

package
v0.0.0-...-346bb9c Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareMux

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

func (*MiddlewareMux) Clone

func (mm *MiddlewareMux) Clone() *MiddlewareMux

func (*MiddlewareMux) HandleFunc

func (mm *MiddlewareMux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*MiddlewareMux) Use

func (mm *MiddlewareMux) Use(middleware ...func(http.Handler) http.Handler)

type StandardRouter

type StandardRouter struct {
	PostSrv ports.PostService
	// contains filtered or unexported fields
}

func NewStandardRouter

func NewStandardRouter(ps ports.PostService) *StandardRouter

func (*StandardRouter) About

func (sr *StandardRouter) About(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) GetPostByName

func (sr *StandardRouter) GetPostByName(postName string, frag bool, w http.ResponseWriter, r *http.Request)

func (*StandardRouter) Index

func (sr *StandardRouter) Index(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) NoRoute

func (sr *StandardRouter) NoRoute(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) Post

func (sr *StandardRouter) Post(w http.ResponseWriter, r *http.Request)

func (StandardRouter) PostAsset

func (sr StandardRouter) PostAsset(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) PostAssetAbs

func (sr *StandardRouter) PostAssetAbs(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) SearchPosts

func (sr *StandardRouter) SearchPosts(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) ServeHTTP

func (sr *StandardRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) StaticFile

func (sr *StandardRouter) StaticFile(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) StaticFileAtomic

func (sr *StandardRouter) StaticFileAtomic(contentType string) func(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) Subscribe

func (sr *StandardRouter) Subscribe(w http.ResponseWriter, r *http.Request)

func (*StandardRouter) SubscribeAdd

func (sr *StandardRouter) SubscribeAdd(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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