syncd: github.com/dreamans/syncd Index | Files | Directories

package syncd

import "github.com/dreamans/syncd"

Index

Package Files

config.go db.go sendmail.go syncd.go

Constants

const (
    Version = "v2.0.0"
)

Variables

var (
    App *syncd
)

type Config Uses

type Config struct {
    Serve *ServeConfig
    Db    *DbConfig
    Log   *LogConfig
    Syncd *SyncdConfig
    Mail  *MailConfig
}

type DB Uses

type DB struct {
    DbHandler *gorm.DB
    // contains filtered or unexported fields
}

func NewDatabase Uses

func NewDatabase(cfg *DbConfig) *DB

func (*DB) Close Uses

func (db *DB) Close()

func (*DB) Open Uses

func (db *DB) Open() error

type DbConfig Uses

type DbConfig struct {
    Unix            string
    Host            string
    Port            int
    Charset         string
    User            string
    Pass            string
    DbName          string
    TablePrefix     string
    MaxIdleConns    int
    MaxOpenConns    int
    ConnMaxLifeTime int
}

type LogConfig Uses

type LogConfig struct {
    Path string
}

type MailConfig Uses

type MailConfig struct {
    Enable int
    Smtp   string
    Port   int
    User   string
    Pass   string
}

type SendMail Uses

type SendMail struct {
    Enable int
    Smtp   string
    Port   int
    User   string
    Pass   string
    // contains filtered or unexported fields
}

func NewSendMail Uses

func NewSendMail(mail *SendMail) *SendMail

func (*SendMail) AsyncSend Uses

func (mail *SendMail) AsyncSend(msg *SendMailMessage)

func (*SendMail) Send Uses

func (mail *SendMail) Send(msg *SendMailMessage)

type SendMailMessage Uses

type SendMailMessage struct {
    From    string
    To      []string
    Cc      []string
    Subject string
    Body    string
    Attach  string
    // contains filtered or unexported fields
}

func (*SendMailMessage) NewMessage Uses

func (m *SendMailMessage) NewMessage() *gomail.Message

type ServeConfig Uses

type ServeConfig struct {
    Addr          string
    FeServeEnable int
    ReadTimeout   int
    WriteTimeout  int
    IdleTimeout   int
}

type SyncdConfig Uses

type SyncdConfig struct {
    LocalSpace  string
    RemoteSpace string
    Cipher      string
    AppHost     string
}

Directories

PathSynopsis
build
deploy
model
module/deploy
module/project
module/server
module/user
render
router/common
router/deploy
router/middleware
router/project
router/route
router/route/api
router/server
router/user
syncd
util/command
util/goaes
util/gofile
util/gois
util/golog
util/gopath
util/goslice
util/gostring

Package syncd imports 13 packages (graph) and is imported by 6 packages. Updated 2019-09-04. Refresh now. Tools for package owners.