Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventCreate = iota EventUpdate EventDelete )
Variables ¶
This section is empty.
Functions ¶
func AddSubscriber ¶
AddSubscriber add the subscriber to handle the changed notification from model.Environment.
Types ¶
type BusMessage ¶
type BusMessage struct { // Event holds event type. Event Event // TransactionalModelClient holds the model.ClientSet of this calling session, // it should be a transactional DAO client, // please don't keep for long-term using. TransactionalModelClient model.ClientSet // Refers holds the updating model.Environment list of this calling session. Refers model.Environments }
BusMessage wraps the changed model.Environment as a bus.Message.
Click to show internal directories.
Click to hide internal directories.