Documentation ¶
Index ¶
- func ErrorHandler(c *gin.Context, message string, statusCode int)
- func ParseBody[B any](ctx context.Context, c *gin.Context) (body B, err error)
- func ParseJSONBody[B any](ctx context.Context, body io.ReadCloser) (*B, error)
- func ShortID(id string) string
- func UnwrapGRPCError(err error) error
- type Map
- type NoOpWriter
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJSONBody ¶
func UnwrapGRPCError ¶
Types ¶
type NoOpWriter ¶
type NoOpWriter struct{}
NoOpWriter is an io.Writer implementation that discards anything written to it.
Click to show internal directories.
Click to hide internal directories.