storage

package
v0.0.0-...-131cf77 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Env DriverType `json:"env"`
}

type DriverType

type DriverType string
const BadgerDriver DriverType = "badgerdb"
const DgraphDriver DriverType = "dgraphdb"

func (DriverType) String

func (dt DriverType) String() string

type Storage

type Storage interface {
	SaveTx(ctx context.Context) error
	FindTx(ctx context.Context)
	SearchTxs(ctx context.Context)
	SaveBlock(ctx context.Context)
	FindBlock(ctx context.Context)
	SearchBlocks(ctx context.Context)
	SaveEvent(ctx context.Context)
	FindEvent(ctx context.Context)
	SearchEvents(ctx context.Context)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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