Documentation
¶
Overview ¶
Package processio is the key-value store of processes (IO-01 to IO-03): the task type "process_io" and the store behind the IO API. The input conventions follow process-io-worker v1.0.13 (Apache-2.0): io.read.<output>, io.write.<key>, io.default.<key>, placeholders and JSON parsing of written strings.
Index ¶
- Constants
- type Limits
- type Service
- func (this *Service) Bulk(ctx context.Context, userId string, admin bool, bulk model.IoBulk) (result []model.IoValue, err error)
- func (this *Service) Delete(ctx context.Context, userId string, key string) error
- func (this *Service) Get(ctx context.Context, userId string, key string) (result model.IoValue, ok bool, err error)
- func (this *Service) List(ctx context.Context, userId string, options model.IoListOptions) (result model.Page[model.IoValue], err error)
- func (this *Service) Set(ctx context.Context, userId string, admin bool, v model.IoValue) error
- type Type
Constants ¶
const TaskType = "process_io"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Bulk ¶
func (this *Service) Bulk(ctx context.Context, userId string, admin bool, bulk model.IoBulk) (result []model.IoValue, err error)
Bulk writes, then reads, so that a key written in the same call reads back the new value.
func (*Service) Get ¶
func (this *Service) Get(ctx context.Context, userId string, key string) (result model.IoValue, ok bool, err error)
Get returns the value of a key, computed keys included; ok is false for a missing key.
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type is the task type process_io.