Documentation
¶
Index ¶
- Constants
- type CallbackPlan
- type CallbackPlanOption
- type SubscribeCenter
- func (s *SubscribeCenter) Close()
- func (s *SubscribeCenter) DefaultCallbackMethod() string
- func (s *SubscribeCenter) GetFlag() storage.Flag
- func (s *SubscribeCenter) Notify(key string, newVal interface{}, event int)
- func (s *SubscribeCenter) Subscribe(option *SubscribeManifest)
- func (s *SubscribeCenter) View() []byte
- type SubscribeCenterOption
- type SubscribeManifest
Constants ¶
View Source
const ( CallbackSetEvent = iota CallbackDeleteEvent )
event
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackPlan ¶
type CallbackPlan struct {
// contains filtered or unexported fields
}
CallbackPlan If the callback plan execute SUCCESS, the plan will be uninstalled
type CallbackPlanOption ¶
type SubscribeCenter ¶
type SubscribeCenter struct {
// contains filtered or unexported fields
}
func GetSubscribeCenter ¶
func GetSubscribeCenter() *SubscribeCenter
func NewSubscribeCenter ¶
func NewSubscribeCenter(option *SubscribeCenterOption) *SubscribeCenter
func (*SubscribeCenter) Close ¶
func (s *SubscribeCenter) Close()
func (*SubscribeCenter) DefaultCallbackMethod ¶ added in v0.0.8
func (s *SubscribeCenter) DefaultCallbackMethod() string
func (*SubscribeCenter) GetFlag ¶ added in v0.0.7
func (s *SubscribeCenter) GetFlag() storage.Flag
func (*SubscribeCenter) Notify ¶
func (s *SubscribeCenter) Notify(key string, newVal interface{}, event int)
Notify just callback
func (*SubscribeCenter) Subscribe ¶
func (s *SubscribeCenter) Subscribe(option *SubscribeManifest)
func (*SubscribeCenter) View ¶ added in v0.0.7
func (s *SubscribeCenter) View() []byte
type SubscribeCenterOption ¶
type SubscribeCenterOption struct { DefaultCallbackMethod string `yaml:"DefaultCallbackMethod"` RetryQueueLen uint `yaml:"RetryQueueLen"` RetryTickInterval uint `yaml:"RetryTickInterval"` }
func DefaultSubscribeCenterOption ¶
func DefaultSubscribeCenterOption() *SubscribeCenterOption
Click to show internal directories.
Click to hide internal directories.