database

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(db *DB) ([]byte, error)

Types

type DB

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

func New

func New(db *truffle.C, config *cpb.Config) *DB

func (*DB) Add

func (db *DB) Add(ctx context.Context, epb *dpb.Entry) (*dpb.Entry, error)

func (*DB) Delete

func (db *DB) Delete(ctx context.Context, id *dpb.LinkedID) (*dpb.Entry, error)

func (*DB) Get

func (db *DB) Get(ctx context.Context, id *dpb.LinkedID, opts interface{}) (*dpb.Entry, error)

func (*DB) Put

func (db *DB) Put(ctx context.Context, epb *dpb.Entry) (*dpb.Entry, error)

func (*DB) Search

func (db *DB) Search(ctx context.Context, opts interface{}) ([]*dpb.Entry, error)

type GetOpts added in v0.5.0

type GetOpts struct {
	APIs []dpb.API
}

type SearchOpts added in v0.3.8

type SearchOpts struct {
	Title  string
	Corpus dpb.Corpus

	APIs []dpb.API

	// MAL contains MAL-specific API options.
	MAL mal.SearchOpts
}

Directories

Path Synopsis
helper
get

Jump to

Keyboard shortcuts

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