database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDatabase

type BoltDatabase interface {
	Insert(information types.CommandInformation) error
	Delete() error
	List() (*[]types.CommandInformation, error)
	InsertConfig(information types.ConfigurationInformation) error
	GetConfig(key string) (string, error)
	ListConfig() (*[]types.ConfigurationInformation, error)
	DeleteConfig(key string) error
}

func NewBoltDbService

func NewBoltDbService(boltDb *bolt.DB, bucketName string) BoltDatabase

type Service

type Service interface {
	// contains filtered or unexported methods
}

func NewDatabaseService

func NewDatabaseService(localDb BoltDatabase, configDb BoltDatabase) Service

Jump to

Keyboard shortcuts

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