database

package
v0.0.0-...-de8f1eb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

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

func Get

func Get() T

Get singleton

func (*T) CreateOrGetCode

func (db *T) CreateOrGetCode(receiver restModels.VerifyReceiver) (string, error)

func (*T) DeleteRole

func (db *T) DeleteRole(roleName string) error

func (*T) EditRole

func (db *T) EditRole(roleName, roleID string) error

func (*T) GetCodeInfo

func (db *T) GetCodeInfo(code string) (databaseTables.Codes, error)

func (*T) GetRoleID

func (db *T) GetRoleID(roleName string) (string, error)

func (*T) ListRoles

func (db *T) ListRoles() []databaseTables.Roles

func (*T) SetUsed

func (db *T) SetUsed(UserID string, codeData databaseTables.Codes)

Jump to

Keyboard shortcuts

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