Documentation
¶
Index ¶
- type ControllerArea
- func (c ControllerArea) AddArea(ctx context.Context, req *api.NewAreaRequest) (*api.Area, error)
- func (c ControllerArea) DeleteArea(ctx context.Context, req *api.DeleteAreaRequest) (*emptypb.Empty, error)
- func (c ControllerArea) GetAreaById(ctx context.Context, req *api.GetAreaRequest) (*api.Area, error)
- func (c ControllerArea) GetAreaList(ctx context.Context, req *api.PaginationRequest) (*api.GetAreaListResult, error)
- func (c ControllerArea) SearchArea(ctx context.Context, req *api.SearchRequest) (*api.SearchAreaResult, error)
- func (c ControllerArea) UpdateArea(ctx context.Context, req *api.UpdateAreaRequest) (*api.Area, error)
- type ControllerAuth
- func (a ControllerAuth) AccessList(ctx context.Context, _ *emptypb.Empty) (*api.AccessListResponse, error)
- func (a ControllerAuth) Signin(ctx context.Context, _ *emptypb.Empty) (resp *api.SigninResponse, err error)
- func (a ControllerAuth) Signout(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)
- type ControllerAutomation
- func (c ControllerAutomation) AddTask(ctx context.Context, req *api.NewTaskRequest) (*api.Task, error)
- func (c ControllerAutomation) DeleteTask(ctx context.Context, req *api.DeleteTaskRequest) (*emptypb.Empty, error)
- func (c ControllerAutomation) DisableTask(ctx context.Context, req *api.DisableTaskRequest) (*emptypb.Empty, error)
- func (c ControllerAutomation) EnableTask(ctx context.Context, req *api.EnableTaskRequest) (*emptypb.Empty, error)
- func (c ControllerAutomation) GetTask(ctx context.Context, req *api.GetTaskRequest) (*api.Task, error)
- func (c ControllerAutomation) GetTaskList(ctx context.Context, req *api.PaginationRequest) (*api.GetTaskListResult, error)
- func (c ControllerAutomation) UpdateTask(ctx context.Context, req *api.UpdateTaskRequest) (*api.Task, error)
- type ControllerCommon
- type ControllerDeveloperTools
- func (c ControllerDeveloperTools) EntitySetState(ctx context.Context, req *api.EntityRequest) (*emptypb.Empty, error)
- func (c ControllerDeveloperTools) ReloadEntity(ctx context.Context, req *api.ReloadRequest) (*emptypb.Empty, error)
- func (c ControllerDeveloperTools) TaskCallAction(ctx context.Context, req *api.AutomationRequest) (*emptypb.Empty, error)
- func (c ControllerDeveloperTools) TaskCallTrigger(ctx context.Context, req *api.AutomationRequest) (*emptypb.Empty, error)
- type ControllerEntity
- func (c ControllerEntity) AddEntity(ctx context.Context, req *api.NewEntityRequest) (*api.Entity, error)
- func (c ControllerEntity) DeleteEntity(ctx context.Context, req *api.DeleteEntityRequest) (*emptypb.Empty, error)
- func (c ControllerEntity) GetEntity(ctx context.Context, req *api.GetEntityRequest) (*api.Entity, error)
- func (c ControllerEntity) GetEntityList(ctx context.Context, req *api.PaginationRequest) (*api.GetEntityListResult, error)
- func (c ControllerEntity) SearchEntity(ctx context.Context, req *api.SearchRequest) (*api.SearchEntityResult, error)
- func (c ControllerEntity) UpdateEntity(ctx context.Context, req *api.UpdateEntityRequest) (*api.Entity, error)
- type ControllerImage
- func (c ControllerImage) AddImage(ctx context.Context, req *api.NewImageRequest) (*api.Image, error)
- func (c ControllerImage) DeleteImageById(ctx context.Context, req *api.DeleteImageRequest) (*emptypb.Empty, error)
- func (c ControllerImage) GetImageById(ctx context.Context, req *api.GetImageRequest) (*api.Image, error)
- func (c ControllerImage) GetImageFilterList(ctx context.Context, empty *emptypb.Empty) (*api.GetImageFilterListResult, error)
- func (c ControllerImage) GetImageList(ctx context.Context, req *api.PaginationRequest) (*api.GetImageListResult, error)
- func (c ControllerImage) GetImageListByDate(ctx context.Context, request *api.GetImageListByDateRequest) (*api.GetImageListByDateResult, error)
- func (c ControllerImage) MuxUploadImage() func(w http.ResponseWriter, r *http.Request)
- func (c ControllerImage) UpdateImageById(ctx context.Context, req *api.UpdateImageRequest) (*api.Image, error)
- func (c ControllerImage) UploadImage(ctx context.Context, req *api.UploadImageRequest) (*api.Image, error)
- type ControllerInteract
- type ControllerLogs
- type ControllerPlugin
- func (c ControllerPlugin) DisablePlugin(ctx context.Context, req *api.DisablePluginRequest) (*api.DisablePluginResult, error)
- func (c ControllerPlugin) EnablePlugin(ctx context.Context, req *api.EnablePluginRequest) (*api.EnablePluginResult, error)
- func (c ControllerPlugin) GetPluginList(ctx context.Context, req *api.PaginationRequest) (*api.GetPluginListResult, error)
- func (c ControllerPlugin) GetPluginOptions(ctx context.Context, req *api.GetPluginOptionsRequest) (*api.GetPluginOptionsResult, error)
- func (c ControllerPlugin) SearchPlugin(ctx context.Context, req *api.SearchRequest) (*api.SearchPluginResult, error)
- type ControllerRole
- func (c ControllerRole) AddRole(ctx context.Context, req *api.NewRoleRequest) (*api.Role, error)
- func (c ControllerRole) DeleteRoleByName(ctx context.Context, req *api.DeleteRoleRequest) (*emptypb.Empty, error)
- func (c ControllerRole) GetRoleAccessList(ctx context.Context, req *api.GetRoleAccessListRequest) (*api.RoleAccessListResult, error)
- func (c ControllerRole) GetRoleByName(ctx context.Context, req *api.GetRoleRequest) (*api.Role, error)
- func (c ControllerRole) GetRoleList(ctx context.Context, req *api.PaginationRequest) (*api.GetRoleListResult, error)
- func (c ControllerRole) SearchRoleByName(ctx context.Context, req *api.SearchRequest) (*api.SearchRoleListResult, error)
- func (c ControllerRole) UpdateRoleAccessList(ctx context.Context, req *api.UpdateRoleAccessListRequest) (*api.RoleAccessListResult, error)
- func (c ControllerRole) UpdateRoleByName(ctx context.Context, req *api.UpdateRoleRequest) (*api.Role, error)
- type ControllerScript
- func (c ControllerScript) AddScript(ctx context.Context, req *api.NewScriptRequest) (*api.Script, error)
- func (c ControllerScript) CopyScriptById(ctx context.Context, req *api.CopyScriptRequest) (*api.Script, error)
- func (c ControllerScript) DeleteScriptById(ctx context.Context, req *api.DeleteScriptRequest) (*emptypb.Empty, error)
- func (c ControllerScript) ExecScriptById(ctx context.Context, req *api.ExecScriptRequest) (*api.ExecScriptResult, error)
- func (c ControllerScript) ExecSrcScriptById(ctx context.Context, req *api.ExecSrcScriptRequest) (*api.ExecScriptResult, error)
- func (c ControllerScript) GetScriptById(ctx context.Context, req *api.GetScriptRequest) (*api.Script, error)
- func (c ControllerScript) GetScriptList(ctx context.Context, req *api.PaginationRequest) (*api.GetScriptListResult, error)
- func (c ControllerScript) SearchScript(ctx context.Context, req *api.SearchRequest) (*api.SearchScriptListResult, error)
- func (c ControllerScript) UpdateScriptById(ctx context.Context, req *api.UpdateScriptRequest) (*api.Script, error)
- type ControllerStream
- type ControllerUser
- func (c ControllerUser) AddUser(ctx context.Context, req *api.NewtUserRequest) (userFull *api.UserFull, err error)
- func (c ControllerUser) DeleteUserById(ctx context.Context, req *api.DeleteUserRequest) (*emptypb.Empty, error)
- func (c ControllerUser) GetUserById(ctx context.Context, req *api.GetUserByIdRequest) (*api.UserFull, error)
- func (c ControllerUser) GetUserList(ctx context.Context, req *api.PaginationRequest) (*api.GetUserListResult, error)
- func (c ControllerUser) UpdateUserById(ctx context.Context, req *api.UpdateUserRequest) (*api.UserFull, error)
- type ControllerZigbee2mqtt
- func (c ControllerZigbee2mqtt) AddZigbee2MqttBridge(ctx context.Context, req *api.NewZigbee2MqttRequest) (*api.Zigbee2Mqtt, error)
- func (c ControllerZigbee2mqtt) DeleteBridgeById(ctx context.Context, req *api.DeleteBridgeRequest) (*emptypb.Empty, error)
- func (c ControllerZigbee2mqtt) DeviceBan(ctx context.Context, req *api.DeviceBanRequest) (*emptypb.Empty, error)
- func (c ControllerZigbee2mqtt) DeviceList(ctx context.Context, req *api.DeviceListRequest) (*api.DeviceListResult, error)
- func (c ControllerZigbee2mqtt) DeviceRename(ctx context.Context, req *api.DeviceRenameRequest) (*emptypb.Empty, error)
- func (c ControllerZigbee2mqtt) DeviceWhitelist(ctx context.Context, req *api.DeviceWhitelistRequest) (*emptypb.Empty, error)
- func (c ControllerZigbee2mqtt) GetBridgeList(ctx context.Context, req *api.PaginationRequest) (*api.GetBridgeListResult, error)
- func (c ControllerZigbee2mqtt) GetZigbee2MqttBridge(ctx context.Context, req *api.GetBridgeRequest) (*api.Zigbee2Mqtt, error)
- func (c ControllerZigbee2mqtt) Networkmap(ctx context.Context, req *api.NetworkmapRequest) (*api.NetworkmapResponse, error)
- func (c ControllerZigbee2mqtt) ResetBridgeById(ctx context.Context, req *api.ResetBridgeRequest) (*emptypb.Empty, error)
- func (c ControllerZigbee2mqtt) SearchDevice(ctx context.Context, req *api.SearchRequest) (*api.SearchDeviceResult, error)
- func (c ControllerZigbee2mqtt) UpdateBridgeById(ctx context.Context, req *api.UpdateBridgeRequest) (*api.Zigbee2Mqtt, error)
- func (c ControllerZigbee2mqtt) UpdateNetworkmap(ctx context.Context, req *api.NetworkmapRequest) (*emptypb.Empty, error)
- type Controllers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerArea ¶ added in v0.5.2
type ControllerArea struct {
*ControllerCommon
}
ControllerArea ...
func NewControllerArea ¶ added in v0.5.2
func NewControllerArea(common *ControllerCommon) ControllerArea
NewControllerArea ...
func (ControllerArea) AddArea ¶ added in v0.5.2
func (c ControllerArea) AddArea(ctx context.Context, req *api.NewAreaRequest) (*api.Area, error)
AddArea ...
func (ControllerArea) DeleteArea ¶ added in v0.5.2
func (c ControllerArea) DeleteArea(ctx context.Context, req *api.DeleteAreaRequest) (*emptypb.Empty, error)
DeleteArea ...
func (ControllerArea) GetAreaById ¶ added in v0.5.2
func (c ControllerArea) GetAreaById(ctx context.Context, req *api.GetAreaRequest) (*api.Area, error)
GetAreaById ...
func (ControllerArea) GetAreaList ¶ added in v0.5.2
func (c ControllerArea) GetAreaList(ctx context.Context, req *api.PaginationRequest) (*api.GetAreaListResult, error)
GetAreaList ...
func (ControllerArea) SearchArea ¶ added in v0.5.2
func (c ControllerArea) SearchArea(ctx context.Context, req *api.SearchRequest) (*api.SearchAreaResult, error)
SearchArea ...
func (ControllerArea) UpdateArea ¶ added in v0.5.2
func (c ControllerArea) UpdateArea(ctx context.Context, req *api.UpdateAreaRequest) (*api.Area, error)
UpdateArea ...
type ControllerAuth ¶ added in v0.5.0
type ControllerAuth struct {
*ControllerCommon
}
ControllerAuth ...
func NewControllerAuth ¶ added in v0.5.0
func NewControllerAuth(common *ControllerCommon) ControllerAuth
NewControllerAuth ...
func (ControllerAuth) AccessList ¶ added in v0.5.0
func (a ControllerAuth) AccessList(ctx context.Context, _ *emptypb.Empty) (*api.AccessListResponse, error)
AccessList ...
func (ControllerAuth) Signin ¶ added in v0.5.0
func (a ControllerAuth) Signin(ctx context.Context, _ *emptypb.Empty) (resp *api.SigninResponse, err error)
Signin ...
type ControllerAutomation ¶ added in v0.5.2
type ControllerAutomation struct {
*ControllerCommon
}
ControllerAutomation ...
func NewControllerAutomation ¶ added in v0.5.2
func NewControllerAutomation(common *ControllerCommon) ControllerAutomation
NewControllerAutomation ...
func (ControllerAutomation) AddTask ¶ added in v0.5.2
func (c ControllerAutomation) AddTask(ctx context.Context, req *api.NewTaskRequest) (*api.Task, error)
AddTask ...
func (ControllerAutomation) DeleteTask ¶ added in v0.5.2
func (c ControllerAutomation) DeleteTask(ctx context.Context, req *api.DeleteTaskRequest) (*emptypb.Empty, error)
DeleteTask ...
func (ControllerAutomation) DisableTask ¶ added in v0.5.3
func (c ControllerAutomation) DisableTask(ctx context.Context, req *api.DisableTaskRequest) (*emptypb.Empty, error)
DisableTask ...
func (ControllerAutomation) EnableTask ¶ added in v0.5.3
func (c ControllerAutomation) EnableTask(ctx context.Context, req *api.EnableTaskRequest) (*emptypb.Empty, error)
EnableTask ...
func (ControllerAutomation) GetTask ¶ added in v0.5.2
func (c ControllerAutomation) GetTask(ctx context.Context, req *api.GetTaskRequest) (*api.Task, error)
GetTask ...
func (ControllerAutomation) GetTaskList ¶ added in v0.5.2
func (c ControllerAutomation) GetTaskList(ctx context.Context, req *api.PaginationRequest) (*api.GetTaskListResult, error)
GetTaskList ...
func (ControllerAutomation) UpdateTask ¶ added in v0.5.2
func (c ControllerAutomation) UpdateTask(ctx context.Context, req *api.UpdateTaskRequest) (*api.Task, error)
UpdateTask ...
type ControllerCommon ¶ added in v0.5.0
type ControllerCommon struct {
// contains filtered or unexported fields
}
ControllerCommon ...
func NewControllerCommon ¶ added in v0.5.0
func NewControllerCommon(adaptors *adaptors.Adaptors, accessList access_list.AccessListService, endpoint *endpoint.Endpoint, stream *stream.Stream) *ControllerCommon
NewControllerCommon ...
func (ControllerCommon) Pagination ¶ added in v0.5.1
func (c ControllerCommon) Pagination(page, limit uint64, sort string) (pagination common.PageParams)
Pagination ...
func (ControllerCommon) Search ¶ added in v0.5.2
func (c ControllerCommon) Search(query string, limit, offset int64) (search common.SearchParams)
Search ...
type ControllerDeveloperTools ¶ added in v0.5.3
type ControllerDeveloperTools struct {
*ControllerCommon
}
ControllerDeveloperTools ...
func NewControllerDeveloperTools ¶ added in v0.5.3
func NewControllerDeveloperTools(common *ControllerCommon) ControllerDeveloperTools
NewControllerDeveloperTools ...
func (ControllerDeveloperTools) EntitySetState ¶ added in v0.5.3
func (c ControllerDeveloperTools) EntitySetState(ctx context.Context, req *api.EntityRequest) (*emptypb.Empty, error)
EntitySetState ...
func (ControllerDeveloperTools) ReloadEntity ¶ added in v0.5.3
func (c ControllerDeveloperTools) ReloadEntity(ctx context.Context, req *api.ReloadRequest) (*emptypb.Empty, error)
ReloadEntity ...
func (ControllerDeveloperTools) TaskCallAction ¶ added in v0.5.3
func (c ControllerDeveloperTools) TaskCallAction(ctx context.Context, req *api.AutomationRequest) (*emptypb.Empty, error)
TaskCallAction ...
func (ControllerDeveloperTools) TaskCallTrigger ¶ added in v0.5.3
func (c ControllerDeveloperTools) TaskCallTrigger(ctx context.Context, req *api.AutomationRequest) (*emptypb.Empty, error)
TaskCallTrigger ...
type ControllerEntity ¶ added in v0.5.2
type ControllerEntity struct {
*ControllerCommon
}
ControllerEntity ...
func NewControllerEntity ¶ added in v0.5.2
func NewControllerEntity(common *ControllerCommon) ControllerEntity
NewControllerEntity ...
func (ControllerEntity) AddEntity ¶ added in v0.5.2
func (c ControllerEntity) AddEntity(ctx context.Context, req *api.NewEntityRequest) (*api.Entity, error)
AddEntity ...
func (ControllerEntity) DeleteEntity ¶ added in v0.5.2
func (c ControllerEntity) DeleteEntity(ctx context.Context, req *api.DeleteEntityRequest) (*emptypb.Empty, error)
DeleteEntity ...
func (ControllerEntity) GetEntity ¶ added in v0.5.2
func (c ControllerEntity) GetEntity(ctx context.Context, req *api.GetEntityRequest) (*api.Entity, error)
GetEntity ...
func (ControllerEntity) GetEntityList ¶ added in v0.5.2
func (c ControllerEntity) GetEntityList(ctx context.Context, req *api.PaginationRequest) (*api.GetEntityListResult, error)
GetEntityList ...
func (ControllerEntity) SearchEntity ¶ added in v0.5.2
func (c ControllerEntity) SearchEntity(ctx context.Context, req *api.SearchRequest) (*api.SearchEntityResult, error)
SearchEntity ...
func (ControllerEntity) UpdateEntity ¶ added in v0.5.2
func (c ControllerEntity) UpdateEntity(ctx context.Context, req *api.UpdateEntityRequest) (*api.Entity, error)
UpdateEntity ...
type ControllerImage ¶ added in v0.5.0
type ControllerImage struct {
*ControllerCommon
}
ControllerImage ...
func NewControllerImage ¶ added in v0.5.0
func NewControllerImage(common *ControllerCommon) ControllerImage
NewControllerImage ...
func (ControllerImage) AddImage ¶ added in v0.5.0
func (c ControllerImage) AddImage(ctx context.Context, req *api.NewImageRequest) (*api.Image, error)
AddImage ...
func (ControllerImage) DeleteImageById ¶ added in v0.5.0
func (c ControllerImage) DeleteImageById(ctx context.Context, req *api.DeleteImageRequest) (*emptypb.Empty, error)
DeleteImageById ...
func (ControllerImage) GetImageById ¶ added in v0.5.0
func (c ControllerImage) GetImageById(ctx context.Context, req *api.GetImageRequest) (*api.Image, error)
GetImageById ...
func (ControllerImage) GetImageFilterList ¶ added in v0.5.3
func (c ControllerImage) GetImageFilterList(ctx context.Context, empty *emptypb.Empty) (*api.GetImageFilterListResult, error)
GetImageFilterList ...
func (ControllerImage) GetImageList ¶ added in v0.5.0
func (c ControllerImage) GetImageList(ctx context.Context, req *api.PaginationRequest) (*api.GetImageListResult, error)
GetImageList ...
func (ControllerImage) GetImageListByDate ¶ added in v0.5.3
func (c ControllerImage) GetImageListByDate(ctx context.Context, request *api.GetImageListByDateRequest) (*api.GetImageListByDateResult, error)
GetImageListByDate ...
func (ControllerImage) MuxUploadImage ¶ added in v0.5.0
func (c ControllerImage) MuxUploadImage() func(w http.ResponseWriter, r *http.Request)
MuxUploadImage ...
func (ControllerImage) UpdateImageById ¶ added in v0.5.0
func (c ControllerImage) UpdateImageById(ctx context.Context, req *api.UpdateImageRequest) (*api.Image, error)
UpdateImageById ...
func (ControllerImage) UploadImage ¶ added in v0.5.0
func (c ControllerImage) UploadImage(ctx context.Context, req *api.UploadImageRequest) (*api.Image, error)
UploadImage ...
type ControllerInteract ¶ added in v0.5.3
type ControllerInteract struct {
*ControllerCommon
}
ControllerInteract ...
func NewControllerInteract ¶ added in v0.5.3
func NewControllerInteract(common *ControllerCommon) ControllerInteract
NewControllerInteract ...
func (ControllerInteract) EntityCallAction ¶ added in v0.5.3
func (c ControllerInteract) EntityCallAction(ctx context.Context, req *api.EntityCallActionRequest) (*emptypb.Empty, error)
type ControllerLogs ¶ added in v0.5.3
type ControllerLogs struct {
*ControllerCommon
}
ControllerLogs ...
func NewControllerLogs ¶ added in v0.5.3
func NewControllerLogs(common *ControllerCommon) ControllerLogs
NewControllerLogs ...
func (ControllerLogs) GetLogList ¶ added in v0.5.3
func (c ControllerLogs) GetLogList(ctx context.Context, req *api.LogPaginationRequest) (*api.GetLogListResult, error)
GetLogList ...
type ControllerPlugin ¶ added in v0.5.1
type ControllerPlugin struct {
*ControllerCommon
}
ControllerPlugin ...
func NewControllerPlugin ¶ added in v0.5.1
func NewControllerPlugin(common *ControllerCommon) ControllerPlugin
NewControllerPlugin ...
func (ControllerPlugin) DisablePlugin ¶ added in v0.5.1
func (c ControllerPlugin) DisablePlugin(ctx context.Context, req *api.DisablePluginRequest) (*api.DisablePluginResult, error)
DisablePlugin ...
func (ControllerPlugin) EnablePlugin ¶ added in v0.5.1
func (c ControllerPlugin) EnablePlugin(ctx context.Context, req *api.EnablePluginRequest) (*api.EnablePluginResult, error)
EnablePlugin ...
func (ControllerPlugin) GetPluginList ¶ added in v0.5.1
func (c ControllerPlugin) GetPluginList(ctx context.Context, req *api.PaginationRequest) (*api.GetPluginListResult, error)
GetPluginList ...
func (ControllerPlugin) GetPluginOptions ¶ added in v0.5.1
func (c ControllerPlugin) GetPluginOptions(ctx context.Context, req *api.GetPluginOptionsRequest) (*api.GetPluginOptionsResult, error)
GetPluginOptions ...
func (ControllerPlugin) SearchPlugin ¶ added in v0.5.2
func (c ControllerPlugin) SearchPlugin(ctx context.Context, req *api.SearchRequest) (*api.SearchPluginResult, error)
SearchPlugin ...
type ControllerRole ¶ added in v0.5.0
type ControllerRole struct {
*ControllerCommon
}
ControllerRole ...
func NewControllerRole ¶ added in v0.5.0
func NewControllerRole(common *ControllerCommon) ControllerRole
NewControllerRole ...
func (ControllerRole) AddRole ¶ added in v0.5.0
func (c ControllerRole) AddRole(ctx context.Context, req *api.NewRoleRequest) (*api.Role, error)
AddRole ...
func (ControllerRole) DeleteRoleByName ¶ added in v0.5.0
func (c ControllerRole) DeleteRoleByName(ctx context.Context, req *api.DeleteRoleRequest) (*emptypb.Empty, error)
DeleteRoleByName ...
func (ControllerRole) GetRoleAccessList ¶ added in v0.5.0
func (c ControllerRole) GetRoleAccessList(ctx context.Context, req *api.GetRoleAccessListRequest) (*api.RoleAccessListResult, error)
GetRoleAccessList ...
func (ControllerRole) GetRoleByName ¶ added in v0.5.0
func (c ControllerRole) GetRoleByName(ctx context.Context, req *api.GetRoleRequest) (*api.Role, error)
GetRoleByName ...
func (ControllerRole) GetRoleList ¶ added in v0.5.0
func (c ControllerRole) GetRoleList(ctx context.Context, req *api.PaginationRequest) (*api.GetRoleListResult, error)
GetRoleList ...
func (ControllerRole) SearchRoleByName ¶ added in v0.5.0
func (c ControllerRole) SearchRoleByName(ctx context.Context, req *api.SearchRequest) (*api.SearchRoleListResult, error)
SearchRoleByName ...
func (ControllerRole) UpdateRoleAccessList ¶ added in v0.5.0
func (c ControllerRole) UpdateRoleAccessList(ctx context.Context, req *api.UpdateRoleAccessListRequest) (*api.RoleAccessListResult, error)
UpdateRoleAccessList ...
func (ControllerRole) UpdateRoleByName ¶ added in v0.5.0
func (c ControllerRole) UpdateRoleByName(ctx context.Context, req *api.UpdateRoleRequest) (*api.Role, error)
UpdateRoleByName ...
type ControllerScript ¶ added in v0.5.0
type ControllerScript struct {
*ControllerCommon
}
ControllerScript ...
func NewControllerScript ¶ added in v0.5.0
func NewControllerScript(common *ControllerCommon) ControllerScript
NewControllerScript ...
func (ControllerScript) AddScript ¶ added in v0.5.0
func (c ControllerScript) AddScript(ctx context.Context, req *api.NewScriptRequest) (*api.Script, error)
AddScript ...
func (ControllerScript) CopyScriptById ¶ added in v0.5.0
func (c ControllerScript) CopyScriptById(ctx context.Context, req *api.CopyScriptRequest) (*api.Script, error)
CopyScriptById ...
func (ControllerScript) DeleteScriptById ¶ added in v0.5.0
func (c ControllerScript) DeleteScriptById(ctx context.Context, req *api.DeleteScriptRequest) (*emptypb.Empty, error)
DeleteScriptById ...
func (ControllerScript) ExecScriptById ¶ added in v0.5.0
func (c ControllerScript) ExecScriptById(ctx context.Context, req *api.ExecScriptRequest) (*api.ExecScriptResult, error)
ExecScriptById ...
func (ControllerScript) ExecSrcScriptById ¶ added in v0.5.0
func (c ControllerScript) ExecSrcScriptById(ctx context.Context, req *api.ExecSrcScriptRequest) (*api.ExecScriptResult, error)
ExecSrcScriptById ...
func (ControllerScript) GetScriptById ¶ added in v0.5.0
func (c ControllerScript) GetScriptById(ctx context.Context, req *api.GetScriptRequest) (*api.Script, error)
GetScriptById ...
func (ControllerScript) GetScriptList ¶ added in v0.5.0
func (c ControllerScript) GetScriptList(ctx context.Context, req *api.PaginationRequest) (*api.GetScriptListResult, error)
GetScriptList ...
func (ControllerScript) SearchScript ¶ added in v0.5.2
func (c ControllerScript) SearchScript(ctx context.Context, req *api.SearchRequest) (*api.SearchScriptListResult, error)
SearchScript ...
func (ControllerScript) UpdateScriptById ¶ added in v0.5.0
func (c ControllerScript) UpdateScriptById(ctx context.Context, req *api.UpdateScriptRequest) (*api.Script, error)
UpdateScriptById ...
type ControllerStream ¶ added in v0.5.0
type ControllerStream struct {
*ControllerCommon
}
ControllerStream ...
func NewControllerStream ¶ added in v0.5.0
func NewControllerStream(common *ControllerCommon) ControllerStream
NewControllerStream ...
func (ControllerStream) Subscribe ¶ added in v0.5.0
func (a ControllerStream) Subscribe(server api.StreamService_SubscribeServer) error
Subscribe ...
type ControllerUser ¶ added in v0.5.0
type ControllerUser struct {
*ControllerCommon
}
ControllerUser ...
func NewControllerUser ¶ added in v0.5.0
func NewControllerUser(common *ControllerCommon) ControllerUser
NewControllerUser ...
func (ControllerUser) AddUser ¶ added in v0.5.0
func (c ControllerUser) AddUser(ctx context.Context, req *api.NewtUserRequest) (userFull *api.UserFull, err error)
AddUser ...
func (ControllerUser) DeleteUserById ¶ added in v0.5.0
func (c ControllerUser) DeleteUserById(ctx context.Context, req *api.DeleteUserRequest) (*emptypb.Empty, error)
DeleteUserById ...
func (ControllerUser) GetUserById ¶ added in v0.5.0
func (c ControllerUser) GetUserById(ctx context.Context, req *api.GetUserByIdRequest) (*api.UserFull, error)
GetUserById ...
func (ControllerUser) GetUserList ¶ added in v0.5.0
func (c ControllerUser) GetUserList(ctx context.Context, req *api.PaginationRequest) (*api.GetUserListResult, error)
GetUserList ...
func (ControllerUser) UpdateUserById ¶ added in v0.5.0
func (c ControllerUser) UpdateUserById(ctx context.Context, req *api.UpdateUserRequest) (*api.UserFull, error)
UpdateUserById ...
type ControllerZigbee2mqtt ¶ added in v0.5.2
type ControllerZigbee2mqtt struct {
*ControllerCommon
}
ControllerZigbee2mqtt ...
func NewControllerZigbee2mqtt ¶ added in v0.5.2
func NewControllerZigbee2mqtt(common *ControllerCommon) ControllerZigbee2mqtt
NewControllerZigbee2mqtt ...
func (ControllerZigbee2mqtt) AddZigbee2MqttBridge ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) AddZigbee2MqttBridge(ctx context.Context, req *api.NewZigbee2MqttRequest) (*api.Zigbee2Mqtt, error)
AddZigbee2MqttBridge ...
func (ControllerZigbee2mqtt) DeleteBridgeById ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) DeleteBridgeById(ctx context.Context, req *api.DeleteBridgeRequest) (*emptypb.Empty, error)
DeleteBridgeById ...
func (ControllerZigbee2mqtt) DeviceBan ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) DeviceBan(ctx context.Context, req *api.DeviceBanRequest) (*emptypb.Empty, error)
DeviceBan ...
func (ControllerZigbee2mqtt) DeviceList ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) DeviceList(ctx context.Context, req *api.DeviceListRequest) (*api.DeviceListResult, error)
DeviceList ...
func (ControllerZigbee2mqtt) DeviceRename ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) DeviceRename(ctx context.Context, req *api.DeviceRenameRequest) (*emptypb.Empty, error)
DeviceRename ...
func (ControllerZigbee2mqtt) DeviceWhitelist ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) DeviceWhitelist(ctx context.Context, req *api.DeviceWhitelistRequest) (*emptypb.Empty, error)
DeviceWhitelist ...
func (ControllerZigbee2mqtt) GetBridgeList ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) GetBridgeList(ctx context.Context, req *api.PaginationRequest) (*api.GetBridgeListResult, error)
GetBridgeList ...
func (ControllerZigbee2mqtt) GetZigbee2MqttBridge ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) GetZigbee2MqttBridge(ctx context.Context, req *api.GetBridgeRequest) (*api.Zigbee2Mqtt, error)
GetZigbee2MqttBridge ...
func (ControllerZigbee2mqtt) Networkmap ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) Networkmap(ctx context.Context, req *api.NetworkmapRequest) (*api.NetworkmapResponse, error)
Networkmap ...
func (ControllerZigbee2mqtt) ResetBridgeById ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) ResetBridgeById(ctx context.Context, req *api.ResetBridgeRequest) (*emptypb.Empty, error)
ResetBridgeById ...
func (ControllerZigbee2mqtt) SearchDevice ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) SearchDevice(ctx context.Context, req *api.SearchRequest) (*api.SearchDeviceResult, error)
SearchDevice ...
func (ControllerZigbee2mqtt) UpdateBridgeById ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) UpdateBridgeById(ctx context.Context, req *api.UpdateBridgeRequest) (*api.Zigbee2Mqtt, error)
UpdateBridgeById ...
func (ControllerZigbee2mqtt) UpdateNetworkmap ¶ added in v0.5.2
func (c ControllerZigbee2mqtt) UpdateNetworkmap(ctx context.Context, req *api.NetworkmapRequest) (*emptypb.Empty, error)
UpdateNetworkmap ...
type Controllers ¶ added in v0.5.0
type Controllers struct { Auth ControllerAuth Stream ControllerStream User ControllerUser Role ControllerRole Script ControllerScript Image ControllerImage Plugin ControllerPlugin Zigbee2mqtt ControllerZigbee2mqtt Entity ControllerEntity Automation ControllerAutomation Area ControllerArea Dev ControllerDeveloperTools Interact ControllerInteract Logs ControllerLogs }
Controllers ...
func NewControllers ¶ added in v0.5.0
func NewControllers(adaptors *adaptors.Adaptors, accessList access_list.AccessListService, command *endpoint.Endpoint, stream *stream.Stream) *Controllers
NewControllers ...