viewmodel

package
v0.0.0-...-269c371 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanID

func CleanID(id string) string

Types

type Cert

type Cert struct {
	ID          string
	FamilyName  string
	GivenName   string
	DateOfBirth string

	Data *DataRows
	// contains filtered or unexported fields
}

func (*Cert) Color

func (c *Cert) Color() string

func (*Cert) GenerateData

func (c *Cert) GenerateData()

func (*Cert) Icon

func (c *Cert) Icon() string

func (*Cert) Title

func (c *Cert) Title() string

func (*Cert) Type

func (c *Cert) Type() string

func (*Cert) ValidUntil

func (c *Cert) ValidUntil() time.Time

type CertList

type CertList struct {
	Size         int
	EmptyMessage string
	// contains filtered or unexported fields
}

func (*CertList) Append

func (c *CertList) Append(cert *utils.CoronaCert)

func (*CertList) Get

func (c *CertList) Get(index int) *Cert

func (*CertList) RemoveByID

func (c *CertList) RemoveByID(id string)

type DataRow

type DataRow struct {
	Title    string
	Subtitle string
}

type DataRows

type DataRows struct {
	Size int
	Rows []*DataRow
}

func (*DataRows) Get

func (dr *DataRows) Get(index int) *DataRow

type RecoveryCert

type RecoveryCert struct {
	Target        string
	Country       string
	CertificateID string
	Issuer        string
}

type RecoveryCertList

type RecoveryCertList struct {
	Size int
	// contains filtered or unexported fields
}

func (*RecoveryCertList) Get

func (t *RecoveryCertList) Get(index int) *RecoveryCert

type VaccinationCert

type VaccinationCert struct {
	VaccinatedOn   string
	Doses          int
	DoseSeries     int
	Target         string
	MedicalProduct string
	Vaccine        string
	Manufacturer   string
	Country        string
	Issuer         string
	CertificateID  string
}

type VaccinationCertList

type VaccinationCertList struct {
	Size int
	// contains filtered or unexported fields
}

func (*VaccinationCertList) Get

func (v *VaccinationCertList) Get(index int) *VaccinationCert

Jump to

Keyboard shortcuts

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