Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface { Send(content interface{}, options ...OpOperation) error SendRaw(message *types.Message) error }
type NotifierImpl ¶
type NotifierImpl struct {
// contains filtered or unexported fields
}
func (*NotifierImpl) Send ¶
func (n *NotifierImpl) Send(content interface{}, options ...OpOperation) error
将 message 写入 etcd
type OpOperation ¶
type OpOperation func(*Op)
func WithDest ¶
func WithDest(dest map[string]interface{}) OpOperation
func WithLabels ¶
func WithLabels(labels map[string]interface{}) OpOperation
func WithSender ¶
func WithSender(sender string) OpOperation
Click to show internal directories.
Click to hide internal directories.