Documentation ¶
Overview ¶
Package testrig provides tools for generating standalone test environment for sysl generated services
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRig ¶
GenerateRig creates full set of files required to start up a test rig for every service, it creates main.go (optionally with DB connection) and a dockerfile to containerize it if the service contains DB tables, it creates sidecar postgres container and creates a schema there finally, it creates docker-compose.yml at the point of all (likely your project's root) that joins all containerized services
func GetDockerfileStub ¶
func GetDockerfileStub() string
func GetMainDBStub ¶ added in v0.34.0
func GetMainDBStub() string
func GetMainStub ¶
func GetMainStub() string
Types ¶
type ServiceImplVars ¶
type ServiceVars ¶
type ServiceVars struct { Port string `json:"port"` Impl ServiceImplVars `json:"impl"` // contains filtered or unexported fields }
type ServiceVarsMap ¶
type ServiceVarsMap map[string]ServiceVars
Click to show internal directories.
Click to hide internal directories.