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() map[string]string
- func (p *Pulsar) Init(_ 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
Click to show internal directories.
Click to hide internal directories.