Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HTTPStart = newEvent(httpStart, LevelBase) HTTPFinish = newEvent(httpFinish, LevelBase) ServerHandleStart = newEvent(serverHandleStart, LevelDetailed) ServerHandleFinish = newEvent(serverHandleFinish, LevelDetailed) ReadHeaderStart = newEvent(readHeaderStart, LevelDetailed) ReadHeaderFinish = newEvent(readHeaderFinish, LevelDetailed) ReadBodyStart = newEvent(readBodyStart, LevelDetailed) ReadBodyFinish = newEvent(readBodyFinish, LevelDetailed) WriteStart = newEvent(writeStart, LevelDetailed) WriteFinish = newEvent(writeFinish, LevelDetailed) )
Predefined events.
View Source
var ( ErrNotAllowed = errors.NewPublic("event definition is not allowed after initialization") ErrDuplicated = errors.NewPublic("event name is already defined") )
errors
Functions ¶
func FinishInitialization ¶
func FinishInitialization()
FinishInitialization freezes all events defined and prevents further definitions to be added.
Types ¶
type Event ¶
type Event interface { Index() EventIndex Level() Level }
Event is used to indicate a specific event.
Click to show internal directories.
Click to hide internal directories.