invocationdb

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvocationDB

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

func NewInvocationDB

func NewInvocationDB(env environment.Env, h *db.DBHandle) *InvocationDB

func (*InvocationDB) DeleteInvocation

func (d *InvocationDB) DeleteInvocation(ctx context.Context, invocationID string) error

func (*InvocationDB) FillCounts

func (d *InvocationDB) FillCounts(ctx context.Context, stat *telpb.TelemetryStat) error

func (*InvocationDB) InsertOrUpdateInvocation

func (d *InvocationDB) InsertOrUpdateInvocation(ctx context.Context, ti *tables.Invocation) error

func (*InvocationDB) LookupExpiredInvocations

func (d *InvocationDB) LookupExpiredInvocations(ctx context.Context, cutoffTime time.Time, limit int) ([]*tables.Invocation, error)

func (*InvocationDB) LookupGroupFromInvocation

func (d *InvocationDB) LookupGroupFromInvocation(ctx context.Context, invocationID string) (*tables.Group, error)

func (*InvocationDB) LookupInvocation

func (d *InvocationDB) LookupInvocation(ctx context.Context, invocationID string) (*tables.Invocation, error)

Jump to

Keyboard shortcuts

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