config

package
v0.0.0-...-77a395e Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordServiceConfig

type DiscordServiceConfig struct {
	URL string `toml:"url"`
}

func (DiscordServiceConfig) GetName

func (DiscordServiceConfig) GetName() string

type LineBotServiceConfig

type LineBotServiceConfig struct {
	AccessToken string
	To          string
}

func (LineBotServiceConfig) GetName

func (LineBotServiceConfig) GetName() string

type ServiceConfig

type ServiceConfig interface {
	GetName() string
}

func NewConfig

func NewConfig(provider string) (ServiceConfig, error)

type SlackConfig

type SlackConfig struct {
	URL string `toml:"url"`
}

func (SlackConfig) GetName

func (SlackConfig) GetName() string

type TomlConfig

type TomlConfig struct {
	Default string
	Discord *DiscordServiceConfig
	Slack   *SlackConfig
	Linebot *LineBotServiceConfig
}

Jump to

Keyboard shortcuts

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