sync

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncRepository

type SyncRepository interface{}

type SyncService added in v0.3.1

type SyncService struct {
	Repository           SyncRepository
	AtCpiService         *atcpi.AtCpiService
	DeIseService         *deise.DeIseService
	ItBecService         *itbec.ItBecService
	NlConService         *nlcon.NlConService
	CredentialRepository credential.CredentialRepository
	PartyRepository      party.PartyRepository
	VersionResolver      *version.VersionResolver
	// contains filtered or unexported fields
}

func NewService added in v0.3.1

func NewService(repositoryService *db.RepositoryService, ocpiService *transportation.OcpiService) *SyncService

func (*SyncService) AddHandler added in v0.3.1

func (r *SyncService) AddHandler(version, identifier string, syncer Syncer)

func (*SyncService) StartService added in v0.3.1

func (r *SyncService) StartService(shutdownCtx context.Context, waitGroup *sync.WaitGroup)

func (*SyncService) SynchronizeCredential added in v0.3.1

func (r *SyncService) SynchronizeCredential(credential db.Credential, fullSync, withTariffs bool, lastUpdated *time.Time, countryCode *string, partyID *string)

type Syncer added in v0.3.1

type Syncer interface {
	SyncByIdentifier(ctx context.Context, credential db.Credential, fullSync bool, lastUpdated *time.Time, countryCode *string, partyID *string)
}

type SyncerHandler added in v0.3.1

type SyncerHandler struct {
	Version    string
	Identifier string
	Syncer     Syncer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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