Documentation ¶
Index ¶
- Variables
- func Barrier(ctx context.Context, datastoreType Datastore_type, datastore_ID string) error
- func Consume(ctx context.Context, datastoreType Datastore_type, exchange string, key string, ...) (<-chan AntiObj, error)
- func InitCtx(ctx context.Context) context.Context
- func Requeue(ctx context.Context, datastoreType Datastore_type, key string, obj AntiObj) error
- func Transfer(ctx context.Context, lineage []WriteIdentifier) (context.Context, error)
- func Write(ctx context.Context, datastoreType Datastore_type, datastore_ID string, ...) (context.Context, error)
- type AntiObj
- type Datastore_type
- type Document
- type MongoDB
- type MySQL
- type RabbitMQ
- type Redis
- type WriteIdentifier
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func Barrier ¶ added in v0.3.1
func Barrier(ctx context.Context, datastoreType Datastore_type, datastore_ID string) error
Types ¶
type AntiObj ¶ added in v0.3.1
type AntiObj struct { Version string Lineage []WriteIdentifier }
type Datastore_type ¶ added in v0.3.1
type Datastore_type interface {
// contains filtered or unexported methods
}
type MySQL ¶ added in v0.5.13
type MySQL struct {
// contains filtered or unexported fields
}
It assumes by default that the table where the queries will be executed has exactly two columns called k and value
type WriteIdentifier ¶ added in v0.3.1
func GetLineage ¶ added in v0.3.1
func GetLineage(ctx context.Context) ([]WriteIdentifier, error)
func Read ¶ added in v0.3.1
func Read(ctx context.Context, datastoreType Datastore_type, table string, key string) (string, []WriteIdentifier, error)
Click to show internal directories.
Click to hide internal directories.