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 ¶
func Barrier(ctx context.Context, datastoreType Datastore_type, datastore_ID string) error
Types ¶
type AntiObj ¶
type AntiObj struct { Version string Lineage []WriteIdentifier }
type Datastore_type ¶
type Datastore_type interface {
// contains filtered or unexported methods
}
type MySQL ¶
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 ¶
func GetLineage ¶
func GetLineage(ctx context.Context) ([]WriteIdentifier, error)
func Read ¶
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.