cache

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceMsg added in v0.5.1

func GetDeviceMsg[reqType any](ctx context.Context, store kv.Store, msgType string, handle string, Type string, device devices.Core, clientToken string) (*reqType, error)

func NewSchemaRepo

func NewSchemaRepo(t GetSchemaInfo) schema.ReadRepo

func SetDeviceMsg added in v0.5.1

func SetDeviceMsg(ctx context.Context, store kv.Store, msgType string, req *deviceMsg.PublishMsg, clientToken string) error

Types

type GetSchemaInfo

type GetSchemaInfo func(ctx context.Context, productID string) (info *schema.Model, err error)

type SchemaRepo

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

func (SchemaRepo) ClearCache

func (t SchemaRepo) ClearCache(ctx context.Context, productID string) error

func (SchemaRepo) GetSchemaInfo

func (t SchemaRepo) GetSchemaInfo(ctx context.Context, productID string) (*schema.Model, error)

func (SchemaRepo) GetSchemaModel

func (t SchemaRepo) GetSchemaModel(ctx context.Context, productID string) (*schema.Model, error)

Jump to

Keyboard shortcuts

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