dto

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: AGPL-3.0 Imports: 5 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 PaddlePassthrough added in v0.20.0

type PaddlePassthrough struct {
	TenantID int `json:"tenant_id"`
}

type PreviewedField added in v0.20.0

type PreviewedField struct {
	Value   string `json:"value,omitempty"`
	Message string `json:"message,omitempty"`
	Error   string `json:"error,omitempty"`
}

type Props

type Props map[string]any

Props is a map of key:value

func (Props) Append added in v0.20.0

func (p Props) Append(props Props)

Append add the given props to current props

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

type WebhookPreviewResult added in v0.20.0

type WebhookPreviewResult struct {
	Url     PreviewedField `json:"url"`
	Content PreviewedField `json:"content"`
}

type WebhookTriggerResult added in v0.20.0

type WebhookTriggerResult struct {
	Webhook    *entity.Webhook `json:"webhook"`
	Props      webhook.Props   `json:"props"`
	Success    bool            `json:"success"`
	Url        string          `json:"url"`
	Content    string          `json:"content"`
	StatusCode int             `json:"status_code"`
	Message    string          `json:"message"`
	Error      string          `json:"error"`
}

Jump to

Keyboard shortcuts

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