ahttp

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 7 Imported by: 0

README

A-HTTP

HTTP utils collection.

go get -u github.com/a-novel-kit/ahttp

GitHub Actions Workflow Status codecov

GitHub repo file or directory count GitHub code size in bytes

Coverage graph

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCToHTTPCode

func GRPCToHTTPCode(code codes.Code) int

func HandleGRPCError

func HandleGRPCError(ctx *gin.Context, err error) bool

HandleGRPCError handles errors returned by a GRPC service. It returns a boolean indicating whether the context was terminated.

func ReportMiddleware

func ReportMiddleware(logger quicklog.Logger, projectID string) gin.HandlerFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL