Documentation ¶
Index ¶
- func Check(model string, testId TestId, runId RunId) bool
- func DBPath() string
- func EmitEvent(db *sql.DB, event string, meta interface{}, data interface{})
- func MarshalUnscheduledEvents(from string, corrId int, oevs []OutEvent) json.RawMessage
- func OpenDB() *sql.DB
- func Post(command string, parameters interface{}) []byte
- func PostParse(command string, parameters interface{}, target interface{})
- func Register(testId TestId)
- func RegisterExecutor(executorId string, components []string)
- func Reset()
- func Run()
- func Setup(f func())
- func Status() map[string]interface{}
- func Step() json.RawMessage
- func Teardown(srv *http.Server)
- func UnmarshalScheduledEvent(m Marshaler, input []byte, output *ScheduledEvent) error
- type Agenda
- type Args
- type ClientRequest
- type ClientResponse
- type Crash
- type CreateRunEvent
- type DeploymentInfo
- type Event
- type FailSpec
- type Fault
- type FaultArgs
- type Faults
- type InEvent
- type InternalMessage
- type Item
- type LTLResult
- type Marshaler
- type Message
- type MetaInfo
- type Omission
- type OutEvent
- type QueueSize
- type Reactor
- type Receiver
- type Request
- type Response
- type RunId
- type ScheduledEvent
- type SchedulerFault
- type SchedulerRequest
- type Seed
- type TestId
- type TimeFromString
- type TimePico
- type Timer
- type Topology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalUnscheduledEvents ¶
func MarshalUnscheduledEvents(from string, corrId int, oevs []OutEvent) json.RawMessage
func RegisterExecutor ¶
func Step ¶
func Step() json.RawMessage
func UnmarshalScheduledEvent ¶
func UnmarshalScheduledEvent(m Marshaler, input []byte, output *ScheduledEvent) error
Types ¶
type Agenda ¶
type Agenda = []ScheduledEvent
type ClientRequest ¶
func (ClientRequest) InEvent ¶
func (_ ClientRequest) InEvent()
type ClientResponse ¶
func (ClientResponse) Args ¶
func (_ ClientResponse) Args()
func (ClientResponse) ResponseEvent ¶
func (c ClientResponse) ResponseEvent() string
type CreateRunEvent ¶
type DeploymentInfo ¶
type DeploymentInfo struct { Reactor string `json:"reactor"` Type string `json:"type"` Args json.RawMessage `json:"args"` }
func DeploymentInfoForTest ¶
func DeploymentInfoForTest(testId TestId) ([]DeploymentInfo, error)
type Fault ¶
func (*Fault) UnmarshalJSON ¶
type InternalMessage ¶
type InternalMessage struct {
Message Message `json:"message"`
}
func (InternalMessage) Args ¶
func (_ InternalMessage) Args()
func (InternalMessage) InEvent ¶
func (_ InternalMessage) InEvent()
func (InternalMessage) MarshalJSON ¶
func (im InternalMessage) MarshalJSON() ([]byte, error)
func (InternalMessage) MessageEvent ¶
func (im InternalMessage) MessageEvent() string
type Marshaler ¶
type Marshaler interface { UnmarshalRequest(request string, input json.RawMessage, output *Request) error UnmarshalMessage(message string, input json.RawMessage, output *Message) error }
type RunId ¶
type RunId struct {
RunId int
}
func CreateRun ¶
func CreateRun(testId TestId, event CreateRunEvent) RunId
func ParseRunId ¶
func (RunId) MarshalJSON ¶
func (*RunId) UnmarshalJSON ¶
type ScheduledEvent ¶
type SchedulerFault ¶
type SchedulerRequest ¶
type SchedulerRequest struct { Command string `json:"command"` Parameters interface{} `json:"parameters"` }
type TestId ¶
type TestId struct {
TestId int
}
func GenerateTest ¶
func ParseTestId ¶
func (TestId) MarshalJSON ¶
func (*TestId) UnmarshalJSON ¶
type TimeFromString ¶
func (*TimeFromString) Scan ¶
func (tf *TimeFromString) Scan(src interface{}) error
type TimePico ¶
func (*TimePico) UnmarshalJSON ¶
type Topology ¶
type Topology struct {
// contains filtered or unexported fields
}
func NewTopology ¶
Click to show internal directories.
Click to hide internal directories.