Documentation ¶
Overview ¶
Package notification provides functions to manage notification after running service application
Index ¶
Constants ¶
View Source
const (
// ConstKeyNotiChan is key of notification channel
ConstKeyNotiChan = "NotiChan"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentMap ¶
ConcurrentMap type
func (*ConcurrentMap) Get ¶
func (cm *ConcurrentMap) Get(key uint64) (interface{}, bool)
Get is for getting map item
func (*ConcurrentMap) Remove ¶
func (cm *ConcurrentMap) Remove(key uint64)
Remove is for removing map item
func (*ConcurrentMap) Set ¶
func (cm *ConcurrentMap) Set(key uint64, value interface{})
Set is for setting map item
type ConcurrentMapItem ¶
type ConcurrentMapItem struct { Key uint64 Value interface{} }
ConcurrentMapItem type
type HasNotification ¶
type HasNotification struct {
NotiImplIns Notification
}
HasNotification struct
func (*HasNotification) SetNotiImpl ¶
func (n *HasNotification) SetNotiImpl(noti Notification)
SetNotiImpl for setting notification implementation
type NotiImpl ¶
NotiImpl Structure
func (NotiImpl) AddNotificationChan ¶
AddNotificationChan is adding notification channel value with service ID key
func (NotiImpl) HandleNotificationOnLocal ¶
HandleNotificationOnLocal is invoking notification on local
type Notification ¶
type Notification interface { InvokeNotification(target string, serviceID float64, status string) error AddNotificationChan(serviceID uint64, notiChan chan string) HandleNotificationOnLocal(serviceID float64, status string) (err error) // for client client.Setter }
Notification is the interface for notification
Click to show internal directories.
Click to hide internal directories.