v1

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithAppOpsDebug = func(debug bool) AppOps {
	return func(app *App) {
		app.debug = debug
	}
}
View Source
var WithAppOpsLog = func(logger log.ILog) AppOps {
	return func(app *App) {
		app.InvokeLog.AddLogger(logger)
	}
}
View Source
var WithAppOpsServer = func(server IServer) AppOps {
	return func(app *App) {
		app.servers = append(app.servers, server)
	}
}
View Source
var WithAppOpsStopTimeout = func(timeout time.Duration) AppOps {
	return func(app *App) {
		app.stopTimeout = timeout
	}
}
View Source
var WithAppOpsVersion = func(version string) AppOps {
	return func(app *App) {
		app.version = version
	}
}

Functions

This section is empty.

Types

type App

type App struct {
	log.InvokeLog
	// contains filtered or unexported fields
}

func NewApp

func NewApp(name string, ops ...AppOps) (*App, error)

func (*App) Run

func (app *App) Run() error

func (*App) Stop

func (app *App) Stop()

type AppOps

type AppOps func(app *App)

type IServer

type IServer interface {
	Name() string
	Run() error
	Stop() error
}

Directories

Path Synopsis
clients
dbs

Jump to

Keyboard shortcuts

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