Documentation ¶
Index ¶
- func NewPulsar(l logger.Logger) pubsub.PubSub
- type DataKeyReader
- type ProcessMode
- type Pulsar
- func (p *Pulsar) Close() error
- func (p *Pulsar) Features() []pubsub.Feature
- func (p *Pulsar) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (p *Pulsar) Init(ctx context.Context, metadata pubsub.Metadata) error
- func (p *Pulsar) Publish(ctx context.Context, req *pubsub.PublishRequest) error
- func (p *Pulsar) Subscribe(ctx context.Context, req pubsub.SubscribeRequest, handler pubsub.Handler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) GetComponentMetadata ¶ added in v1.11.0
func (p *Pulsar) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
Click to show internal directories.
Click to hide internal directories.