database

package
v0.0.0-...-17e39b2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var SessionStore gormsessions.Store

Functions

func Connect

func Connect()

Types

type Endpoint

type Endpoint struct {
	gorm.Model
	ID             uuid.UUID `gorm:"primaryKey"`
	Name           string
	LastConnection *time.Time
	RegisteredDate *time.Time
	//	OSInfo         common.OSInfo
	Enabled    bool
	SecretHash string
}

type PackageList

type PackageList struct {
	gorm.Model
	ID uuid.UUID `gorm:"primaryKey"`
}

type RegistrationToken

type RegistrationToken struct {
	gorm.Model
	Hash string
}

Jump to

Keyboard shortcuts

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