Categorygithub.com/stn81/kate
modulepackage
1.0.38
Repository: https://github.com/stn81/kate.git
Documentation: pkg.go.dev

# README

kate service framework

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package redsync provides a Redis-based distributed mutual exclusion lock implementation as described in the post http://redis.io/topics/distlock.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Cached implements the cached middleware.
DELETE only allow DELETE method.
ErrBadParam returns an instance of bad param ErrorInfo.
GET only allow GET method.
Handle adapt the ContextHandler to httprouter.Handle func.
HEAD only allow HEAD method.
Logging implements the request in/out logging middleware.
MethodOnly is used to restrict http method for standard http router.
NewChain create a new middleware chain.
NewError create an errSimple instance.
NewErrorWithData create a errWithData instance.
NewRESTRouter create a REST router.
NewRouter create a http router.
OPTIONS only allow OPTIONS method.
PATCH only allow PATCH method.
POST
POST only allow POST method.
PUT only allow PUT method.
StdHandler adapt ContextHandler to http.Handler interface.

# Constants

HeaderContentType the header name of `Content-Type`.
No description provided by the author
MIMEApplicationJSON the application type for json.
MIMEApplicationJSONCharsetUTF8 the application type for json of utf-8 encoding.

# Variables

No description provided by the author
ErrSuccess indicates api success.
Recovery implements the recovery wrapper middleware.
No description provided by the author

# Structs

BaseHandler is the enhanced version of ngs.BaseController.
Chain is the middleware chain.
Request defines the http request.
RESTRouter define the REST router.
Result define the handle result for http request.
Router defines the standard http outer.

# Interfaces

ContextHandler defines the handler interface.
ErrorInfo defines the error type.
ErrorInfoWithData defines the error type with extra data.
Middleware defines the middleware interface.
ResponseWriter defines the response writer.

# Type aliases

ContextHandlerFunc defines the handler func adapter.
MiddlewareFunc defines the middleware func.