models

package
v0.0.0-...-6528de2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations struct {
	Type  string  `json:"type"`
	Value string  `json:"value"`
	Page  int     `json:"page"`
	X     float64 `json:"x"`
	Y     float64 `json:"y"`
	W     float64 `json:"w"`
	H     float64 `json:"z"`
}

Annotations is ...

type Areas

type Areas struct {
	AttachmentID string  `json:"attachment_id"`
	Page         int     `json:"page"`
	X            float64 `json:"x"`
	Y            float64 `json:"y"`
	W            float64 `json:"w"`
	H            float64 `json:"z"`
}

Areas is ...

type Author

type Author struct {
	ID        string `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
}

Author is ...

type CertSubject

type CertSubject struct {
	Organization string `json:"organization"`
	CommonName   string `json:"common_name"`
}

CertSubject is ...

type DocMetadata

type DocMetadata struct {
	Analyzed bool   `json:"analyzed,omitempty"`
	Pdf      Pdf    `json:"pdf"`
	Sha256   string `json:"sha256,omitempty"`
}

DocMetadata is ...

type Document

type Document struct {
	ID            string          `json:"id"`
	URL           string          `json:"url"`
	FileName      string          `json:"filename,omitempty"`
	Metadata      DocMetadata     `json:"metadata"`
	PreviewImages []PreviewImages `json:"preview_images"`
	CreatedAt     time.Time       `json:"created_at"`
}

Document is ...

type DocumentInfo

type DocumentInfo struct {
	Creator string `json:"creator"`
	Hash    string `json:"hash"`
}

DocumentInfo is ...

type Field

type Field struct {
	ID          string   `json:"id"`
	SubmitterID string   `json:"submitter_id"`
	Name        string   `json:"name"`
	Type        string   `json:"type"`
	Required    bool     `json:"required"`
	Areas       []*Areas `json:"areas,omitempty"`
}

Field is ...

type ImgMetadata

type ImgMetadata struct {
	Analyzed   bool `json:"analyzed,omitempty"`
	Identified bool `json:"identified,omitempty"`
	Width      int  `json:"width"`
	Height     int  `json:"height"`
}

ImgMetadata is ...

type Pdf

type Pdf struct {
	Annotations   []*Annotations `json:"annotations,omitempty"`
	NumberOfPages int            `json:"number_of_pages"`
}

Pdf os ...

type PreviewImages

type PreviewImages struct {
	ID         string      `json:"id"`
	RecordType string      `json:"record_type,omitempty"`
	RecordID   string      `json:"record_id,omitempty"`
	BlobID     string      `json:"blob_id,omitempty"`
	Metadata   ImgMetadata `json:"metadata"`
	FileName   string      `json:"filename"`
}

PreviewImages is ...

type Schema

type Schema struct {
	AttachmentID string `json:"attachment_id"`
	Name         string `json:"name"`
}

Schema is ...

type Sign

type Sign struct {
	Error          string `json:"error,omitempty"`
	FileName       string `json:"file_name,omitempty"`
	FileNameSigned string `json:"file_name_signed,omitempty"`
}

Sign is ...

type SignIn

type SignIn struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

SignIn is ...

func (SignIn) Validate

func (v SignIn) Validate() error

Validate is ...

type Signer

type Signer struct {
	Name               string        `json:"name"`
	Reason             string        `json:"reason"`
	ValidSignature     bool          `json:"valid_signature"`
	TrustedIssuer      TrustedIssuer `json:"trusted_issuer"`
	CertSubject        *CertSubject  `json:"cert_subject"`
	SigFormat          string        `json:"sig_format"`
	RevokedCertificate bool          `json:"revoked_certificate"`
	TimeStamp          *TimeStamp    `json:"time_stamp"`
}

Signer is ...

type Submitter

type Submitter struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Submitter is ...

type Template

type Template struct {
	ID         string      `json:"id"`
	FolderID   string      `json:"folder_id"`
	Slug       string      `json:"slug"`
	Name       string      `json:"name"`
	Source     string      `json:"source,omitempty"`
	Author     *Author     `json:"author,omitempty"`
	Submitters []Submitter `json:"submitters"`
	Fields     []Field     `json:"fields"`
	Schema     []Schema    `json:"schema"`
	Documents  []Document  `json:"documents"`
	CreatedAt  time.Time   `json:"created_at"`
	UpdatedAt  time.Time   `json:"updated_at"`
	ArchivedAt *time.Time  `json:"archived_at,omitempty"`
}

Template is ...

type TimeStamp

type TimeStamp struct {
	Time int64 `json:"time"`
}

TimeStamp is ...

type TrustCert

type TrustCert struct {
	List      string     `json:"list"`
	Name      string     `json:"name"`
	AKI       string     `json:"aki"`
	SKI       string     `json:"ski"`
	CreatedAt *time.Time `json:"created,omitempty"`
}

TrustCert is ...

type TrustCerts

type TrustCerts struct {
	Certs []TrustCert `json:"trust_cert"`
}

TrustList is ...

type TrustedIssuer

type TrustedIssuer struct {
	Valid bool   `json:"valid"`
	List  string `json:"list"`
	Name  string `json:"name"`
}

TrustedIssuer is ...

type User

type User struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	Email     string `json:"email"`
	Password  string `json:"password"`
	CreatedAt time.Time
}

User is ...

type UserRole

type UserRole int
const (
	UserRoleViewer UserRole = iota
	UserRoleSigner
	UserRoleAdmin
)

type Verify

type Verify struct {
	Verify   bool          `json:"verify"`
	Error    string        `json:"error,omitempty"`
	Document *DocumentInfo `json:"document"`
	Signers  []*Signer     `json:"signers"`
}

Verify is ...

Jump to

Keyboard shortcuts

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