storage

package
v0.0.0-...-3248bb2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMonitoringFlowStorage

type AddMonitoringFlowStorage interface {
	Set(ctx context.Context, data dto.AddMonitoringStep) error
	Get(ctx context.Context, chatID int64) (*dto.AddMonitoringStep, error)
	Remove(ctx context.Context, chatID int64) error
}

type MonitoringStorage

type MonitoringStorage interface {
	Save(ctx context.Context, data dto.MonitoringData) error
	Remove(ctx context.Context, chatID int64, vehicleName string) error
	GetAll(ctx context.Context) ([]dto.MonitoringData, error)
	GetAllByVehicleAndCountGte(ctx context.Context, vehicleName string, count int) ([]dto.MonitoringData, error)
}

type RuntimeAddMonitoringFlowStorage

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

func NewRuntimeAddMonitoringFlowStorage

func NewRuntimeAddMonitoringFlowStorage() *RuntimeAddMonitoringFlowStorage

func (*RuntimeAddMonitoringFlowStorage) Get

func (*RuntimeAddMonitoringFlowStorage) Remove

func (*RuntimeAddMonitoringFlowStorage) Set

type RuntimeMonitoringStorage

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

func NewRuntimeMonitoringStorage

func NewRuntimeMonitoringStorage() *RuntimeMonitoringStorage

func (*RuntimeMonitoringStorage) GetAll

func (*RuntimeMonitoringStorage) GetAllByVehicleAndCountGte

func (s *RuntimeMonitoringStorage) GetAllByVehicleAndCountGte(_ context.Context, vehicleName string, count int) ([]dto.MonitoringData, error)

func (*RuntimeMonitoringStorage) Remove

func (s *RuntimeMonitoringStorage) Remove(_ context.Context, chatID int64, vehicleName string) error

func (*RuntimeMonitoringStorage) Save

type SQLiteMonitoringStorage

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

func NewSQLiteMonitoringStorage

func NewSQLiteMonitoringStorage(dbPath string) (*SQLiteMonitoringStorage, error)

func (*SQLiteMonitoringStorage) GetAll

func (*SQLiteMonitoringStorage) GetAllByVehicleAndCountGte

func (s *SQLiteMonitoringStorage) GetAllByVehicleAndCountGte(ctx context.Context, vehicleName string, count int) ([]dto.MonitoringData, error)

func (*SQLiteMonitoringStorage) Remove

func (s *SQLiteMonitoringStorage) Remove(ctx context.Context, chatID int64, vehicleName string) error

func (*SQLiteMonitoringStorage) Save

Jump to

Keyboard shortcuts

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