Documentation ¶
Index ¶
- Constants
- func AsTableRecords(dataKey interface{}, state data.Map) (interface{}, error)
- func New() endly.Service
- type ExpectRequest
- type ExpectResponse
- type InitRequest
- type InitResponse
- type MappingRequest
- type MappingResponse
- type PopulateDatastoreEvent
- type PrepareRequest
- type PrepareResponse
- type QueryRequest
- type QueryResponse
- type RecreateRequest
- type RecreateResponse
- type RegisterRequest
- type RegisterResponse
- type RunSQLRequest
- type RunSQLResponse
- type RunSQLcriptEvent
- type RunScriptRequest
- type SequenceRequest
- type SequenceResponse
- type TableData
Constants ¶
const (
//ServiceID represents a data store unit service id
ServiceID = "dsunit"
)
Variables ¶
This section is empty.
Functions ¶
func AsTableRecords ¶
AsTableRecords converts data spcified by dataKey into slice of *TableData to create dsunit data as map[string][]map[string]interface{} (table with records)
Types ¶
type ExpectRequest ¶
type ExpectRequest dsunit.ExpectRequest
ExpectRequest represents an expect request
type ExpectResponse ¶
type ExpectResponse dsunit.ExpectResponse
ExpectResponse represent an expect response
func (*ExpectResponse) Assertion ¶
func (r *ExpectResponse) Assertion() []*assertly.Validation
Assertion returns description with validation slice
type InitRequest ¶
type InitRequest dsunit.InitRequest
InitRequest represents an init request
func (*InitRequest) Messages ¶
func (r *InitRequest) Messages() []*msg.Message
Messages returns messages
type MappingRequest ¶
type MappingRequest dsunit.MappingRequest
MappingRequest represents a mapping request
func (*MappingRequest) Messages ¶
func (r *MappingRequest) Messages() []*msg.Message
Messages returns messages
type MappingResponse ¶
type MappingResponse dsunit.MappingResponse
MappingResponse represents a mapping response
type PopulateDatastoreEvent ¶
type PopulateDatastoreEvent struct { Datastore string `required:"true" description:"register datastore name"` //target host Table string Rows int }
PopulateDatastoreEvent represents a populate Datastore event
type PrepareRequest ¶
type PrepareRequest dsunit.PrepareRequest
PrepareRequest represents a prepare request
func (*PrepareRequest) Messages ¶
func (r *PrepareRequest) Messages() []*msg.Message
Messages returns messages
type PrepareResponse ¶
type PrepareResponse dsunit.PrepareResponse
PrepareResponse represents a prepare response
type QueryResponse ¶
type QueryResponse dsunit.QueryResponse
QueryResponse represents dsunit response
type RecreateRequest ¶
type RecreateRequest dsunit.RecreateRequest
RecreateRequest represents a recreate request
type RecreateResponse ¶
type RecreateResponse dsunit.RecreateResponse
RecreateResponse represent a recreate response
type RegisterRequest ¶
type RegisterRequest dsunit.RegisterRequest
RegisterRequest represents a register request
func (*RegisterRequest) Messages ¶
func (r *RegisterRequest) Messages() []*msg.Message
Messages returns messages
type RegisterResponse ¶
type RegisterResponse dsunit.RegisterResponse
RegisterResponse represents a register response
type RunSQLRequest ¶
type RunSQLRequest dsunit.RunSQLRequest
RunSQLRequest represent run SQL request
type RunSQLResponse ¶
type RunSQLResponse dsunit.RunSQLResponse
RunSQLResponse represents a script response
type RunSQLcriptEvent ¶
RunSQLcriptEvent represents run script event
type RunScriptRequest ¶
type RunScriptRequest dsunit.RunScriptRequest
RunScriptRequest represents a script request
func (*RunScriptRequest) Messages ¶
func (r *RunScriptRequest) Messages() []*msg.Message
Messages returns messages
type SequenceRequest ¶
type SequenceRequest dsunit.SequenceRequest
type SequenceRequest represents a sequence request
type SequenceResponse ¶
type SequenceResponse dsunit.SequenceResponse
SequenceResponse represent a sequence response
func (*SequenceResponse) Messages ¶
func (r *SequenceResponse) Messages() []*msg.Message
Messages returns messages
type TableData ¶
type TableData struct { Table string Value interface{} AutoGenerate map[string]string `json:",omitempty"` PostIncrement []string `json:",omitempty"` Key string }
TableData represents table data
func (*TableData) AutoGenerateIfNeeded ¶
AutoGenerateIfNeeded retrieves auto generated values
func (*TableData) PostIncrementIfNeeded ¶
PostIncrementIfNeeded increments all specified counters by one.