github.com/alloyzeus/go-azfl@v0.0.0-20231220071816-9740126a2d07/azcore/entity_event.go (about)

     1  package azcore
     2  
     3  // EntityEvent defines the contract for all event types of the entity.
     4  type EntityEvent interface {
     5  	Event
     6  
     7  	AZEntityEvent()
     8  }
     9  
    10  // EntityEventBase provides a basic implementation for all Entity events.
    11  type EntityEventBase struct {
    12  	EventBase
    13  }
    14  
    15  var (
    16  	_ EntityEvent = EntityEventBase{}
    17  	_ Event       = EntityEventBase{}
    18  )
    19  
    20  // AZEntityEvent is required by EntityEvent.
    21  func (EntityEventBase) AZEntityEvent() {}