cache

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchemaRepo

func NewSchemaRepo(t GetSchemaInfo) schema.ReadRepo

Types

type GetSchemaInfo

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

type MsgThingRepo added in v0.4.1

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

func NewMsgThingRepo added in v0.4.1

func NewMsgThingRepo(store kv.Store) *MsgThingRepo

func (MsgThingRepo) GetReq added in v0.4.1

func (m MsgThingRepo) GetReq(ctx context.Context, msgThingType string, device devices.Core, clientToken string) (*msgThing.Req, error)

func (MsgThingRepo) GetResp added in v0.4.1

func (m MsgThingRepo) GetResp(ctx context.Context, msgThingType string, device devices.Core, clientToken string) (*msgThing.Resp, error)

func (MsgThingRepo) SetReq added in v0.4.1

func (m MsgThingRepo) SetReq(ctx context.Context, msgThingType string, device devices.Core, req *msgThing.Req) error

func (MsgThingRepo) SetResp added in v0.4.1

func (m MsgThingRepo) SetResp(ctx context.Context, msgThingType string, device devices.Core, resp *msgThing.Resp) 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