syncservice

package
v0.0.0-...-2b28a7a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncService

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

SyncService abstracts Sync Service client.

func NewSyncService

func NewSyncService(log logr.Logger) (*SyncService, error)

NewSyncService creates a new instance of SyncService.

func (*SyncService) GetVersion

func (s *SyncService) GetVersion(id string, msgType string) string

GetVersion if the object doesn't exist or an error occurred returns an empty string, otherwise returns the version.

func (*SyncService) SendAsync

func (s *SyncService) SendAsync(id string, msgType string, version string, payload []byte)

SendAsync function sends a message to the sync service asynchronously.

func (*SyncService) Start

func (s *SyncService) Start()

Start function starts sync service.

func (*SyncService) Stop

func (s *SyncService) Stop()

Stop function stops sync service.

Jump to

Keyboard shortcuts

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