config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 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(setting *Setting) *Config

NewConfig sets base configurations.

func NewConfigFile

func NewConfigFile(setting *FileSetting) *Config

NewConfigFile to read config

type FileSetting added in v0.0.21

type FileSetting struct {
	ConfigPath            string
	ConfigFileName        string
	SlackOauthAccessToken string
}

FileSetting sets configurations.

type Setting added in v0.0.21

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

Setting sets base configurations.

Jump to

Keyboard shortcuts

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