config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Package = do.Package(
	do.Lazy[*Config](NewConfig),
)

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL        string
	Token          string
	TeamUsers      []string
	WebhookAddress string
}

Config holds the application configuration.

func New

func New() (*Config, error)

New creates a new configuration from environment variables.

func NewConfig

func NewConfig(_ do.Injector) (*Config, error)

NewConfig creates a new configuration from environment variables (for DI).

Jump to

Keyboard shortcuts

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