pubsub

package
v0.0.0-...-a328902 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatSubscription

type NatSubscription interface {
	Subscribe() error
}

type NatSubscriptionImpl

type NatSubscriptionImpl struct {
	PubSubClient *pubsub1.PubSubClientServiceImpl
	Logger       *zap.SugaredLogger
	ClairService clairService.ClairService
}

func NewNatSubscription

func NewNatSubscription(pubSubClient *pubsub1.PubSubClientServiceImpl,
	logger *zap.SugaredLogger,
	clairService clairService.ClairService, natsSubscriptionConfig NatsSubscriptionModeConfig) (*NatSubscriptionImpl, error)

func (*NatSubscriptionImpl) Subscribe

func (impl *NatSubscriptionImpl) Subscribe() error

type NatsSubscriptionModeConfig

type NatsSubscriptionModeConfig struct {
	ToBeSubscribed bool
}

func NewNatsSubscriptionModeConfig

func NewNatsSubscriptionModeConfig() NatsSubscriptionModeConfig

type TestPublish

type TestPublish interface {
	PublishForScan(channel string, payload interface{}) error
}

type TestPublishImpl

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

func NewTestPublishImpl

func NewTestPublishImpl(pubSubClient *pubsub.PubSubClientServiceImpl,
	logger *zap.SugaredLogger) *TestPublishImpl

func (*TestPublishImpl) PublishForScan

func (impl *TestPublishImpl) PublishForScan(channel string, payload interface{}) error

Jump to

Keyboard shortcuts

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