pkg

package
v0.0.0-...-4892902 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyMemstore

func EmptyMemstore(kb *sharedkafka.MessageBroker, logger hclog.Logger) io.MemoryStore

func ParseRSAPrivateKey

func ParseRSAPrivateKey(privateKeyPEM string) (*rsa.PrivateKey, error)

func ParseRSAPubKey

func ParseRSAPubKey(publicKeyPEM string) (*rsa.PublicKey, error)

Types

type DecryptedMessageProceeder

type DecryptedMessageProceeder interface {
	ProceedMessage(msgBody []byte, msgKey []byte) error
}

type KafkaSource

type KafkaSource struct {
	io.KafkaSourceImpl
	// need for using KafkaSourceImpl
	io.MemoryStore
}

func NewKafkaSource

func NewKafkaSource(kafkaCFG sharedkafka.BrokerConfig, topicName, groupID string, parentLogger hclog.Logger, proceeder DecryptedMessageProceeder) *KafkaSource

func (*KafkaSource) Run

func (k *KafkaSource) Run()

func (*KafkaSource) Stop

func (k *KafkaSource) Stop()

Jump to

Keyboard shortcuts

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