sharerepo

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Entropy

type Entropy string
const (
	EntropyNone    Entropy = "none"
	EntropyUser    Entropy = "user"
	EntropyProject Entropy = "project"
)

type Share

type Share struct {
	ID         string         `gorm:"column:id;primary_key"`
	Data       string         `gorm:"column:data; not null"`
	UserID     string         `gorm:"column:user_id;not null"`
	Entropy    Entropy        `gorm:"column:entropy;default:none"`
	Salt       string         `gorm:"column:salt;default:null"`
	Iterations int            `gorm:"column:iterations;default:null"`
	Length     int            `gorm:"column:length;default:null"`
	Digest     string         `gorm:"column:digest;default:null"`
	CreatedAt  time.Time      `gorm:"column:created_at;autoCreateTime"`
	UpdatedAt  time.Time      `gorm:"column:updated_at;autoUpdateTime"`
	DeletedAt  gorm.DeletedAt `gorm:"column:deleted_at"`
}

func (Share) TableName

func (Share) TableName() string

Jump to

Keyboard shortcuts

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