server

package
v0.0.0-...-ebaad4d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(logger *slog.Logger, tracer trace.Tracer, meter metric.Meter) http.Handler

func SetupOTelSDK

func SetupOTelSDK(ctx context.Context) (shutdown func(context.Context) error, err error)

SetupOTelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

Types

type Config

type Config struct {
	Host string
	Port string
}

type MyMux

type MyMux struct {
	http.ServeMux
}

func (*MyMux) HandleFunc

func (r *MyMux) HandleFunc(pattern string, h func(http.ResponseWriter, *http.Request))

Jump to

Keyboard shortcuts

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