app

package
v0.0.0-...-e7cb044 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: AGPL-3.0 Imports: 13 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
}

App represents an application.

func Init

func Init(ctx context.Context, configPath, logLevel string) *App

Init initializes the application.

func (*App) Start

func (app *App) Start(ctx context.Context)

Start starts the application.

func (*App) Stop

func (app *App) Stop(ctx context.Context)

Stop stops the application.

type Config

type Config struct {
	Generator    generator.Config
	TweetsClient tweets.Config
	RESTServer   http.Config
	Database     database.Config
}

Config defines the configuration for the service.

func (*Config) MarshalLogObject

func (cfg *Config) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the service configuration.

Jump to

Keyboard shortcuts

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