Help us shape the future of Go! Take the 2026 Go Developer Survey

sync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor interface {
	ListRemoteRepos(ctx context.Context, u *ent.User) ([]*extent.RemoteRepo, error)
	IsEntryOrg(ctx context.Context, namespace string) bool
	SyncRemoteRepo(ctx context.Context, u *ent.User, re *extent.RemoteRepo, t time.Time) error
	DeletePermsOfUserLessThanSyncedAt(ctx context.Context, u *ent.User, t time.Time) (int, error)
}

type Syncher

type Syncher struct {
	// contains filtered or unexported fields
}

Syncher syncronizes local repositories with remote repositories.

func NewSyncher

func NewSyncher(i Interactor) *Syncher

NewSyncher create a new syncher.

func (*Syncher) Sync

func (s *Syncher) Sync(c *gin.Context)

Sync synchronize local repositories with remote repositories, It create a new local repository if doesn't exist, but if exist it updates it.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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