config

package
v0.0.0-...-6aa5a74 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppPort               int      `koanf:"APP_PORT"`
	AppHost               string   `koanf:"APP_HOST" `
	SublimeSigningKey     string   `koanf:"SUBLIME_SIGNING_KEY"`
	SublimeHMACExpiration int      `koanf:"SUBLIME_HMAC_EXPIRATION"`
	SublimeURL            string   `koanf:"SUBLIME_URL"`
	SublimeApiKey         string   `koanf:"SUBLIME_API_KEY"`
	SublimeApiURL         string   `koanf:"SUBLIME_API_URL"`
	Debug                 bool     `koanf:"DEBUG"`
	TheHiveURL            string   `koanf:"THEHIVE_URL"`
	THeHiveKey            string   `koanf:"THEHIVE_KEY"`
	TheHiveAlertType      string   `koanf:"THEHIVE_ALERT_TYPE"`
	TheHiveAlertTags      []string `koanf:"THEHIVE_ALERT_TAGS"`
}

func New

func New() (conf Config, err error)

func (*Config) Print

func (d *Config) Print() string

func (*Config) Setup

func (d *Config) Setup() error

Jump to

Keyboard shortcuts

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