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: 0

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