syncservice

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 10 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 Open Horizon Sync Service usage.

func NewSyncService

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

NewSyncService returns a new instance of SyncService object.

func (*SyncService) GetVersion

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

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

func (*SyncService) SendAsync

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

SendAsync sends a message to the sync service asynchronously.

func (*SyncService) Start

func (s *SyncService) Start()

Start starts the sync service.

func (*SyncService) Stop

func (s *SyncService) Stop()

Stop stops the sync service.

Jump to

Keyboard shortcuts

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