Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("object not found")
Functions ¶
This section is empty.
Types ¶
type ContractConfigCollection ¶
type ContractConfigCollection interface { SetContractConfig( ctx context.Context, config *model.JobContractConfig, ) error GetContractConfig( ctx context.Context, ) (*model.JobContractConfig, error) }
type DBService ¶
type ExternalGorm ¶
type ExternalGorm interface { CreateJob(ctx context.Context, job *model.Job) error LoadJobs(ctx context.Context) ([]*model.Job, error) DeleteJob(ctx context.Context, jobID string) error Client() *gorm.DB Connection() (*sql.DB, error) String() string }
func NewExternalPostgres ¶
func NewExternalPostgres(u *url.URL) (ExternalGorm, error)
type JobCollection ¶
type JobDBService ¶
type JobDBService interface { PersistentStateCollection ContractConfigCollection PendingTransmissionCollection PeerAnnouncementCollection JobID() model.ID DBName() string Client() *mongo.Client Close() }
func NewJobDBService ¶
func NewJobDBService( conn dbconn.Conn, jobID string, ) (JobDBService, error)
type PendingTransmissionCollection ¶
type PendingTransmissionCollection interface { InsertPendingTranmission( ctx context.Context, pendingTx *model.JobPendingTransmission, ) error ListPendingTransmissions( ctx context.Context, configDigest model.ID, cursor *model.Cursor, ) ([]*model.JobPendingTransmission, error) DeletePendingTransmission( ctx context.Context, reportTimestamp model.ReportTimestamp, ) error DeletePendingTransmissionsOlderThan( ctx context.Context, timestamp time.Time, ) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.