handler

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(c config.Config, wg *sync.WaitGroup, ctx context.Context) (handler *Handler, err error)

func (*Handler) FullSync added in v0.0.19

func (handler *Handler) FullSync() error

func (*Handler) HandleError

func (handler *Handler) HandleError(err error, _ *kafka.Consumer)

func (*Handler) HandleMessage

func (handler *Handler) HandleMessage(topic string, msg []byte, t time.Time) error

type Publisher

type Publisher interface {
	Publish(topic string, msg string) error
}

type TableEditMessage

type TableEditMessage struct {
	Method string   `json:"method"` // "put" or "delete"
	Tables []string `json:"tables"`
}

Jump to

Keyboard shortcuts

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