Documentation ¶
Index ¶
Constants ¶
const ( TagInvalid int = iota TagManualPolicy TagNoWaitPolicy TagMeasuredPolicy TagStep TagDelay TagReset TagGetStatus TagAutoStep )
const ( PolicyInvalid int = iota PolicyNoWait PolicyMeasured PolicyManual )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoStep ¶
type AutoStep struct { sm.EnvelopeState Guard int64 }
AutoStep is the message that requests the simulated time move forward by one step as a result of a wall clock timer expiring. As this event may be in-flight when the policy authorizing it is changed, the message includes the policy generation number as a guard. That number must match the current policy generation for it to be processed.
func NewAutoStep ¶
type BasePolicy ¶
type Delay ¶
type Delay struct { sm.EnvelopeState DueTime int64 }
Delay is the message to request that the a response be sent only when the simulated time passes the value stored as DueTime.
type GetStatus ¶
type GetStatus struct {
sm.EnvelopeState
}
GetStatus is the message to request the simulated time service's current execution status.
type ManualPolicy ¶
type ManualPolicy struct { sm.EnvelopeState Guard int64 }
ManualPolicy contains a request for the simulated time service to use the manual step policy.
func NewManualPolicy ¶
func NewNoWaitPolicy ¶
func (*ManualPolicy) GetGuard ¶
func (mp *ManualPolicy) GetGuard() int64
func (*ManualPolicy) String ¶
func (mp *ManualPolicy) String() string
type MeasuredPolicy ¶
type MeasuredPolicy struct { sm.EnvelopeState Guard int64 Delay time.Duration }
MeasuredPolicy contains a request for the simulated time service to use the policy that automatically advances simulated time at a given wall clock rate.
func NewMeasuredPolicy ¶
func (*MeasuredPolicy) GetGuard ¶
func (mp *MeasuredPolicy) GetGuard() int64
func (*MeasuredPolicy) String ¶
func (mp *MeasuredPolicy) String() string
type NoWaitPolicy ¶
type NoWaitPolicy struct { sm.EnvelopeState Guard int64 }
NoWaitPolicy contains a request for the simulated time service to use the policy that automatically advances to expire any waiter.
func (*NoWaitPolicy) GetGuard ¶
func (nwp *NoWaitPolicy) GetGuard() int64
func (*NoWaitPolicy) String ¶
func (nwp *NoWaitPolicy) String() string
type Reset ¶
type Reset struct {
sm.EnvelopeState
}
Reset is the message to force a reset of the simulated time service back to its starting point.
type StatusResponseBody ¶
StatusResponseBody contains the simulated time service's current execution status.