Versions in this module Expand all Collapse all v0 v0.1.0 Feb 18, 2024 Changes in this version + const InternalServerError + const MissingXForwardedForHeaderError + const RateLimitExceededError + func AuthorizeUser(ctx context.Context, walletAddress string, ...) (*pb.AccessTokenPayload, 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 + type ResponseRecorder struct + Body []byte + StatusCode int + func (rec *ResponseRecorder) Write(body []byte) (int, error) + func (rec *ResponseRecorder) WriteHeader(statusCode int)