config

package
v0.0.0-...-5d32e84 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogger

func WithLogger(logger *zap.SugaredLogger) func(*App) error

Types

type App

type App struct {
	Config AppConfig
	Logger *zap.SugaredLogger

	// application
	FollowService inbound.FollowService

	// infrastructure
	Publisher  outbound.Publisher
	Repository outbound.Repository

	// presentation
	HTTPServer http.Server
}

func NewApp

func NewApp(cfg AppConfig, opts ...func(*App) error) (*App, error)

func (*App) Defer

func (a *App) Defer(ctx context.Context) error

func (*App) Run

func (a *App) Run(ctx context.Context) error

type AppConfig

type AppConfig struct {
	AppName    string
	AppVersion string
	Env        string
}

type Option

type Option func(*App) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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