dto

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: AGPL-3.0 Imports: 3 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	User     string
	Password string
}

type Blob

type Blob struct {
	Size        int64
	Content     []byte
	ContentType string
}

type ImageUpload added in v0.19.0

type ImageUpload struct {
	BlobKey string           `json:"bkey"`
	Upload  *ImageUploadData `json:"upload"`
	Remove  bool             `json:"remove"`
}

ImageUpload is the input model used to upload/remove an image

type ImageUploadData added in v0.19.0

type ImageUploadData struct {
	FileName    string `json:"fileName"`
	ContentType string `json:"contentType"`
	Content     []byte `json:"content"`
}

ImageUploadData is the input model used to upload a new logo

type OAuthProviderOption

type OAuthProviderOption struct {
	Provider         string `json:"provider"`
	DisplayName      string `json:"displayName"`
	ClientID         string `json:"clientID"`
	URL              string `json:"url"`
	CallbackURL      string `json:"callbackURL"`
	LogoBlobKey      string `json:"logoBlobKey"`
	IsCustomProvider bool   `json:"isCustomProvider"`
	IsEnabled        bool   `json:"isEnabled"`
}

OAuthProviderOption represents an OAuth provider that can be used to authenticate

type OAuthUserProfile

type OAuthUserProfile struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

OAuthUserProfile represents an OAuth user profile

type Props

type Props map[string]interface{}

Props is a map of key:value

func (Props) Merge

func (p Props) Merge(props Props) Props

Merge current props with given props

func (Props) Value

func (p Props) Value() (driver.Value, error)

Value converts props into a database value

type Recipient

type Recipient struct {
	Name    string
	Address string
	Props   Props
}

Recipient contains details of who is receiving the email

func NewRecipient

func NewRecipient(name, address string, props Props) Recipient

NewRecipient creates a new Recipient

func (Recipient) String

func (r Recipient) String() string

Strings returns the RFC format to send emails via SMTP

Jump to

Keyboard shortcuts

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