domain

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID         int64     `json:"id"`
	Name       string    `json:"name"`
	ServerID   int64     `json:"server_id"`
	TemplateID int64     `json:"template_id"`
	ApiKey     string    `json:"api_key"`
	IsDefault  bool      `json:"is_default"`
	CreatedAt  time.Time `json:"created_at"`
	UpdatedAt  time.Time `json:"updated_at"`
}

type History

type History struct {
	ID        int64                  `json:"id"`
	ApiKey    string                 `json:"api_key"`
	To        string                 `json:"to"`
	Subject   string                 `json:"subject"`
	Cc        string                 `json:"cc"`
	Bcc       string                 `json:"bcc"`
	Content   map[string]interface{} `json:"content"`
	Status    string                 `json:"status"`
	CreatedAt time.Time              `json:"created_at"`
	UpdatedAt time.Time              `json:"update_at"`
}

type Server

type Server struct {
	ID             int64     `json:"id"`
	Name           string    `json:"name"`
	Host           string    `json:"host"`
	Port           int64     `json:"port"`
	AuthProtocol   string    `json:"auth_protocol"`
	UserName       string    `json:"username"`
	Password       string    `json:"password"`
	FromName       string    `json:"from_name"`
	FromAddress    string    `json:"from_address"`
	TLSType        TLSType   `json:"tls_type"`
	MaxConnections int64     `json:"max_connections"`
	Retries        int64     `json:"retries"`
	IdleTimeout    int64     `json:"idle_timeout"`
	WaitTimeout    int64     `json:"wait_timeout"`
	IsDefault      bool      `json:"is_default"`
	CreatedAt      time.Time `json:"created_at"`
	UpdatedAt      time.Time `json:"updated_at"`
}

func NewServer

func NewServer(name string, host string, port int64, authProtocol, username, password, fromName, fromAddress, tlsType string,
	maxConnections int64, retries int64, idleTimeout int64, waitTimeout int64,
) *Server

type TLSType

type TLSType string
const (
	TLSOff   TLSType = "OFF"
	StartTLC TLSType = "STARTTLS"
	SSL_TLS  TLSType = "TLS"
)

type Template

type Template struct {
	ID        int64     `json:"id"`
	Name      string    `json:"name"`
	Status    string    `json:"status"`
	Html      string    `json:"html"`
	IsDefault bool      `json:"is_default"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func NewTemplate

func NewTemplate(name string, status string, html string) *Template

Jump to

Keyboard shortcuts

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