dto

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

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 GitHubRepositoriesOption

type GitHubRepositoriesOption struct {
	ID    int    `json:"id"`
	Repo  string `json:"repo"`
	Owner string `json:"owner"`
}

type GitHubStatusOption

type GitHubStatusOption struct {
	IsGitHubEnabled bool `json:"isGitHubEnabled"`
}

type ImageUpload

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

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

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

type PreviewedField

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

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

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

type WebhookTriggerResult

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