kafka

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewKafka

func NewKafka(options options.ClientOptions, logger log.LogWrapper) (*Client, error)

func (*Client) Cleanup

func (c *Client) Cleanup() error

func (*Client) Marshal

func (c *Client) Marshal() ([]byte, error)

func (*Client) Session

func (c *Client) Session(suffix string) (*Session, error)

func (*Client) Unmarshal

func (c *Client) Unmarshal(data []byte) error

type Reader

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

func (*Reader) ReadEvent

func (r *Reader) ReadEvent(ctx context.Context, ev event.Event) error

type Session

type Session struct {
	ID     string
	Suffix string
	// contains filtered or unexported fields
}

func (*Session) Client

func (s *Session) Client() *Client

func (*Session) CreateTopic

func (s *Session) CreateTopic(ctx context.Context, topic string, opts ...options.TopicOption) error

func (*Session) GetReader

func (s *Session) GetReader(suffix string) *Reader

func (*Session) GetWriter

func (s *Session) GetWriter(suffix string) *Writer

type Writer

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

func (*Writer) WriteEvent

func (w *Writer) WriteEvent(ctx context.Context, ev event.Event) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳