config

package
v0.0.0-...-66aed0f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 7 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 {
	Telegram TelegramConfig
	Log      LogConfig
	Listener ListenerConfig
}

func New

func New(filepath string) (*Config, error)

type ListenerConfig

type ListenerConfig struct {
	SockPath string `json:"sock_path"`
}

type LogConfig

type LogConfig struct {
	Level logrus.Level
}

type TelegramConfig

type TelegramConfig struct {
	ChannelID int64  `json:"channel_id"`
	Token     string `json:"token"`
}

Jump to

Keyboard shortcuts

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