Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventContext ¶
type EventContext struct { RequestID string RequestTime commontypes.Time CacheCli *redis.Client // contains filtered or unexported fields }
func NewEventContextByReq ¶
func NewEventContextByReq(pheader http.Header, cacheCli *redis.Client) *EventContext
func (*EventContext) InsertEvent ¶
func (c *EventContext) InsertEvent(eventType, objType, action string, curData interface{}, preData interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.