service_heart_base_module

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SERVICE_HEART_CD_MS int64 = 1000 * 3 // 3S

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceHeartModel

type ServiceHeartModel struct {
	module_base.ModuleBase
	// contains filtered or unexported fields
}

func NewServiceHeartModel

func NewServiceHeartModel(cnf *service_cnf.ServiceConfig) *ServiceHeartModel

func (*ServiceHeartModel) Daily

func (sh *ServiceHeartModel) Daily(utc time.Time)

func (*ServiceHeartModel) Hourly

func (sh *ServiceHeartModel) Hourly(utc time.Time)

func (*ServiceHeartModel) Init

func (*ServiceHeartModel) Minutely

func (sh *ServiceHeartModel) Minutely(utc time.Time)

func (*ServiceHeartModel) OnInit

func (sh *ServiceHeartModel) OnInit() error

func (*ServiceHeartModel) OnStart

func (sh *ServiceHeartModel) OnStart() error

func (*ServiceHeartModel) OnTick

func (sh *ServiceHeartModel) OnTick(utc time.Time)

func (*ServiceHeartModel) Secondly

func (sh *ServiceHeartModel) Secondly(utc time.Time)

func (*ServiceHeartModel) Send

func (sh *ServiceHeartModel) Send(online int32, curMs int64) error

func (*ServiceHeartModel) SendHeart

func (sh *ServiceHeartModel) SendHeart(curMs int64) error

Jump to

Keyboard shortcuts

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