Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultService = New()
Functions ¶
func WithTimeout ¶
Types ¶
type O ¶
type O struct {
// contains filtered or unexported fields
}
O is the base construct for orbital. It should be used for logging, metrics access and most importantly, signaling if a test has failed.
func (*O) Error ¶
func (o *O) Error(args ...interface{})
Error is equivalent to Log followed by Fail
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service runs all registered TestCases on the schedule specified during registration.
type TestCase ¶
type TestCase struct { Period time.Duration Name string Func TestFunc Timeout time.Duration Tags []stats.Tag }
TestCase represents an individual test to be run on a schedule given by Period. If Timeout is not specified, Service will provide a default timeout. Name should be metrics-compatible, for now.
Click to show internal directories.
Click to hide internal directories.