Documentation ¶
Overview ¶
Package openapi implements OpenAPI server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrPayload ¶
func ErrPayload(err error) interface{}
ErrPayload returns err.Payload or *model.Error(nil) or err for unknown errors.
func InitMetrics ¶
func InitMetrics(reg *prometheus.Registry, namespace string)
InitMetrics must be called once before using this package. It registers and initializes metrics used by this package.
Types ¶
Click to show internal directories.
Click to hide internal directories.