syncd

package module
v0.0.0-...-71876dc Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 13 Imported by: 0

README

Syncd - 自动化部署工具

Syncd是一款开源的代码部署工具,它具有简单、高效、易用等特点,可以提高团队的工作效率。

码云GVP项目

文档

查看文档

特性

  • Go语言开发,编译简单、运行高效
  • Web界面访问,交互友好
  • 权限模型灵活自由
  • 支持自定义构建
  • 支持Git仓库
  • 支持分支、Tag上线
  • 部署Hook支持,可扩展性强
  • 完善的上线工作流
  • 邮件通知机制

项目地址

Github: https://github.com/dreamans/syncd

Gitee: https://gitee.com/dreamans/syncd

获取帮助

Syncd使用交流QQ群①: 725302833

捐赠

Syncd的发展离不开您的支持,前往捐赠

LICENSE

本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 LICENSE 文件中。

Documentation

Index

Constants

View Source
const (
	Version = "v2.0.0"
)

Variables

View Source
var (
	App *syncd
)

Functions

This section is empty.

Types

type Config

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

type DB

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

func NewDatabase

func NewDatabase(cfg *DbConfig) *DB

func (*DB) Close

func (db *DB) Close()

func (*DB) Open

func (db *DB) Open() error

type DbConfig

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

type LogConfig struct {
	Path string
}

type MailConfig

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

type SendMail

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

func NewSendMail

func NewSendMail(mail *SendMail) *SendMail

func (*SendMail) AsyncSend

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

func (*SendMail) Send

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

type SendMailMessage

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

func (*SendMailMessage) NewMessage

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

type ServeConfig

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

type SyncdConfig

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

Jump to

Keyboard shortcuts

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