db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserExists = iota
	UserIsAdmin
)
View Source
const MockUUID = "b7dbb635-5881-4351-842e-4eb481fbd1ae"

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	QueryUserInformation(query QueryType, uuid string) (bool, error)
}

type MockDatabase

type MockDatabase struct{}

func (MockDatabase) QueryUserInformation

func (database MockDatabase) QueryUserInformation(query QueryType, uuid string) (bool, error)

type QueryType

type QueryType int

type SQLDatabase

type SQLDatabase struct {
	Username string
	Password string
	Hostname string
	Dbname   string
}

func (SQLDatabase) QueryUserInformation

func (database SQLDatabase) QueryUserInformation(queryType QueryType, uuid string) (bool, error)

Jump to

Keyboard shortcuts

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