pulsar

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPulsar

func NewPulsar(l logger.Logger) pubsub.PubSub

Types

type DataKeyReader added in v1.11.0

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

DataKeyReader is a custom implementation of KeyReader

func NewDataKeyReader added in v1.11.0

func NewDataKeyReader(publicKey, privateKey string) *DataKeyReader

NewDataKeyReader returns a new instance of DataKeyReader

func (*DataKeyReader) PrivateKey added in v1.11.0

func (d *DataKeyReader) PrivateKey(keyName string, keyMeta map[string]string) (*crypto.EncryptionKeyInfo, error)

PrivateKey read private key from string

func (*DataKeyReader) PublicKey added in v1.11.0

func (d *DataKeyReader) PublicKey(keyName string, keyMeta map[string]string) (*crypto.EncryptionKeyInfo, error)

PublicKey read public key from string

type ProcessMode added in v1.11.0

type ProcessMode string

type Pulsar

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

func (*Pulsar) Close added in v1.0.0

func (p *Pulsar) Close() error

func (*Pulsar) Features added in v1.0.0

func (p *Pulsar) Features() []pubsub.Feature

func (*Pulsar) GetComponentMetadata added in v1.11.0

func (p *Pulsar) GetComponentMetadata() map[string]string

GetComponentMetadata returns the metadata of the component.

func (*Pulsar) Init

func (p *Pulsar) Init(_ context.Context, metadata pubsub.Metadata) error

func (*Pulsar) Publish

func (p *Pulsar) Publish(ctx context.Context, req *pubsub.PublishRequest) error

func (*Pulsar) Subscribe

func (p *Pulsar) Subscribe(ctx context.Context, req pubsub.SubscribeRequest, handler pubsub.Handler) error

Jump to

Keyboard shortcuts

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