Documentation
¶
Index ¶
- type MSHandler
- type MSService
- func (srv *MSService) AddTask(dataType int32, data any, waitOrNot bool) bool
- func (srv *MSService) GetLatestMainServiceId() string
- func (srv *MSService) GetMainServiceId() string
- func (srv *MSService) IsMainService() bool
- func (srv *MSService) Start(ctx context.Context) error
- func (srv *MSService) Stop(ctx context.Context) error
- type MSTask
- type Option
- func WithCache(cache *cache.Cache) Option
- func WithDistributionCacheExpireSec(distributionCacheExpireSec int64) Option
- func WithDistributionCacheKey(distributionCacheKey string) Option
- func WithDistributionCacheSignature(distributionCacheSignature [8]byte) Option
- func WithHandler(handler MSHandler) Option
- func WithServiceId(serviceId string) Option
- func WithSrvName(srvName string) Option
- func WithTWTimer(twTimer *timewheel.TimeWheel) Option
- func WithTickIntervalSec(tickIntervalSec int) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MSService ¶
type MSService struct { *Options // contains filtered or unexported fields }
func NewMSService ¶
func (*MSService) GetLatestMainServiceId ¶ added in v0.1.1
func (*MSService) GetMainServiceId ¶ added in v0.1.1
func (*MSService) IsMainService ¶ added in v0.1.1
type Option ¶
type Option func(*Options)
func WithHandler ¶
func WithServiceId ¶
func WithSrvName ¶
func WithTWTimer ¶
func WithTickIntervalSec ¶
Click to show internal directories.
Click to hide internal directories.