service_base

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceBase

type ServiceBase struct {
	SubService     application.AppInterface
	EventHandler   contract.IServiceHandler
	HandlerChannel chan contract.IModuleEventReq

	OsSignal chan os.Signal
	StopChan chan chan struct{}
}

func (*ServiceBase) OnExit

func (s *ServiceBase) OnExit()

func (*ServiceBase) OnInit

func (s *ServiceBase) OnInit() error

func (*ServiceBase) OnStart

func (s *ServiceBase) OnStart() error

func (*ServiceBase) OnStop

func (s *ServiceBase) OnStop() error

func (*ServiceBase) RegisterService

func (s *ServiceBase) RegisterService()

func (*ServiceBase) Run

func (s *ServiceBase) Run()

func (*ServiceBase) UnRegisterService

func (s *ServiceBase) UnRegisterService() error

Jump to

Keyboard shortcuts

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