Documentation
¶
Index ¶
- type Message
- func (d *Message) ApplyPlaceholder(template interface{}) (string, error)
- func (d *Message) Clone() *Message
- func (d *Message) GetExtra() map[string]string
- func (d *Message) GetMessage() string
- func (d *Message) GetTarget(name string) string
- func (d *Message) SetExtra(k string, v string)
- func (d *Message) SetMessage(msg string)
- func (d *Message) SetTarget(name string, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
Message is the data generated from a Feeder and it travels across Filters
func NewMessage ¶
NewMessage creates a new Message struct with only the "main" data
func NewMessageWithExtra ¶
NewMessageWithExtra creates a Message struct with "main" and extra data
func (*Message) ApplyPlaceholder ¶
ApplyPlaceholder executes the template specified using the data in the Message struct
func (*Message) GetMessage ¶
GetMessage returns the "main" data in the Message struct
func (*Message) GetTarget ¶
GetTarget returns the value of a key in the Message struct. It can return also the "main" data
func (*Message) SetExtra ¶
SetExtra allows to change the "extra" data with key k and value v in the Message struct
func (*Message) SetMessage ¶
SetMessage allows to change the "main" data in the Message struct
Click to show internal directories.
Click to hide internal directories.