datastore

package
v0.0.0-...-c9c84e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	// contains filtered or unexported fields
}

Datastore provides a task database on Google Cloud Datastore.

func NewDatastore

func NewDatastore(conf config.Datastore) (*Datastore, error)

NewDatastore returns a new Datastore instance with the given config.

func (*Datastore) Close

func (db *Datastore) Close()

func (*Datastore) GetTask

func (d *Datastore) GetTask(ctx context.Context, req *tes.GetTaskRequest) (*tes.Task, error)

GetTask implements the TES GetTask interface.

func (*Datastore) Init

func (db *Datastore) Init() error

Init is a noop action for Datastore.

func (*Datastore) ListTasks

ListTasks implements the TES ListTasks interface.

func (*Datastore) WriteEvent

func (d *Datastore) WriteEvent(ctx context.Context, e *events.Event) error

WriteEvent writes a task event to the database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL