controllers

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

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

GetAreaList ...

func (ControllerArea) SearchArea added in v0.5.2

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

AccessList ...

func (ControllerAuth) Signin added in v0.5.0

func (a ControllerAuth) Signin(ctx context.Context, _ *emptypb.Empty) (resp *api.SigninResponse, err error)

Signin ...

func (ControllerAuth) Signout added in v0.5.0

func (a ControllerAuth) Signout(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

Signout ...

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

AddTask ...

func (ControllerAutomation) DeleteTask added in v0.5.2

DeleteTask ...

func (ControllerAutomation) DisableTask added in v0.5.3

DisableTask ...

func (ControllerAutomation) EnableTask added in v0.5.3

EnableTask ...

func (ControllerAutomation) GetTask added in v0.5.2

GetTask ...

func (ControllerAutomation) GetTaskList added in v0.5.2

GetTaskList ...

func (ControllerAutomation) UpdateTask added in v0.5.2

func (c ControllerAutomation) UpdateTask(ctx context.Context, req *api.UpdateTaskRequest) (*api.Task, error)

UpdateTask ...

type ControllerBackup added in v0.7.1

type ControllerBackup struct {
	*ControllerCommon
}

ControllerBackup ...

func NewControllerBackup added in v0.7.1

func NewControllerBackup(common *ControllerCommon) ControllerBackup

NewControllerBackup ...

func (ControllerBackup) GetBackupList added in v0.7.1

GetBackupList ...

func (ControllerBackup) NewBackup added in v0.7.1

func (c ControllerBackup) NewBackup(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

NewBackup ...

func (ControllerBackup) RestoreBackup added in v0.7.1

func (c ControllerBackup) RestoreBackup(ctx context.Context, req *api.RestoreBackupRequest) (*emptypb.Empty, error)

RestoreBackup ...

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 ControllerDashboard added in v0.6.0

type ControllerDashboard struct {
	*ControllerCommon
}

ControllerDashboard ...

func NewControllerDashboard added in v0.6.0

func NewControllerDashboard(common *ControllerCommon) ControllerDashboard

NewControllerDashboard ...

func (ControllerDashboard) AddDashboard added in v0.6.0

AddDashboard ...

func (ControllerDashboard) DeleteDashboard added in v0.6.0

DeleteDashboard ...

func (ControllerDashboard) GetDashboardById added in v0.6.0

func (c ControllerDashboard) GetDashboardById(ctx context.Context, req *api.GetDashboardRequest) (*api.Dashboard, error)

GetDashboardById ...

func (ControllerDashboard) GetDashboardList added in v0.6.0

GetDashboardList ...

func (ControllerDashboard) ImportDashboard added in v0.6.0

func (c ControllerDashboard) ImportDashboard(ctx context.Context, req *api.Dashboard) (*api.Dashboard, error)

ImportDashboard ...

func (ControllerDashboard) SearchDashboard added in v0.7.0

SearchDashboard ...

func (ControllerDashboard) UpdateDashboard added in v0.6.0

UpdateDashboard ...

type ControllerDashboardCard added in v0.6.0

type ControllerDashboardCard struct {
	*ControllerCommon
}

ControllerDashboardCard ...

func NewControllerDashboardCard added in v0.6.0

func NewControllerDashboardCard(common *ControllerCommon) ControllerDashboardCard

NewControllerDashboardCard ...

func (ControllerDashboardCard) AddDashboardCard added in v0.6.0

AddDashboardCard ...

func (ControllerDashboardCard) DeleteDashboardCard added in v0.6.0

DeleteDashboardCard ...

func (ControllerDashboardCard) GetDashboardCardById added in v0.6.0

GetDashboardCardById ...

func (ControllerDashboardCard) GetDashboardCardList added in v0.6.0

GetDashboardCardList ...

func (ControllerDashboardCard) ImportDashboardCard added in v0.6.0

func (c ControllerDashboardCard) ImportDashboardCard(ctx context.Context, req *api.DashboardCard) (*api.DashboardCard, error)

ImportDashboardCard ...

func (ControllerDashboardCard) UpdateDashboardCard added in v0.6.0

UpdateDashboardCard ...

type ControllerDashboardCardItem added in v0.6.0

type ControllerDashboardCardItem struct {
	*ControllerCommon
}

ControllerDashboardCardItem ...

func NewControllerDashboardCardItem added in v0.6.0

func NewControllerDashboardCardItem(common *ControllerCommon) ControllerDashboardCardItem

NewControllerDashboardCardItem ...

func (ControllerDashboardCardItem) AddDashboardCardItem added in v0.6.0

AddDashboardCardItem ...

func (ControllerDashboardCardItem) DeleteDashboardCardItem added in v0.6.0

DeleteDashboardCardItem ...

func (ControllerDashboardCardItem) GetDashboardCardItemById added in v0.6.0

GetDashboardCardItemById ...

func (ControllerDashboardCardItem) GetDashboardCardItemList added in v0.6.0

GetDashboardCardItemList ...

func (ControllerDashboardCardItem) UpdateDashboardCardItem added in v0.6.0

UpdateDashboardCardItem ...

type ControllerDashboardTab added in v0.6.0

type ControllerDashboardTab struct {
	*ControllerCommon
}

ControllerDashboardTab ...

func NewControllerDashboardTab added in v0.6.0

func NewControllerDashboardTab(common *ControllerCommon) ControllerDashboardTab

NewControllerDashboardTab ...

func (ControllerDashboardTab) AddDashboardTab added in v0.6.0

AddDashboardTab ...

func (ControllerDashboardTab) DeleteDashboardTab added in v0.6.0

DeleteDashboardTab ...

func (ControllerDashboardTab) GetDashboardTabById added in v0.6.0

GetDashboardTabById ...

func (ControllerDashboardTab) GetDashboardTabList added in v0.6.0

GetDashboardTabList ...

func (ControllerDashboardTab) UpdateDashboardTab added in v0.6.0

UpdateDashboardTab ...

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

ReloadEntity ...

func (ControllerDeveloperTools) TaskCallAction added in v0.5.3

TaskCallAction ...

func (ControllerDeveloperTools) TaskCallTrigger added in v0.5.3

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

GetEntityList ...

func (ControllerEntity) ImportEntity added in v0.7.2

func (c ControllerEntity) ImportEntity(ctx context.Context, req *api.Entity) (*emptypb.Empty, error)

ImportEntity ...

func (ControllerEntity) SearchEntity added in v0.5.2

SearchEntity ...

func (ControllerEntity) UpdateEntity added in v0.5.2

func (c ControllerEntity) UpdateEntity(ctx context.Context, req *api.UpdateEntityRequest) (*api.Entity, error)

UpdateEntity ...

type ControllerEntityStorage added in v0.6.0

type ControllerEntityStorage struct {
	*ControllerCommon
}

ControllerEntityStorage ...

func NewControllerEntityStorage added in v0.6.0

func NewControllerEntityStorage(common *ControllerCommon) ControllerEntityStorage

NewControllerEntityStorage ...

func (ControllerEntityStorage) GetEntityStorageList added in v0.6.0

GetEntityStorageList ...

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

GetImageList ...

func (ControllerImage) GetImageListByDate added in v0.5.3

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

GetLogList ...

type ControllerMetric added in v0.7.0

type ControllerMetric struct {
	*ControllerCommon
}

ControllerMetric ...

func NewControllerMetric added in v0.7.0

func NewControllerMetric(common *ControllerCommon) ControllerMetric

NewControllerMetric ...

func (ControllerMetric) GetMetric added in v0.7.0

func (c ControllerMetric) GetMetric(ctx context.Context, req *api.GetMetricRequest) (*api.Metric, error)

GetMetric ...

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

DisablePlugin ...

func (ControllerPlugin) EnablePlugin added in v0.5.1

EnablePlugin ...

func (ControllerPlugin) GetPluginList added in v0.5.1

GetPluginList ...

func (ControllerPlugin) GetPluginOptions added in v0.5.1

GetPluginOptions ...

func (ControllerPlugin) SearchPlugin added in v0.5.2

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

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

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

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

ExecScriptById ...

func (ControllerScript) ExecSrcScriptById added in v0.5.0

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

GetScriptList ...

func (ControllerScript) SearchScript added in v0.5.2

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

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

GetUserList ...

func (ControllerUser) UpdateUserById added in v0.5.0

func (c ControllerUser) UpdateUserById(ctx context.Context, req *api.UpdateUserRequest) (*api.UserFull, error)

UpdateUserById ...

type ControllerVariable added in v0.6.0

type ControllerVariable struct {
	*ControllerCommon
}

ControllerVariable ...

func NewControllerVariable added in v0.6.0

func NewControllerVariable(common *ControllerCommon) ControllerVariable

NewControllerVariable ...

func (ControllerVariable) AddVariable added in v0.6.0

AddVariable ...

func (ControllerVariable) DeleteVariable added in v0.6.0

DeleteVariable ...

func (ControllerVariable) GetVariableByName added in v0.6.0

func (c ControllerVariable) GetVariableByName(ctx context.Context, req *api.GetVariableRequest) (*api.Variable, error)

GetVariableByName ...

func (ControllerVariable) GetVariableList added in v0.6.0

GetVariableList ...

func (ControllerVariable) UpdateVariable added in v0.6.0

func (c ControllerVariable) UpdateVariable(ctx context.Context, req *api.UpdateVariableRequest) (*api.Variable, error)

UpdateVariable ...

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

DeviceBan ...

func (ControllerZigbee2mqtt) DeviceList added in v0.5.2

DeviceList ...

func (ControllerZigbee2mqtt) DeviceRename added in v0.5.2

DeviceRename ...

func (ControllerZigbee2mqtt) DeviceWhitelist added in v0.5.2

DeviceWhitelist ...

func (ControllerZigbee2mqtt) GetBridgeList added in v0.5.2

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

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

SearchDevice ...

func (ControllerZigbee2mqtt) UpdateBridgeById added in v0.5.2

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

Controllers ...

func NewControllers added in v0.5.0

func NewControllers(adaptors *adaptors.Adaptors,
	accessList access_list.AccessListService,
	command *endpoint.Endpoint,
	stream *stream.Stream,
	_ *handlers.EventHandler) *Controllers

NewControllers ...

Jump to

Keyboard shortcuts

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