synthetic

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package synthetic contains the repository for synthetic devices.

Index

Constants

View Source
const TokenPrefix = "S"

TokenPrefix is the prefix for a global token id for synthetic devices.

Variables

This section is empty.

Functions

func ToAPI added in v0.1.20

ToAPI converts a synthetic device from the database to a GraphQL API model.

Types

type Repository

type Repository struct {
	*base.Repository
}

Repository is the repository for synthetic devices.

func (*Repository) GetSyntheticDevice added in v0.1.20

func (r *Repository) GetSyntheticDevice(ctx context.Context, by gmodel.SyntheticDeviceBy) (*gmodel.SyntheticDevice, error)

GetSyntheticDevice Device retrieves a synthetic device by either its address or tokenID from the database.

func (*Repository) GetSyntheticDevices added in v0.1.20

func (r *Repository) GetSyntheticDevices(ctx context.Context, first *int, last *int, after *string, before *string, filterBy *gmodel.SyntheticDevicesFilter) (*gmodel.SyntheticDeviceConnection, error)

GetSyntheticDevices retrieves a list of synthetic devices from the database.

Jump to

Keyboard shortcuts

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