config

package
v0.0.0-...-97ef875 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 3 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 {
	WebhookSecret string `env:"WEBHOOK_SECRET"`
	AppID         int64  `env:"APP_ID"`
	ManifestRepo  string `env:"MANIFEST_REPO"`
	Port          int    `env:"PORT"`

	PrivateKey PrivateKey
}

Config represents a config to load from file

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig reads config from env, json and yaml

type PrivateKey

type PrivateKey struct {
	Path string `env:"PRIVATE_KEY_PATH"`
	Raw  string `env:"PRIVATE_KEY"`
}

PrivateKey represents a private key

Jump to

Keyboard shortcuts

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