enterprise

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 5 Imported by: 2

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 NewApplication

func NewApplication() *App

func (*App) RegisterOnRun

func (app *App) RegisterOnRun(f func())

func (*App) RegisterOnShutdown

func (app *App) RegisterOnShutdown(f func())

func (*App) RegisterRunner

func (app *App) RegisterRunner(service Runner)

func (*App) Run

func (app *App) Run()

type Application

type Application interface {
	Run()
	RegisterRunner(runner Runner)
	RegisterOnRun(f func())
	RegisterOnShutdown(f func())
}

type Runner

type Runner interface {
	Run(ctx context.Context)
}

func NewRunner

func NewRunner(name string, task func(context.Context)) Runner

func RunnerFunc

func RunnerFunc(start, stop func()) Runner

Directories

Path Synopsis
db
message_queue
For generate mocks on sarama interfaces
For generate mocks on sarama interfaces
app
Package mock_enterprise is a generated GoMock package.
Package mock_enterprise is a generated GoMock package.
runner
Package mock_runner is a generated GoMock package.
Package mock_runner is a generated GoMock package.
webtools
Package mock_webtools is a generated GoMock package.
Package mock_webtools is a generated GoMock package.

Jump to

Keyboard shortcuts

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