syncservice

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 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 Open Horizon Sync Service usage.

func NewSyncService

func NewSyncService(compressor compressor.Compressor, syncServiceConfig *statussyncservice.SyncServiceConfig, log logr.Logger) (*SyncService, error)

NewSyncService returns a new instance of SyncService object.

func (*SyncService) SendAsync

func (s *SyncService) SendAsync(destinationHubName string, 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