db

package
v7.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 10 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) HasHash

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

HasHash checks if hash is present for a file in db

func (*Client) PutHash

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

PutHash add hash in db for a given file

Jump to

Keyboard shortcuts

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