service

package
v0.3.10-0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	InitService()
	RunService()
	OnExitService()
}

type SServiceBase

type SServiceBase struct {
	Service IService

	O *options.BaseOptions
}

func NewBaseService

func NewBaseService(service IService) *SServiceBase

func (*SServiceBase) CreatePid

func (s *SServiceBase) CreatePid() error

func (*SServiceBase) RemovePid

func (s *SServiceBase) RemovePid()

func (*SServiceBase) SignalTrap

func (s *SServiceBase) SignalTrap(onExit func())

func (*SServiceBase) StartService

func (s *SServiceBase) StartService()

Jump to

Keyboard shortcuts

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