config

package
v0.0.0-...-387c587 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCfg

type AppCfg interface {
	LogLevel() string
	Version() string
	Hostname() string
	RedisConfig() RedisCfg
	GitHubConfig() GitHubCfg
}

type AppConfig

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

func NewAppConfig

func NewAppConfig(log *slog.Logger, cfgFile string) (*AppConfig, error)

func (*AppConfig) GitHubConfig

func (c *AppConfig) GitHubConfig() GitHubCfg

func (*AppConfig) Hostname

func (c *AppConfig) Hostname() string

func (*AppConfig) LogLevel

func (c *AppConfig) LogLevel() string

func (*AppConfig) RedisConfig

func (c *AppConfig) RedisConfig() RedisCfg

func (*AppConfig) Version

func (c *AppConfig) Version() string

type GitHubCfg

type GitHubCfg interface {
	HmacEnabled() bool
	HmacSecret() string
}

type GitHubConfig

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

func (*GitHubConfig) HmacEnabled

func (c *GitHubConfig) HmacEnabled() bool

func (*GitHubConfig) HmacSecret

func (c *GitHubConfig) HmacSecret() string

type RedisCfg

type RedisCfg interface {
	Hostname() string
	Password() string
	DB() int
}

type RedisConfig

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

func (*RedisConfig) DB

func (c *RedisConfig) DB() int

func (*RedisConfig) Hostname

func (c *RedisConfig) Hostname() string

func (*RedisConfig) Password

func (c *RedisConfig) Password() string

Jump to

Keyboard shortcuts

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