Documentation
¶
Index ¶
- type App
- type ConfigNSQ
- type ConfigRedis
- type ConfigSQL
- type Configurations
- type Mock
- type MockOption
- func WithConfiguration(file string) MockOption
- func WithConfigurationNSQ(config *ConfigNSQ) MockOption
- func WithConfigurationRedis(config *ConfigRedis) MockOption
- func WithConfigurationSQL(config *ConfigSQL) MockOption
- func WithConfigurations(config *Configurations) MockOption
- func WithPath(path string) MockOption
- func WithRunInBackground(background bool) MockOption
- type NSQ
- type NSQMessage
- type Redis
- type RedisCommand
- type Response
- type Route
- type SQL
- type SQLData
- type ServicesConfig
- type WebService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶ added in v0.0.2
type App struct {
Config Configurations `json:"configurations"`
}
App ...
type ConfigNSQ ¶ added in v0.0.2
type ConfigNSQ struct {
Lookupd string `json:"lookupd"`
RequeueDelay int64 `json:"requeue_delay"`
MaxInFlight int `json:"max_in_flight"`
MaxAttempts uint16 `json:"max_attempts"`
}
ConfigNSQ ...
type ConfigRedis ¶ added in v0.0.2
type ConfigRedis struct {
Protocol string `json:"protocol"`
Address string `json:"address"`
Size int `json:"size"`
}
ConfigRedis ...
type Configurations ¶ added in v0.0.2
type Configurations struct {
NSQ ConfigNSQ `json:"nsq"`
SQL ConfigSQL `json:"sql"`
Redis ConfigRedis `json:"redis"`
}
Configurations ...
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock ...
func (*Mock) RunSingleNoWait ¶ added in v0.0.2
RunSingleNoWait ...
func (*Mock) RunSingleWait ¶ added in v0.0.2
RunSingle ...
type MockOption ¶
type MockOption func(mock *Mock)
MockOption ...
func WithConfiguration ¶ added in v0.0.2
func WithConfiguration(file string) MockOption
WithConfiguration ...
func WithConfigurationNSQ ¶ added in v0.0.2
func WithConfigurationNSQ(config *ConfigNSQ) MockOption
WithConfigurationNSQ ...
func WithConfigurationRedis ¶ added in v0.0.2
func WithConfigurationRedis(config *ConfigRedis) MockOption
WithConfigurationRedis ...
func WithConfigurationSQL ¶ added in v0.0.2
func WithConfigurationSQL(config *ConfigSQL) MockOption
WithConfigurationSQL ...
func WithConfigurations ¶ added in v0.0.2
func WithConfigurations(config *Configurations) MockOption
WithConfigurations ...
func WithRunInBackground ¶
func WithRunInBackground(background bool) MockOption
WithRunInBackground ...
type NSQ ¶
type NSQ struct {
Name string `json:"name"`
Description string `json:"description"`
Configuration *ConfigNSQ `json:"configuration"`
Connection *string `json:"connection"`
Run struct {
Setup []NSQMessage `json:"setup"`
Teardown []NSQMessage `json:"teardown"`
} `json:"run"`
}
NSQ
type NSQMessage ¶
type NSQMessage struct {
Description string `json:"description"`
Topic string `json:"topic"`
Body *json.RawMessage `json:"body"`
File *string `json:"file"`
}
NSQMessage
type Redis ¶
type Redis struct {
Name string `json:"name"`
Description string `json:"description"`
Configuration *ConfigRedis `json:"configuration"`
Connection *string `json:"connection"`
Run struct {
Setup []RedisCommand `json:"setup"`
Teardown []RedisCommand `json:"teardown"`
} `json:"run"`
}
Redis
type RedisCommand ¶
type RedisCommand struct {
Commands []struct {
Command string `json:"command"`
Arguments []string `json:"arguments"`
} `json:"commands"`
Files []string `json:"files"`
}
RedisCommand
type Response ¶
type Response struct {
Status int `json:"status"`
Body interface{} `json:"body"`
File *string `json:"file"`
}
Response
type Route ¶
type Route struct {
Description string `json:"description"`
Route string `json"route"`
Method string `json:"method"`
Body json.RawMessage `json:"body"`
File *string `json:"file"`
Response Response `json:"response"`
}
Route
type SQL ¶
type SQL struct {
Name string `json:"name"`
Description string `json:"description"`
Configuration *ConfigSQL `json:"configuration"`
Connection *string `json:"connection"`
Run struct {
Setup *SQLData `json:"setup"`
Teardown *SQLData `json:"teardown"`
} `json:"run"`
}
SQL
type ServicesConfig ¶ added in v0.0.2
type ServicesConfig struct {
File string `json:"file,omitempty"`
WebServices []WebService `json:"webservices,omitempty"`
Redis []Redis `json:"redis,omitempty"`
NSQ []NSQ `json:"nsq,omitempty"`
SQL []SQL `json:"sql,omitempty"`
}
ServicesConfig
Click to show internal directories.
Click to hide internal directories.