Documentation ¶
Index ¶
- Variables
- func Empty(t *testing.T, o interface{})
- func Equals(t *testing.T, i any, l any)
- func ErrorIs(t *testing.T, err error, target error)
- func ErrorNotIs(t *testing.T, err error, target error)
- func Len(t *testing.T, o interface{}, len1 int)
- func Nil(t *testing.T, o interface{}, msg ...string)
- func NotEmpty(t *testing.T, o interface{})
- func NotEquals(t *testing.T, i any, l any)
- func NotIsLen(t *testing.T, o interface{}, l int)
- func NotNil(t *testing.T, o interface{})
- func RestoreEnv(b BackupEnvData)
- func Setargs(args ...string)
- func SetargsV(name string, value string)
- func WaitFor[T any](ctx context.Context, ch <-chan T) (T, error)
- func WaitForClosed[T any](ctx context.Context, ch <-chan T) error
- type BackupEnvData
- type ErrNotHealthy
- type ErrService
- type HealthCheckClientBuilder
- type ServiceGroup
- type Starter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("timeout while waiting channel")
Functions ¶
func RestoreEnv ¶ added in v0.6.2
func RestoreEnv(b BackupEnvData)
Types ¶
type BackupEnvData ¶ added in v0.6.2
type BackupEnvData struct {
// contains filtered or unexported fields
}
func DoBackupEnv ¶ added in v0.6.2
func DoBackupEnv() BackupEnvData
type ErrNotHealthy ¶
type ErrNotHealthy struct {
Addr string
}
func (ErrNotHealthy) Error ¶
func (e ErrNotHealthy) Error() string
type ErrService ¶
func (ErrService) Error ¶
func (e ErrService) Error() string
type HealthCheckClientBuilder ¶
type HealthCheckClientBuilder interface {
NewHealthCheckClient() (service.HealthChecker, error)
}
type ServiceGroup ¶
type ServiceGroup struct {
// contains filtered or unexported fields
}
func NewServiceGroup ¶
func NewServiceGroup() *ServiceGroup
func (*ServiceGroup) Start ¶
func (s *ServiceGroup) Start(starters ...Starter) error
func (*ServiceGroup) WaitUntilStopped ¶
func (s *ServiceGroup) WaitUntilStopped() error
Click to show internal directories.
Click to hide internal directories.