sync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRPCServerRouterInfo

func SetRPCServerRouterInfo(endpoint string, newManager iface.ManagerServer)

Types

type Consumer

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

func GetConsumerHandler

func GetConsumerHandler() *Consumer

func (*Consumer) Cleanup

func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error

func (*Consumer) ConsumeClaim

func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*Consumer) Setup

func (consumer *Consumer) Setup(sarama.ConsumerGroupSession) error

type Option

type Option func(s *Service) error

func WithInitialSyncComplete

func WithInitialSyncComplete(c chan struct{}) Option

func WithKafka

func WithKafka(kafka kafka.Kafka) Option

type Service

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

func NewService

func NewService(ctx context.Context, opts ...Option) *Service

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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