Documentation ¶
Index ¶
- Constants
- func ErrorCode(err error) (code int)
- func Run(f func(ctx context.Context, log *zap.Logger) error)
- func SmithyErrorHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, err error)
- func SwaggerAPIv1Handler(doc []byte) http.Handler
- func SwaggerUIHandler() http.Handler
- type Metrics
- type OgenServer
- type OgenServerConfig
- type Rest
Constants ¶
View Source
const EnvLogLevel = "LOG_LEVEL"
Variables ¶
This section is empty.
Functions ¶
func SmithyErrorHandler ¶
func SwaggerAPIv1Handler ¶
func SwaggerUIHandler ¶
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics wraps application metrics and providers.
func NewMetrics ¶
NewMetrics returns new Metrics.
func (*Metrics) MeterProvider ¶
func (m *Metrics) MeterProvider() metric.MeterProvider
func (*Metrics) TracerProvider ¶
func (m *Metrics) TracerProvider() trace.TracerProvider
type OgenServer ¶
func NewOgenServer ¶
func NewOgenServer(r *Rest, m *Metrics) *OgenServer
type OgenServerConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.