Documentation
¶
Index ¶
- Constants
- func CleanupEnv(t *testing.T, workerService Service, backtestService Service, ...)
- func Example(_ *pb.WorkerRequest) *pb.WorkerResponse
- func LokiContainerAndLogging(t *testing.T, networkID string) (ConnectionString string)
- func MinioContainer(t *testing.T, networkID string) (ConnectionString, AccessKey, SecretKey string)
- func NATSContainer(t *testing.T, networkID string) (ConnectionString string)
- func PostgresContainer(t *testing.T, networkID string) (ConnectionString string)
- func Request(t *testing.T, method string, endpoint string, payload interface{}) *http.Response
- func SetUpEnv(t *testing.T, backtest Backtest, strategy *Strategy) error
- func SetupEnvironment(t *testing.T, containers *Containers)
- func WaitTillContainersAreRemoved(t *testing.T, networkID string, timeout time.Duration)
- func WaitUntilCondition(t *testing.T, condition func() (bool, error), timeout time.Duration) error
- func WorkerSimulator(t *testing.T, functions ...*WorkerFunction) (*pb.Algorithm, func(socket mangos.Socket))
- type Backtest
- type Containers
- type LokiLogger
- type Service
- type ServiceInstance
- type Strategy
- type WorkerFunction
Constants ¶
View Source
const ( PostgresImage = "postgres:alpine" NatsImage = "nats:alpine" MinioImage = "minio/minio:latest" )
View Source
const (
NetworkID = "foreverbull-testing-network"
)
Variables ¶
This section is empty.
Functions ¶
func CleanupEnv ¶
func Example ¶
func Example(_ *pb.WorkerRequest) *pb.WorkerResponse
func LokiContainerAndLogging ¶
func MinioContainer ¶
func PostgresContainer ¶
func SetupEnvironment ¶
func SetupEnvironment(t *testing.T, containers *Containers)
func WaitUntilCondition ¶
func WorkerSimulator ¶
func WorkerSimulator(t *testing.T, functions ...*WorkerFunction) (*pb.Algorithm, func(socket mangos.Socket))
Types ¶
type LokiLogger ¶
type LokiLogger struct { LokiURL string // contains filtered or unexported fields }
func (*LokiLogger) Publish ¶
func (l *LokiLogger) Publish(t *testing.T)
type ServiceInstance ¶
func NewServiceInstance ¶
func NewServiceInstance(t *testing.T) *ServiceInstance
func (*ServiceInstance) Close ¶
func (s *ServiceInstance) Close() error
type WorkerFunction ¶
type WorkerFunction struct { CB func(*pb.WorkerRequest) *pb.WorkerResponse Name string Parallel bool RunFirst bool RunLast bool }
Click to show internal directories.
Click to hide internal directories.