types

package
v1.1.47 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup added in v1.1.39

type Backup interface {
	Export(z *zip.Writer) error
	Import(z *zip.Reader) error
}

provides a backup interface for imports and exports

type Closer added in v1.1.45

type Closer interface {
	Close() error
}

Closer is a type that signals the implementation that we are finished consuming the data/performing work and the async operation can be stopped.

Used by the block.BlockRepository.Iterator implementation in order to perform an early stop.

type DatabaseType

type DatabaseType string
const (
	DATABASE_SQLITE   DatabaseType = "sqlite3"
	DATABASE_POSTGRES DatabaseType = "postgresql"
	DATABASE_DUMMY    DatabaseType = "dummy"
)

type WhenDone added in v1.1.45

type WhenDone chan bool

WhenDone is a simple channel-based implementation of the Closer interface

func (WhenDone) Close added in v1.1.45

func (w WhenDone) Close() error

Jump to

Keyboard shortcuts

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