config

package
v0.0.0-...-dbe8540 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Interaction struct {
		PublicKey    []string `yaml:"publicKey"`
		SlashCommand struct {
			RespondingInteractionLate bool `yaml:"responding_interaction_late"`
		} `yaml:"slash_command"`
	} `yaml:"interaction"`
	Server struct {
		Port            int  `yaml:"port"`
		Debug           bool `yaml:"server_debug"`
		DebugHard       bool `yaml:"server_debug_hard"`
		LogConnectionWs bool `yaml:"log_connection_ws"`
	} `yaml:"server"`
	WS struct {
		Local  bool   `yaml:"local"`
		Secret string `yaml:"secret"`
	} `yaml:"ws"`
}

func Load

func Load() *Configuration

Jump to

Keyboard shortcuts

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