pulsar

package
v1.14.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 19 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() (metadataInfo metadata.MetadataMap)

GetComponentMetadata returns the metadata of the component.

func (*Pulsar) Init

func (p *Pulsar) Init(ctx 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