Documentation ¶
Index ¶
- type GetScriptInfo
- type ScriptRepo
- func (t ScriptRepo) ClearCache(ctx context.Context, productID string) error
- func (t ScriptRepo) GetProtoFunc(ctx context.Context, productID string, dir custom.ConvertType, handle string, ...) (custom.ConvertFunc, error)
- func (t ScriptRepo) GetTransFormFunc(ctx context.Context, productID string, direction devices.Direction) (custom.TransFormFunc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetScriptInfo ¶
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)
Click to show internal directories.
Click to hide internal directories.