flag

package
v0.0.0-...-5ecf4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Debug - enable disable debug mode
	Debug = false //Is debug mode enabled

	//ConfigurationPatch - path to configuration file
	ConfigurationPatch = ""
)

Functions

This section is empty.

Types

type ServiceFlag

type ServiceFlag struct {
	ServiceName string
	Logger      *logrus.Logger
}

ServiceFlag basic service structure

func (*ServiceFlag) Close

func (service *ServiceFlag) Close() error

Close - executed at the end of the service

func (*ServiceFlag) Name

func (service *ServiceFlag) Name() string

Name - returns the service name

func (*ServiceFlag) New

func (service *ServiceFlag) New() error

New - the function is executed when the service is initialized.

Jump to

Keyboard shortcuts

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