app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Server string = "server"

	Ripper string = "ripper"

	All string = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Server *server.Server

	ModuleManager *modules.Manager
	// contains filtered or unexported fields
}

func New

func New(cfg Config, logger slog.Logger) (*App, error)

New creates and returns a new App.

func (*App) Run

func (a *App) Run() error

type Config

type Config struct {
	Target  string         `yaml:"target"`
	Tracing tracing.Config `yaml:"tracing,omitempty"`
	Server  server.Config  `yaml:"server,omitempty"`
	Ripper  ripper.Config  `yaml:"ripper,omitempty"`
}

func LoadConfig

func LoadConfig(file string) (Config, error)

LoadConfig receives a file path for a configuration to load.

func (*Config) RegisterFlagsAndApplyDefaults

func (c *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)

Jump to

Keyboard shortcuts

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