Documentation ¶
Index ¶
- Constants
- type Repository
- type RepositoryRedis
- type Service
- func (s Service[T]) Create(ctx context.Context, resourceID string) error
- func (s Service[T]) Get(ctx context.Context, resourceID string) (State, error)
- func (s Service[T]) MarkAsCompleted(ctx context.Context, resourceID string) error
- func (s Service[T]) MarkAsFailed(ctx context.Context, resourceID string, procErr error) error
- type State
- type View
Constants ¶
View Source
const ( StatusRunning = "RUNNING" StatusCompleted = "COMPLETED" StatusFailed = "FAILED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type RepositoryRedis ¶
type RepositoryRedis struct { Config boltzmann.RepositoryConfig Codec codec.Msgpack RDB redis.UniversalClient }
type Service ¶
type Service[T any] struct { Repository Repository }
func (Service[T]) MarkAsCompleted ¶
type State ¶
type View ¶
type View struct { StateID string `json:"state_id"` ResourceName string `json:"resource_name"` ResourceID string `json:"resource_id"` Status string `json:"status"` StartTime time.Time `json:"start_time"` StartTimeMillis int64 `json:"start_time_millis"` EndTime time.Time `json:"end_time"` EndTimeMillis int64 `json:"end_time_millis"` ExecutionDuration time.Duration `json:"execution_duration"` ExecutionDurationMillis int64 `json:"execution_duration_millis"` ExecutionError string `json:"execution_error"` }
Click to show internal directories.
Click to hide internal directories.