server

package
v0.0.0-...-71dbe48 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewOptions, New)

Functions

This section is empty.

Types

type Mount

type Mount interface {
	Mount(string, http.Handler)
}

type MountFunc

type MountFunc func(Mount)

type Options

type Options struct {
	Addr string
	Dsn  string
	Env  string
}

func NewOptions

func NewOptions(k *koanf.Koanf) (*Options, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(
	opt *Options,
	mount MountFunc,
	logger zerolog.Logger,
	tp trace.TracerProvider,
	mp metric.MeterProvider,
) (*Server, error)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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