cache

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: AGPL-3.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 GetScriptInfo

type GetScriptInfo func(ctx context.Context, productID string) (info *custom.Info, err error)

type ScriptRepo

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

func NewScriptRepo

func NewScriptRepo(t GetScriptInfo) *ScriptRepo

func (ScriptRepo) ClearCache

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

func (ScriptRepo) GetProtoFunc

func (t ScriptRepo) GetProtoFunc(ctx context.Context, productID string, dir custom.ConvertType,
	handle string,
	Type string) (custom.ConvertFunc, error)

自定义协议转iTHings协议

func (ScriptRepo) GetTransFormFunc

func (t ScriptRepo) GetTransFormFunc(ctx context.Context, productID string, direction devices.Direction) (custom.TransFormFunc, error)

Jump to

Keyboard shortcuts

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