Categorygithub.com/gs012345/sso
modulepackage
2.0.1+incompatible
Repository: https://github.com/gs012345/sso.git
Documentation: pkg.go.dev

# Functions

为返回值添加traceid的信息.
No description provided by the author
No description provided by the author
No description provided by the author
NewEndpointRateLimiterMw creates a simple ratelimiter for a given handlerFunc.
NewRateLimiterMw builds a rate limiting wrapper over the received handler factory.
No description provided by the author

# Constants

No description provided by the author

# Variables

ErrEmptyValue is the error returned when there is no config under the namespaceErrEmptyValue = errors.New("getting the extra config for the martian module") ErrBadValue is the error returned when the config is not a mapErrBadValue = errors.New("casting the extra config for the martian module") ErrMarshallingValue is the error returned when the config map can not be marshalled againErrMarshallingValue = errors.New("marshalling the extra config for the martian module") ErrEmptyResponse is the error returned when the modifier receives a nil response.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

EndpointMw is a function that decorates the received handlerFunc with some rateliming logic.