config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-2-Clause 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 {
	ListenPort int32      `yaml:"listen_port"`
	Midjourney Midjourney `yaml:"midjourney"`
	Redis      Redis      `yaml:"redis"`
}

func Load

func Load() *Config

type Midjourney

type Midjourney struct {
	IPAddress string `yaml:"ip_address"`
	UserToken string `yaml:"user_token"`
	GuildID   string `yaml:"guild_id"`
	ChannelID string `yaml:"channel_id"`
}

type Redis

type Redis struct {
	Address  string `yaml:"address"`
	Password string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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