depositories

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CertificateTemplate = `` /* 2135-byte string literal not displayed */

	CertificateTemplateCN = `` /* 2084-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type DepositoryCond

type DepositoryCond struct {
	From, Size             int
	Name, KID, ContentName string
	StartTime, EndTime     int64
}

func (*DepositoryCond) ToCond

func (dc *DepositoryCond) ToCond() ([]string, []interface{})

type Interface

type Interface interface {
	Get(DepositoryCond) (models.Depository, error)
	GetCertificate(cond DepositoryCond, language string) ([]byte, error)
	List(DepositoryCond) ([]models.Depository, int64, error)
}

func NewDBHandler

func NewDBHandler(db *pg.DB, templateImage string, ttpfFontPath string) (Interface, error)

func NewLoggerHandler

func NewLoggerHandler() Interface

Jump to

Keyboard shortcuts

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