Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageStore ¶
type MessageStore struct {
// contains filtered or unexported fields
}
MessageStore stores the sending event messages.
func NewMessageStore ¶
func NewMessageStore() *MessageStore
NewMessageStore returns a new MessageStore.
func (*MessageStore) IsMessageSet ¶
func (s *MessageStore) IsMessageSet(event string) bool
IsMessageSet checks if message set for the given event.
func (*MessageStore) MessageFor ¶
func (s *MessageStore) MessageFor(event string) string
MessageFor gets the event message if set. It returns the event name as a default value.
func (*MessageStore) SetMessage ¶
func (s *MessageStore) SetMessage(event string, message string)
SetMessage sets the event message.
Click to show internal directories.
Click to hide internal directories.