pcrcrud

package
v0.0.0-...-902682f Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePcrRepo

func CreatePcrRepo(gormDb *gorm.DB) pcrcrud.Repository

Types

type PcrRepo

type PcrRepo struct {
	DB *gorm.DB
}

func (*PcrRepo) Create

func (rep *PcrRepo) Create(ctx context.Context, pcr *pcrcrud.Domain) (pcrcrud.Domain, error)

func (*PcrRepo) GetPCR

func (repo *PcrRepo) GetPCR(ctx context.Context) (pcrcrud.Domain, error)

func (*PcrRepo) Update

func (rep *PcrRepo) Update(ctx context.Context, pcr pcrcrud.Domain) (pcrcrud.Domain, error)

type Pcrcrud

type Pcrcrud struct {
	Id        int `gorm:"primaryKey]"`
	PcrValue  float64
	UpdatedAt time.Time
}

func FromDomain

func FromDomain(domain pcrcrud.Domain) Pcrcrud

func (*Pcrcrud) ToDomain

func (pcr *Pcrcrud) ToDomain() pcrcrud.Domain

Jump to

Keyboard shortcuts

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