event

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL