dao

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound     = fmt.Errorf("record Not Found")
	ErrUpdateFailed = fmt.Errorf("db update error")
	ErrInsertFailed = fmt.Errorf("db insert error")
	ErrDeleteFailed = fmt.Errorf("db delete error")
	DB              *gorm.DB
)

Functions

func AddForbid

func AddForbid(db *gorm.DB, record *model.Forbid) (result *model.Forbid, RowsAffected int64, err error)

AddForbid

func Copy

func Copy(dst interface{}, src interface{}) error

Copy

func GetAllCertificates

func GetAllCertificates(db *gorm.DB, page, pagesize int, order string) (results []*model.Certificates, totalRows int64, err error)

GetAllCertificates

func GetAllForbid

func GetAllForbid(db *gorm.DB, page, pagesize int, order string) (results []*model.Forbid, totalRows int64, err error)

GetAllForbid

func GetForbid

func GetForbid(db *gorm.DB) (record *model.Forbid, err error)

GetForbid

func GetOcspResponses

func GetOcspResponses(db *gorm.DB, argId string) (record *model.OcspResponses, err error)

GetOcspResponses

func GetSelfKeypair

func GetSelfKeypair(db *gorm.DB, argId uint32) (record *model.SelfKeypair, err error)

GetSelfKeypair

Types

This section is empty.

Jump to

Keyboard shortcuts

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