app

package
v0.0.0-...-de42637 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(srv *Server, log *slog.Logger) *App

func (*App) Launch

func (app *App) Launch(ctx context.Context) error

type Builder

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

func NewBuilder

func NewBuilder(cfgpath string) *Builder

func (*Builder) Build

func (b *Builder) Build() *App

func (*Builder) With

func (b *Builder) With(constructor any, opts ...dig.ProvideOption) *Builder

type Server

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

func Listen

func Listen(handler http.Handler, opts *config.AppOptions) (*Server, error)

func (Server) Addr

func (srv Server) Addr() string

func (*Server) Serve

func (srv *Server) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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