framework

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogHandler added in v0.0.8

func LogHandler() slog.Handler

func Rest

func Rest(cfg io.Reader, f func(context.Context, *http.ServeMux) error) error

func UnmarshalConfigFromContext

func UnmarshalConfigFromContext(ctx context.Context, v interface{}) error

Types

type Config

type Config struct {
	OTel struct {
		ServiceName string `config:"serviceName"`
		OTLP        struct {
			Target string `config:"target"`
		} `config:"otlp"`
	} `config:"otel"`

	Logging struct {
		Level slog.Level `config:"level"`
	} `config:"logging"`

	Http struct {
		Port uint `config:"port"`
	} `config:"http"`
}

Jump to

Keyboard shortcuts

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