dto

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID         string    `json:"id"`
	Address    string    `json:"address"`
	Quota      int       `json:"quota"`
	Used       int       `json:"used"`
	IsDisabled bool      `json:"isDisabled"`
	IsDeleted  bool      `json:"isDeleted"`
	CreatedAt  time.Time `json:"createdAt"`
	UpdatedAt  time.Time `json:"updatedAt"`
}

type AccountWrite

type AccountWrite struct {
	Address  string `json:"address"`
	Password string `json:"password"`
}

type Credentials

type Credentials struct {
	Address  string `json:"address"`
	Password string `json:"password"`
}

type Domain

type Domain struct {
	ID        string    `json:"id"`
	Domain    string    `json:"domain"`
	IsActive  bool      `json:"isActive"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type EmailAddress

type EmailAddress struct {
	Address string `json:"address"`
	Name    string `json:"name"`
}

type Message

type Message struct {
	Cc            []EmailAddress      `json:"cc"`
	Bcc           []EmailAddress      `json:"bcc"`
	Flagged       bool                `json:"flagged"`
	Verifications []string            `json:"verifications"`
	Retention     bool                `json:"retention"`
	RetentionDate time.Time           `json:"retentionDate"`
	Text          string              `json:"text"`
	HTML          []string            `json:"html"`
	Attachments   []MessageAttachment `json:"attachments"`
	// contains filtered or unexported fields
}

type MessageAttachment

type MessageAttachment struct {
	ID               string `json:"id"`
	Filename         string `json:"filename"`
	ContentType      string `json:"contentType"`
	Disposition      string `json:"disposition"`
	TransferEncoding string `json:"transferEncoding"`
	Related          bool   `json:"related"`
	Size             int    `json:"size"`
	DownloadURL      string `json:"downloadUrl"`
}

type MessageWrite

type MessageWrite struct {
	Seen bool `json:"seen"`
}

type Messages

type Messages []MessagesItem

type MessagesItem

type MessagesItem struct {
	Intro string `json:"intro"`
	// contains filtered or unexported fields
}

type Release added in v0.2.0

type Release struct {
	ID          int       `json:"id"`
	HTMLURL     string    `json:"html_url"`
	Name        string    `json:"name"`
	TagName     string    `json:"tag_name"`
	CreatedAt   time.Time `json:"created_at"`
	PublishedAt time.Time `json:"published_at"`
}

The Release structure contains only the necessary keys.

type Source

type Source struct {
	ID          string `json:"id"`
	DownloadURL string `json:"downloadUrl"`
	Data        string `json:"data"`
}

type Token

type Token struct {
	ID    string `json:"id"`
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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