db

package
v0.0.0-...-69dc298 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_CSV_PATH = ".uniprint/keys.csv.encrypted"

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVManager

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

func GetCSVManager

func GetCSVManager() *CSVManager

func InitializeCSV

func InitializeCSV() (*CSVManager, error)

func (*CSVManager) AccessRow

func (c *CSVManager) AccessRow(username string) (*Credential, error)

func (*CSVManager) AddRow

func (c *CSVManager) AddRow(cred Credential) error

func (*CSVManager) UpdateRow

func (c *CSVManager) UpdateRow(username string, newCred Credential) error

type Credential

type Credential struct {
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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