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 ¶
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
Click to show internal directories.
Click to hide internal directories.