db

package
v7.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*bolt.DB
	// contains filtered or unexported fields
}

Client represents an active db object

func New

func New(cfg *config.Db) (c *Client, err error)

New creates new db instance

func (*Client) Close

func (c *Client) Close() error

Close closes db connection

func (*Client) Enabled

func (c *Client) Enabled() bool

Enabled verifies if db is enabled

func (*Client) HasDigest added in v7.13.0

func (c *Client) HasDigest(base string, source string, file os.FileInfo) bool

HasDigest checks if digest is present for a file in db

func (*Client) PutDigest added in v7.13.0

func (c *Client) PutDigest(base string, source string, file os.FileInfo) error

PutDigest add digest in db for a given file

Jump to

Keyboard shortcuts

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