manager

package
v0.0.0-...-bc3c233 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMsgCloneRepository = "failed to clone repository"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager struct holds the configuration and state for app.

func New

func New() *Manager

New() function returns a new Manager instance for the app. Generates a fatal error if unable to:

  • parse the configuration from file and env vars, or...
  • setup the HTTP server, or...
  • register HTTP handlers for GitHub webhook events.

func (*Manager) GetAppMode

func (m *Manager) GetAppMode() string

GetAppMode() method returns the configured app mode for the Manager.

func (*Manager) Init

func (m *Manager) Init()

Init() method runs initialization steps that are specific to the configured mode.

func (*Manager) Run

func (m *Manager) Run()

Run() method runs the Manager in the configured mode.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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