models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(fn string) (*gorm.DB, error)

Types

type LocalConfig

type LocalConfig struct {
	gorm.Model
	UserEmail     string
	TeamName      string
	ClientID      string `gorm:"unique"`
	ClientSecret  string
	ServerAddress string
	Token         string
	DisableRemote bool
}

func (LocalConfig) String

func (lc LocalConfig) String()

type Record

type Record struct {
	gorm.Model
	Label     string
	Cmd       string
	Duration  time.Duration
	Repo      string
	Branch    string
	Username  string
	OS        string
	Container bool
}

func (Record) String

func (r Record) String()

Jump to

Keyboard shortcuts

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