calculator

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExperimentCalculate

func NewExperimentCalculate(
	httpStan *stan.Stan,
	stanModelID string,
	environmentClient environmentclient.Client,
	experimentClient experimentclient.Client,
	ecClient ecclient.Client,
	mysqlClient mysql.Client,
	experimentLock *ExperimentLock,
	location *time.Location,
	opts ...jobs.Option,
) jobs.Job

Types

type ExperimentLock added in v0.4.7

type ExperimentLock struct {
	// contains filtered or unexported fields
}

ExperimentLock represents a distributed lock for experiments

func NewExperimentLock added in v0.4.7

func NewExperimentLock(client redisv3.Client, lockTTL time.Duration) *ExperimentLock

NewExperimentLock creates a new ExperimentLock

func (*ExperimentLock) Lock added in v0.4.7

func (el *ExperimentLock) Lock(ctx context.Context, environmentID, experimentID string) (bool, string, error)

Lock attempts to acquire the lock for a specific experiment

func (*ExperimentLock) Unlock added in v0.4.7

func (el *ExperimentLock) Unlock(ctx context.Context, environmentID, experimentID, value string) (bool, error)

Unlock releases the lock for a specific experiment

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL