Documentation ¶
Index ¶
- type BinaryStorage
- type Executable
- type IO
- type JsonStorage
- type Manager
- type PostgresBinaryStorage
- func (s *PostgresBinaryStorage) Add(ctx context.Context, id string, data []byte) error
- func (s *PostgresBinaryStorage) Get(ctx context.Context, id string) ([]byte, error)
- func (s *PostgresBinaryStorage) GetAll(ctx context.Context) ([][]byte, error)
- func (s *PostgresBinaryStorage) Remove(ctx context.Context, id string) error
- type ResourceSet
- type Specification
- type TypeWithID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryStorage ¶
type Executable ¶
type IO ¶
type IO struct { Inputs ResourceSet Outputs ResourceSet }
type JsonStorage ¶
type JsonStorage[T any] struct { Raw BinaryStorage IdFunc func(T) string }
func (*JsonStorage[T]) Get ¶
func (storage *JsonStorage[T]) Get(ctx context.Context, id string) (T, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(specificationBinaryStorage, typeBinaryStorage BinaryStorage) *Manager
func (*Manager) Specifications ¶
func (manager *Manager) Specifications() *JsonStorage[Specification]
func (*Manager) Types ¶
func (manager *Manager) Types() *JsonStorage[TypeWithID]
type PostgresBinaryStorage ¶
type PostgresBinaryStorage struct { DB *pgxpool.Pool Table string // contains filtered or unexported fields }
type Specification ¶
type Specification struct { // ID is a path to specification, it's expected to be like /a/b/c/task.go ID string IO IO Executable Executable Meta map[string]any }
type TypeWithID ¶
Click to show internal directories.
Click to hide internal directories.