config

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger      *logger.Logger
	SlackClient *slack.Client
}

Config sets base configurations.

func NewConfig

func NewConfig(c *ConfigSetting) *Config

NewConfig sets base configurations.

func NewConfigFile

func NewConfigFile(c *ConfigFileSetting) *Config

NewConfigFile to read config

type ConfigFileSetting

type ConfigFileSetting struct {
	ConfigPath            string
	ConfigFileName        string
	SlackOauthAccessToken string
}

ConfigFileSetting sets configurations.

type ConfigSetting

type ConfigSetting struct {
	LoggerFormatter       string
	LoggerOut             string
	LoggerLevel           string
	SlackOauthAccessToken string
}

ConfigSetting sets base configurations.

Jump to

Keyboard shortcuts

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