app

package
v0.0.0-...-c09d977 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 23 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"`
	GitlabServerUrl  string `config:"gitlab_server_url"`
	OpenAIToken      string `config:"openai_token"`
	OpenAIProxyUrl   string `config:"openai_proxy_url"`
	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