boltdb

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserBucket    = "users"
	ProjectBucket = "projects"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemBoltDBDriver

type SystemBoltDBDriver struct {
	DB *bolt.DB
}

func GetSystemBoltDriver

func GetSystemBoltDriver(engineConfig *protobuff.DriverCredentials) (*SystemBoltDBDriver, error)

func (*SystemBoltDBDriver) BlacklistAToken

func (b *SystemBoltDBDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error

func (*SystemBoltDBDriver) CheckTokenBlacklisted

func (b *SystemBoltDBDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error

func (*SystemBoltDBDriver) DeleteProjectFromSystem

func (b *SystemBoltDBDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error

func (*SystemBoltDBDriver) GetProject

func (b *SystemBoltDBDriver) GetProject(ctx context.Context, id string) (*protobuff.Project, error)

func (*SystemBoltDBDriver) GetSystemUser

func (b *SystemBoltDBDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)

func (*SystemBoltDBDriver) GetSystemUserByUsername

func (b *SystemBoltDBDriver) GetSystemUserByUsername(ctx context.Context, username string) (*protobuff.SystemUser, error)

func (*SystemBoltDBDriver) ListFunctions

func (*SystemBoltDBDriver) RunMigration

func (b *SystemBoltDBDriver) RunMigration(ctx context.Context) error

func (*SystemBoltDBDriver) SaveRawData

func (b *SystemBoltDBDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error

func (*SystemBoltDBDriver) SearchResource

func (*SystemBoltDBDriver) UpdateProject

func (b *SystemBoltDBDriver) UpdateProject(ctx context.Context, project *protobuff.Project, replace bool) error

func (*SystemBoltDBDriver) UpdateSystemUser

func (b *SystemBoltDBDriver) UpdateSystemUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error

Jump to

Keyboard shortcuts

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