subscriber

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

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArangoClient

func NewArangoClient(sub chan message.SubscribeWrapper, pub chan string, dbConfig config.DatabaseInfo, logger interfaces.Logger) (arangoClient, error)

Types

type ApplicationConfig

type ApplicationConfig struct {
	Database config.DatabaseInfo   `json:"database,omitempty"`
	Sdk      sdkConfig.SdkInfo     `json:"sdk,omitempty"`
	Stream   config.PubSubInfo     `json:"stream,omitempty"`
	Logging  sdkConfig.LoggingInfo `json:"logging,omitempty"`
	Key      string                `json:"preSharedKey,omitempty"` // Key is for IOTA support, shared key. Needs to be moved into SDK IotaStreamConfig
}

func (ApplicationConfig) AsString

func (a ApplicationConfig) AsString() string

type Publisher

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

Publisher is used to notify downstream applications that a given data item is ready for scoring.

func NewPublisher

func NewPublisher(endpoint SdkConfig.StreamInfo, chKeys chan string, logger SdkInterfaces.Logger) (Publisher, error)

func (*Publisher) BootstrapHandler

func (s *Publisher) BootstrapHandler(ctx context.Context, wg *sync.WaitGroup) bool

type Subscriber

type Subscriber interface {
	Subscribe(ctx context.Context, wg *sync.WaitGroup) bool
	Close()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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