connectivity

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectivityRepo

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

ConnectivityRepo is a repository for retrieving connectivity events.

func NewConnectivityRepo

func NewConnectivityRepo(chConn clickhouse.Conn, objGetter indexrepo.ObjectGetter, autoPiDataType, autoPiBucketName, hashDogDataType, hashDogBucketName, statusDataType, statusBucketName, cloudEventBucketName string) *ConnectivityRepo

NewConnectivityRepo creates a new instance of ConnectivityRepoImpl.

func (*ConnectivityRepo) GetAutoPiEvents

func (r *ConnectivityRepo) GetAutoPiEvents(ctx context.Context, device *models.PairedDevice, after, before time.Time, limit int) ([]cloudevent.CloudEvent[json.RawMessage], error)

GetAutoPiEvents returns the twilio events for a autopi device.

func (*ConnectivityRepo) GetHashDogEvents

func (r *ConnectivityRepo) GetHashDogEvents(ctx context.Context, device *models.PairedDevice, after, before time.Time, limit int) ([]cloudevent.CloudEvent[json.RawMessage], error)

GetHashDogEvents returns the lorawan events for a hashdog device.

func (*ConnectivityRepo) GetRuptelaStatusEvents added in v0.0.10

func (r *ConnectivityRepo) GetRuptelaStatusEvents(ctx context.Context, vehicleDID cloudevent.NFTDID, after, before time.Time, limit int) ([]cloudevent.CloudEvent[json.RawMessage], error)

GetRuptelaStatusEvents returns the status events for a vehicle.

func (*ConnectivityRepo) GetSyntheticstatusEvents added in v0.0.10

func (r *ConnectivityRepo) GetSyntheticstatusEvents(ctx context.Context, vehicleDID cloudevent.NFTDID, after, before time.Time, limit int) ([]cloudevent.CloudEvent[json.RawMessage], error)

GetSyntheticstatusEvents returns the status events for a vehicle.

Jump to

Keyboard shortcuts

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