Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonConfig ¶
type DaemonConfig struct { ProjectID string JobQueueTopic string LogTopic string App string WorkDir string }
DaemonConfig is ...
type DefaultJobMessage ¶
type DefaultJobMessage struct { JobID string `json:"jobID"` JobExecutionID string `json:"jobExecutionID"` Command string `json:"command"` Environment []string `json:"environment"` Timeout int `json:"timeout"` }
DefaultJobMessage is ...
type Job ¶
type Job struct { JobID string JobExecutionID string CommandString string Environment []string JobExitCode int ExecutionLog string SentAt time.Time SubmittedAt time.Time StartedAt time.Time FinishedAt time.Time Timeout time.Duration Cmd exec.Cmd }
Job is...
type PubSubJobQueue ¶
type PubSubJobQueue struct {
// contains filtered or unexported fields
}
PubSubJobQueue is...
func NewPubSubJobQueueExecutor ¶
func NewPubSubJobQueueExecutor(ctx context.Context, projectID, topicName, subscriptionName, daemonApp string) (*PubSubJobQueue, error)
NewPubSubJobQueueExecutor is...
func (*PubSubJobQueue) Run ¶
func (jq *PubSubJobQueue) Run(ctx, cctx context.Context, ld PubSubMessageDriver) error
Run is...
type PubSubMessageDriver ¶
type PubSubMessageDriver struct {
// contains filtered or unexported fields
}
PubSubMessageDriver is ...
func NewPubSubMessageDriver ¶
func NewPubSubMessageDriver(ctx context.Context, projectID, topicName string) (*PubSubMessageDriver, error)
NewPubSubMessageDriver is ...
Click to show internal directories.
Click to hide internal directories.