Documentation
¶
Index ¶
- Variables
- func CreateClient(t testing.TB, storAddr s3.StorageAddress, cred s3.CredentialsV4) (*mclient.Client, *mclient.Core)
- func DeepCopyStruct[T any](in T) (out T, err error)
- func ProxyS3Config(main string, storages map[string]s3.Storage) proxy.Storages
- func WorkerS3Config(main string, storages map[string]s3.Storage) objstore.Config
- func WorkerSwiftConfig(main string, storages map[string]swift.Storage) objstore.Config
- type Chorus
- type EmbeddedEnv
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkerRetryConf = handler.Config{
SwiftRetryInterval: asynqRetry * 5,
PauseRetryInterval: asynqRetry * 2,
SwitchRetryInterval: asynqRetry * 2,
QueueUpdateInterval: asynqRetry * 2,
TaskCheckInterval: asynqRetry,
DelayedTaskCheckInterval: asynqRetry * 2,
CustomErrRetryInterval: &asynqRetry,
}
Functions ¶
func CreateClient ¶ added in v0.7.0
func CreateClient(t testing.TB, storAddr s3.StorageAddress, cred s3.CredentialsV4) (*mclient.Client, *mclient.Core)
func DeepCopyStruct ¶ added in v0.7.0
generic parameter function to deepcopy struct using yaml marshal/unmarshal
func ProxyS3Config ¶ added in v0.7.0
func WorkerS3Config ¶ added in v0.7.0
Types ¶
type Chorus ¶ added in v0.7.0
type EmbeddedEnv ¶
type EmbeddedEnv struct {
MainClient *mclient.Client
F1Client *mclient.Client
F2Client *mclient.Client
ProxyClient *mclient.Client
ProxyAwsClient *aws_s3.S3
MpMainClient *mclient.Core
MpF1Client *mclient.Core
MpF2Client *mclient.Core
MpProxyClient *mclient.Core
TaskClient *asynq.Client
PolicyClient pb.PolicyClient
ChorusClient pb.ChorusClient
DiffClient pb.DiffClient
UrlHttpApi string
WaitShort time.Duration
RetryShort time.Duration
WaitLong time.Duration
RetryLong time.Duration
}
func SetupEmbedded ¶
func (*EmbeddedEnv) CreateMainFollowerUserReplications ¶
func (e *EmbeddedEnv) CreateMainFollowerUserReplications(t testing.TB)
Click to show internal directories.
Click to hide internal directories.