app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = ""
	BuildDate = ""
)

Functions

This section is empty.

Types

type Application

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

Application ...

func NewApplication

func NewApplication(
	config config.IConfig,
	once Ionce,
	hook Ihook,
	poll Ipoll,
	sigChan chan os.Signal,
) *Application

NewApplication ...

func (*Application) Start

func (a *Application) Start()

Start ...

type IHookHttp

type IHookHttp interface {
	Start(route string, handler func(http.ResponseWriter, *http.Request))
}

IHookHttp is our interface used for the Hook sgtartegy

func NewHookHttp

func NewHookHttp(config config.IConfig, logger util.ILogger) IHookHttp

NewHookHttp is our hookHttp constructor

type Ihook

type Ihook interface {
	RunHook()
}

func NewHook

func NewHook(http IHookHttp, config config.IConfig, logger util.ILogger, once Ionce) Ihook

type Ionce

type Ionce interface {
	RunOnce()
}

func NewOnce

func NewOnce(config config.IConfig, logger util.ILogger, exporter exporter.IExporter, importer importer.IImporter) Ionce

type Ipoll

type Ipoll interface {
	RunPoll()
}

func NewPoll

func NewPoll(config config.IConfig, logger util.ILogger, once Ionce, it int) Ipoll

Jump to

Keyboard shortcuts

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