services

package
v0.0.0-...-506fe41 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TabletRepo

type TabletRepo interface {
	GetAll(ctx context.Context) ([]*models.Tablet, error)
	Insert(ctx context.Context, ts *models.Tablet) error
}

type TabletService

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

func NewTabletService

func NewTabletService(repo TabletRepo, kafkaUrl string, kafkaCfg *sarama.Config) (*TabletService, error)

func (*TabletService) Close

func (ts *TabletService) Close()

func (*TabletService) Create

func (ts *TabletService) Create(ctx context.Context, createDTO *dto.CreateTabletDTO) (*models.Tablet, error)

Jump to

Keyboard shortcuts

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