kafkaserver

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageStore

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

func NewMessageStore added in v0.9.0

func NewMessageStore(maxSize int) *MessageStore

NewMessageStore creates a new MessageStore with the given capacity. Exported for testing.

func (*MessageStore) Add

func (*MessageStore) All

func (*MessageStore) Clear

func (m *MessageStore) Clear()

type Server

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

func New

func New(cfg *config.KafkaConfig, store *state.Store, sc *scenarios.Store, log *logger.Logger) *Server

func (*Server) GetMessageStore

func (s *Server) GetMessageStore() *MessageStore

func (*Server) GetMocks

func (s *Server) GetMocks() []config.KafkaMock

func (*Server) SetMocks

func (s *Server) SetMocks(mocks []config.KafkaMock)

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) StatusInfo

func (s *Server) StatusInfo() map[string]interface{}

Jump to

Keyboard shortcuts

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