config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config handles configuring of the bot.

Index

Constants

This section is empty.

Variables

View Source
var BuildHash = goconfigure.UNSET

BuildHash is set by the Makefile and is the current git hash when the binary was built. Note if there are uncommitted changes in repository then the hash may not be accurate.

View Source
var BuildTimestamp = goconfigure.UNSET

BuildTimestamp is set by the Makefile and is the time the binary was built.

View Source
var BuildVersion = goconfigure.UNSET

BuildVersion is set by the Makefile and is taken from the git branch, or git tag.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Region    string
	Bucket    string
	AccessKey string
	SecretKey string
}

AWS options.

func (*AWS) Data

func (a *AWS) Data() interface{}

Data for the configuration block.

func (*AWS) Description

func (a *AWS) Description() string

Description for the configuration block.

func (*AWS) Register

func (a *AWS) Register(opts goconfigure.OptionSet)

Register the configuration block.

type Settings

type Settings struct {
	AWS AWS

	Discord config.Discord

	Underlying goconfigure.Settings
}

Settings for the bot.

func Configure

func Configure() (Settings, error)

Configure the bot and return the Settings.

Jump to

Keyboard shortcuts

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