data

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessObject

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

func NewAccessObject

func NewAccessObject(dbpool *pgxpool.Pool, storage Storage) *AccessObject

TODO(slax0rr): instead of requiring all to be added at construction add methods to allow for dynamic additions of data "elements'"

func (*AccessObject) GetDB

func (ao *AccessObject) GetDB() *db

func (*AccessObject) GetDBPool

func (ao *AccessObject) GetDBPool() *pgxpool.Pool

func (*AccessObject) GetStorage

func (ao *AccessObject) GetStorage() Storage

type Storage

type Storage interface {
	Store(string, []byte) error
	Read(string) ([]byte, error)
	GetFilepath(string) (string, error)
}

Jump to

Keyboard shortcuts

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