Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = 10 * time.Second
DefaultTimeout is the default value for the timeout when creating a new Repeater
Functions ¶
func RepeaterLoop ¶
func RepeaterLoop()
RepeaterLoop is the main loop for the repeater. It listens on apis.CHN_REPEAT for calls and executes them
Types ¶
type Repeater ¶
type Repeater struct { // The Repeater History History []Item // The timeout to wait before assuming the server will not respond. // Default is DefaultTimeout Timeout time.Duration // contains filtered or unexported fields }
Repeater represents a full history of requests and responses
func NewRepeater ¶
func NewRepeater() *Repeater
NewRepeater creates a new Repeater with Timeout set to DefaultTimeout
Click to show internal directories.
Click to hide internal directories.