common

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindRequestPayload

func BindRequestPayload[S any](c *fiber.Ctx) *S

func FiberConfig

func FiberConfig(disableStartupMsg bool) fiber.Config

func Validate

func Validate(s interface{}) []*common.ErrorResponse

Types

type GrpcConfig

type GrpcConfig struct {
	Logger *zerolog.Logger
}

func (*GrpcConfig) GrpcConfig added in v1.0.17

func (pr *GrpcConfig) GrpcConfig(p any) (err error)

type ProblemDetails

type ProblemDetails struct {
	Type   string      `json:"type"`
	Title  string      `json:"title"`
	Status int         `json:"status"`
	Detail interface{} `json:"detail"`
}

Jump to

Keyboard shortcuts

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