synclockimpl

package
v0.0.0-...-f4a3ab8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorConcurrentUpdating

func NewErrorConcurrentUpdating(err error) errorConcurrentUpdating

func NewErrorDataNotExists

func NewErrorDataNotExists(err error) errorDataNotExists

func NewErrorDuplicateCreating

func NewErrorDuplicateCreating(err error) errorDuplicateCreating

func NewRepoSyncLock

func NewRepoSyncLock(mapper SyncLockMapper) synclock.RepoSyncLock

Types

type RepoSyncLockDO

type RepoSyncLockDO struct {
	Id         string
	Owner      string
	RepoId     string
	Status     string
	RepoType   string
	LastCommit string
	Version    int
}

type SyncLockMapper

type SyncLockMapper interface {
	Insert(*RepoSyncLockDO) (string, error)
	Update(*RepoSyncLockDO) error
	Get(string, string) (RepoSyncLockDO, error)
}

Jump to

Keyboard shortcuts

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