app

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(configPath string) (*App, error)

func (*App) Run

func (a *App) Run() error

type Config

type Config struct {
	HumanReadableLog bool   `config:"human_readable_log"`
	GitlabToken      string `config:"gitlab_token"`
	SlackBotToken    string `config:"slack_bot_token"`
	SlackAppToken    string `config:"slack_app_token"`

	Mongo struct {
		Host string `config:"host"`
		Port int    `config:"port"`
		User string `config:"user"`
		Pass string `config:"pass"`
		DB   string `config:"db"`
	} `config:"mongo"`

	PullPeriod time.Duration `config:"-"`
}

Jump to

Keyboard shortcuts

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