config

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	BaseURL          string `mapstructure:"base-url" json:"base-url"`
	BindAddress      string `mapstructure:"bind-address" json:"bind-address"`
	MaxContentLength uint64 `mapstructure:"max-content-length" json:"max-content-length"`
	EnableLilliput   bool   `mapstructure:"enable-lilliput" json:"enable-lilliput"`
	MaxThumbnailSize uint   `mapstructure:"max-thumbnail-size" json:"max-thumbnail-size"`

	DiscordToken            string `mapstructure:"discord-token" json:"discord-token"`
	TwitchClientID          string `mapstructure:"twitch-client-id" json:"twitch-client-id"`
	TwitchClientSecret      string `mapstructure:"twitch-client-secret" json:"twitch-client-secret"`
	YoutubeApiKey           string `mapstructure:"youtube-api-key" json:"youtube-api-key"`
	TwitterBearerToken      string `mapstructure:"twitter-bearer-token" json:"twitter-bearer-token"`
	ImgurClientID           string `mapstructure:"imgur-client-id" json:"imgur-client-id"`
	OembedFacebookAppID     string `mapstructure:"oembed-facebook-app-id" json:"oembed-facebook-app-id"`
	OembedFacebookAppSecret string `mapstructure:"oembed-facebook-app-secret" json:"oembed-facebook-app-secret"`
	OembedProvidersPath     string `mapstructure:"oembed-providers-path" json:"oembed-providers-path"`
}

func New

func New() (cfg APIConfig)

Jump to

Keyboard shortcuts

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