service

package
v0.0.0-...-8e5e344 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	ID      int    `json:"id"`
	Content string `json:"content"`
	Status  string `json:"status"`
}

type Service

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

func NewService

func NewService(repo *repository.Repository, kafkaProducer sarama.AsyncProducer, logger *zap.Logger) *Service

func (*Service) GetStatistics

func (s *Service) GetStatistics(ctx context.Context) (*Statistics, error)

func (*Service) ProcessMessage

func (s *Service) ProcessMessage(ctx context.Context, msg *Message) error

type Statistics

type Statistics struct {
	ProcessedMessages int `json:"processed_messages"`
}

Jump to

Keyboard shortcuts

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