sync

package
v0.0.0-...-ceecb0f Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitService = new(gitService)

Functions

func DumpConfig

func DumpConfig()

Types

type Config

type Config struct {
	Ip     string
	Port   int
	Folder string
	Repos  []Repo
}

func GetConfig

func GetConfig() *Config

type GitRepo

type GitRepo struct {
}

type Repo

type Repo struct {
	Name   string // 名称
	From   string // 来源仓库
	Target string // 目的仓库
	Branch string // 分支名
	Cron   string // 间隔
	Enable bool   // 是否启用
}

type SyncJob

type SyncJob struct {
	Repo Repo
}

func NewSyncJob

func NewSyncJob(repo Repo) SyncJob

func (SyncJob) Run

func (job SyncJob) Run()

Jump to

Keyboard shortcuts

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