discord

package
v0.0.0-...-cbc9d59 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Token string `json:"token" yaml:"token" toml:"Token"`
}

type Config

type Config struct {
	UserId    *string     `json:"user_id,omitempty" yaml:"user_id,omitempty" toml:"UserId,omitempty"`
	ChannelId *string     `json:"channel_id,omitempty" yaml:"channel_id,omitempty" toml:"ChannelId,omitempty"`
	Auth      *AuthConfig `json:"auth,omitempty" yaml:"auth,omitempty" toml:"Auth,omitempty"`
}

func LoadConfig

func LoadConfig(confPath string) (conf Config, err error)

LoadConfig reads configuration data from the file at the passed path and returns it as a fully loaded Config. `confPath` is expected to be an absolute file path. Supported file types: json, yaml, toml

Jump to

Keyboard shortcuts

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