Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Type MessageType
Content string
Headers *RequestHeaders
Error error
Request string
Response string
}
Message represents a trace message
type MessageSender ¶
type MessageSender interface {
// MessageChan returns a channel for receiving trace messages
MessageChan() <-chan Message
}
MessageSender defines the interface for sending trace messages
type MessageType ¶
type MessageType int
const ( MessageTypeNode MessageType = iota MessageTypeError MessageTypeAPI MessageTypeRequest )
type Node ¶
type Node struct {
IP string
Country string
Time time.Time
UserAgent string
RequestInfo string
ForwardedFor string
RequestCount int // Track number of requests for this node
IsNew bool
NodeIndex int
RegionName string
Org string
ServerName string
}
Node represents a node in the trace path
Click to show internal directories.
Click to hide internal directories.