Versions in this module Expand all Collapse all v0 v0.2.1 Feb 19, 2024 v0.2.0 Jan 24, 2024 Changes in this version + const AuthorizationBearer + const AuthorizationHeader + const InternalServerError + const MissingXForwardedForHeaderError + const RateLimitExceededError + func AuthorizeAccount(ctx context.Context, walletAddress string, tokenMaker token.Maker, ...) (*token.Payload, error) + func CreateLimiterRedisStore(redisConnURL string) (limiter.Store, error) + func GrpcExtractMetadata(ctx context.Context, req any, _ *grpc.UnaryServerInfo, ...) (resp interface{}, err error) + func GrpcLogger(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error) + func GrpcRateLimiter(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error) + func HTTPExtractMetadata(handler http.Handler) http.Handler + func HTTPLogger(handler http.Handler) http.Handler + func HTTPRateLimiter(handler http.Handler) http.Handler + func InitializeLimiters(store limiter.Store) error + type ErrorResponse struct + Code int + Message string + type ReqContextKey string + const AuthenticatedService + const ClientIP + const ServiceAuthentication + const UserAgent + type ResponseRecorder struct + Body []byte + StatusCode int + func (rec *ResponseRecorder) Write(body []byte) (int, error) + func (rec *ResponseRecorder) WriteHeader(statusCode int)