config

package
v0.0.0-...-698e449 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(configFilePath string)

func NewLogger

func NewLogger(logFilePath string) *zap.SugaredLogger

Types

type Config

type Config struct {
	Env         string `yaml:"env"`
	RootWD      string
	Logger      *zap.SugaredLogger
	ServiceNode string `yaml:"service_node"`
	Feed        struct {
		Path     string   `yaml:"path"`
		Adapters []string `yaml:"adapters"`
	} `yaml:"feed"`
	Organization `yaml:"organization"`
	SSL          struct {
		Key         string `yaml:"key"`
		Certificate string `yaml:"certificate"`
	}
}
var Loaded Config

type Organization

type Organization struct {
	ID      string `yaml:"k_org_id"`
	Name    string `yaml:"name"`
	Website string `yaml:"website"`
}

Jump to

Keyboard shortcuts

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