models

package
v0.0.0-...-34a989c Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB          *gorm.DB
	RedisClient *redis.Client
)

Functions

func ConnectCache

func ConnectCache()

func ConnectDatabase

func ConnectDatabase() error

Types

type Tool

type Tool struct {
	Id      string  `gorm:"id"`
	Name    string  `json:"name"`
	Version float64 `json:"version"`
	// PreviousVersions []float64 `json:"previous"`
	Description string `json:"description"`
	Status      string `json:"status"`
}

Jump to

Keyboard shortcuts

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