data

package
v0.1.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(stor ports.DataStorage, bucketService *bucket.Service, ps ports.PointService, _event *event.Subscriber) *Service

func (*Service) Clear

func (s *Service) Clear()

func (*Service) Close added in v0.1.13

func (s *Service) Close() error

func (*Service) Count added in v0.1.13

func (s *Service) Count(ctx context.Context, bucketId uint64) (int64, error)

func (*Service) CountAll added in v0.1.13

func (s *Service) CountAll(ctx context.Context) (map[uint64]int64, error)

func (*Service) Find

func (s *Service) Find(ctx context.Context, data *dto.DataSelect) ([]domain.Data, error)

func (*Service) Shutdown added in v0.1.13

func (s *Service) Shutdown()

func (*Service) Subscribe added in v0.1.13

func (s *Service) Subscribe() (ch <-chan domain.Data, id uint64)

func (*Service) Unsubscribe added in v0.1.13

func (s *Service) Unsubscribe(id uint64)

func (*Service) Write

func (s *Service) Write(ctx context.Context, data *domain.Data) error

Jump to

Keyboard shortcuts

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