persistence

package
v0.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMalformedPageToken       = errors.New("malformed page token")
	ErrNetworkMigrationsMissing = errors.New("networkx migrations are not yet applied")
)

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	MigrationBox(ctx context.Context) (*popx.MigrationBox, error)
	MigrateUp(ctx context.Context) error
	MigrateDown(ctx context.Context) error
}

type Persister

type Persister interface {
	relationtuple.Manager
	relationtuple.MappingManager

	Connection(ctx context.Context) *pop.Connection
	NetworkID(ctx context.Context) uuid.UUID
}

type Provider

type Provider interface {
	Persister() Persister
	Traverser() relationtuple.Traverser
}

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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