Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RPCStart = newEvent(rpcStart, LevelBase) RPCFinish = newEvent(rpcFinish, LevelBase) ServerHandleStart = newEvent(serverHandleStart, LevelDetailed) ServerHandleFinish = newEvent(serverHandleFinish, LevelDetailed) ClientConnStart = newEvent(clientConnStart, LevelDetailed) ClientConnFinish = newEvent(clientConnFinish, LevelDetailed) ReadStart = newEvent(readStart, LevelDetailed) ReadFinish = newEvent(readFinish, LevelDetailed) WaitReadStart = newEvent(waitReadStart, LevelDetailed) WaitReadFinish = newEvent(waitReadFinish, LevelDetailed) WriteStart = newEvent(writeStart, LevelDetailed) WriteFinish = newEvent(writeFinish, LevelDetailed) )
Predefined events.
View Source
var ( ErrNotAllowed = errors.New("event definition is not allowed after initialization") ErrDuplicated = errors.New("event name is already defined") )
errors
Functions ¶
func FinishInitialization ¶
func FinishInitialization()
FinishInitialization freezes all events defined and prevents further definitions to be added.
func PredefinedEventNum ¶ added in v0.7.2
func PredefinedEventNum() int
PredefinedEventNum returns the number of predefined events of kitex.
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.