secrets

package
v0.0.0-...-e1f8744 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlizzardSecrets

type BlizzardSecrets struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

type ChannelsSecrets

type ChannelsSecrets struct {
	Deals string `json:"deals"`
}

type DatabaseSecrets

type DatabaseSecrets struct {
	ConnectionString string `json:"connectionString"`
}

type DiscordSecrets

type DiscordSecrets struct {
	ClientID string `json:"clientId"`
	GuildID  string `json:"guildId"`
	Token    string `json:"token"`
}

type Secrets

type Secrets struct {
	Discord  DiscordSecrets  `json:"discord"`
	Channels ChannelsSecrets `json:"channels"`
	Blizzard BlizzardSecrets `json:"blizzard"`
	Database DatabaseSecrets `json:"database"`
}

func New

func New(path string) *Secrets

func (*Secrets) Load

func (secrets *Secrets) Load(path string)

func (*Secrets) Validate

func (secrets *Secrets) Validate()

Jump to

Keyboard shortcuts

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