Documentation ¶
Index ¶
- type MiddlewareMux
- type StandardRouter
- func (sr *StandardRouter) About(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) GetPostByName(postName string, frag bool, w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) Index(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) NoRoute(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) Post(w http.ResponseWriter, r *http.Request)
- func (sr StandardRouter) PostAsset(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) PostAssetAbs(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) SearchPosts(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) StaticFile(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) StaticFileAtomic(contentType string) func(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) Subscribe(w http.ResponseWriter, r *http.Request)
- func (sr *StandardRouter) SubscribeAdd(w http.ResponseWriter, r *http.Request)
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))
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)
Click to show internal directories.
Click to hide internal directories.