Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Cancel(validatorID ids.ShortID, chainID ids.ID, requestID uint32)
- func (m *Manager) Dispatch()
- func (m *Manager) Initialize(timeoutConfig *timer.AdaptiveTimeoutConfig, benchlist benchlist.Manager) error
- func (m *Manager) Register(validatorID ids.ShortID, chainID ids.ID, requestID uint32, register bool, ...) (time.Time, bool)
- func (m *Manager) RegisterChain(ctx *snow.Context, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager registers and fires timeouts for the snow API.
func (*Manager) Initialize ¶
func (m *Manager) Initialize(timeoutConfig *timer.AdaptiveTimeoutConfig, benchlist benchlist.Manager) error
Initialize this timeout manager.
func (*Manager) Register ¶
func (m *Manager) Register(validatorID ids.ShortID, chainID ids.ID, requestID uint32, register bool, msgType constants.MsgType, timeout func()) (time.Time, bool)
Register request to time out unless Manager.Cancel is called before the timeout duration passes, with the same request parameters.
Click to show internal directories.
Click to hide internal directories.