Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + var File_proto_devices_devices_proto protoreflect.FileDescriptor + func NewDevicesServiceEndpoints() []*api.Endpoint + func RegisterDevicesServiceHandler(s server.Server, hdlr DevicesServiceHandler, opts ...server.HandlerOption) error + type Device struct + ConfigJSON string + ConnectStatus int32 + Description string + Group int32 + Id uint32 + Name string + Provider string + Spcript uint32 + Type *DeviceType + func (*Device) Descriptor() ([]byte, []int) + func (*Device) ProtoMessage() + func (x *Device) GetConfigJSON() string + func (x *Device) GetConnectStatus() int32 + func (x *Device) GetDescription() string + func (x *Device) GetGroup() int32 + func (x *Device) GetId() uint32 + func (x *Device) GetName() string + func (x *Device) GetProvider() string + func (x *Device) GetSpcript() uint32 + func (x *Device) GetType() *DeviceType + func (x *Device) ProtoReflect() protoreflect.Message + func (x *Device) Reset() + func (x *Device) String() string + type DeviceFilter struct + And []*DeviceFilter + ConnectStatus *wrappers.Int32Value + Group *wrappers.UInt32Value + GroupIn []uint32 + Id *wrappers.UInt32Value + IdIn []uint32 + Name *wrappers.StringValue + NameIn []string + Or []*DeviceFilter + Type *DeviceTypeFilter + func (*DeviceFilter) Descriptor() ([]byte, []int) + func (*DeviceFilter) ProtoMessage() + func (x *DeviceFilter) GetAnd() []*DeviceFilter + func (x *DeviceFilter) GetConnectStatus() *wrappers.Int32Value + func (x *DeviceFilter) GetGroup() *wrappers.UInt32Value + func (x *DeviceFilter) GetGroupIn() []uint32 + func (x *DeviceFilter) GetId() *wrappers.UInt32Value + func (x *DeviceFilter) GetIdIn() []uint32 + func (x *DeviceFilter) GetName() *wrappers.StringValue + func (x *DeviceFilter) GetNameIn() []string + func (x *DeviceFilter) GetOr() []*DeviceFilter + func (x *DeviceFilter) GetType() *DeviceTypeFilter + func (x *DeviceFilter) ProtoReflect() protoreflect.Message + func (x *DeviceFilter) Reset() + func (x *DeviceFilter) String() string + type DeviceQuery struct + Filter *DeviceFilter + Page uint32 + PerPage uint32 + func (*DeviceQuery) Descriptor() ([]byte, []int) + func (*DeviceQuery) ProtoMessage() + func (x *DeviceQuery) GetFilter() *DeviceFilter + func (x *DeviceQuery) GetPage() uint32 + func (x *DeviceQuery) GetPerPage() uint32 + func (x *DeviceQuery) ProtoReflect() protoreflect.Message + func (x *DeviceQuery) Reset() + func (x *DeviceQuery) String() string + type DeviceRequest struct + ConfigJSON string + Description string + Group int32 + Id uint32 + Name string + Provider string + Spcript uint32 + Type *DeviceType + func (*DeviceRequest) Descriptor() ([]byte, []int) + func (*DeviceRequest) ProtoMessage() + func (x *DeviceRequest) GetConfigJSON() string + func (x *DeviceRequest) GetDescription() string + func (x *DeviceRequest) GetGroup() int32 + func (x *DeviceRequest) GetId() uint32 + func (x *DeviceRequest) GetName() string + func (x *DeviceRequest) GetProvider() string + func (x *DeviceRequest) GetSpcript() uint32 + func (x *DeviceRequest) GetType() *DeviceType + func (x *DeviceRequest) ProtoReflect() protoreflect.Message + func (x *DeviceRequest) Reset() + func (x *DeviceRequest) String() string + type DeviceType struct + Description string + Id uint32 + Name string + Protocol *ProtocolType + func (*DeviceType) Descriptor() ([]byte, []int) + func (*DeviceType) ProtoMessage() + func (x *DeviceType) GetDescription() string + func (x *DeviceType) GetId() uint32 + func (x *DeviceType) GetName() string + func (x *DeviceType) GetProtocol() *ProtocolType + func (x *DeviceType) ProtoReflect() protoreflect.Message + func (x *DeviceType) Reset() + func (x *DeviceType) String() string + type DeviceTypeFilter struct + And []*DeviceTypeFilter + Name *wrappers.StringValue + Or []*DeviceTypeFilter + func (*DeviceTypeFilter) Descriptor() ([]byte, []int) + func (*DeviceTypeFilter) ProtoMessage() + func (x *DeviceTypeFilter) GetAnd() []*DeviceTypeFilter + func (x *DeviceTypeFilter) GetName() *wrappers.StringValue + func (x *DeviceTypeFilter) GetOr() []*DeviceTypeFilter + func (x *DeviceTypeFilter) ProtoReflect() protoreflect.Message + func (x *DeviceTypeFilter) Reset() + func (x *DeviceTypeFilter) String() string + type Devices struct + Devices []*Device + func (*Devices) Descriptor() ([]byte, []int) + func (*Devices) ProtoMessage() + func (x *Devices) GetDevices() []*Device + func (x *Devices) ProtoReflect() protoreflect.Message + func (x *Devices) Reset() + func (x *Devices) String() string + type DevicesService interface + AddDevice func(ctx context.Context, in *DeviceRequest, opts ...client.CallOption) (*Response, error) + ConfigDevice func(ctx context.Context, in *DeviceRequest, opts ...client.CallOption) (*Response, error) + DeleteDevice func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) + GetDevice func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Device, error) + GetDevices func(ctx context.Context, in *DeviceQuery, opts ...client.CallOption) (*Devices, error) + StartDevice func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) + StopDevice func(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error) + func NewDevicesService(name string, c client.Client) DevicesService + type DevicesServiceHandler interface + AddDevice func(context.Context, *DeviceRequest, *Response) error + ConfigDevice func(context.Context, *DeviceRequest, *Response) error + DeleteDevice func(context.Context, *IDReq, *Response) error + GetDevice func(context.Context, *IDReq, *Device) error + GetDevices func(context.Context, *DeviceQuery, *Devices) error + StartDevice func(context.Context, *IDReq, *Response) error + StopDevice func(context.Context, *IDReq, *Response) error + type IDReq struct + Id uint32 + func (*IDReq) Descriptor() ([]byte, []int) + func (*IDReq) ProtoMessage() + func (x *IDReq) GetId() uint32 + func (x *IDReq) ProtoReflect() protoreflect.Message + func (x *IDReq) Reset() + func (x *IDReq) String() string + type ProtocolType struct + Id uint32 + Name string + Tcp *Tcp + func (*ProtocolType) Descriptor() ([]byte, []int) + func (*ProtocolType) ProtoMessage() + func (x *ProtocolType) GetId() uint32 + func (x *ProtocolType) GetName() string + func (x *ProtocolType) GetTcp() *Tcp + func (x *ProtocolType) ProtoReflect() protoreflect.Message + func (x *ProtocolType) Reset() + func (x *ProtocolType) String() string + type Response struct + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type Tcp struct + ClientIp string + ClientPort int32 + Ip string + Port int32 + Type string + func (*Tcp) Descriptor() ([]byte, []int) + func (*Tcp) ProtoMessage() + func (x *Tcp) GetClientIp() string + func (x *Tcp) GetClientPort() int32 + func (x *Tcp) GetIp() string + func (x *Tcp) GetPort() int32 + func (x *Tcp) GetType() string + func (x *Tcp) ProtoReflect() protoreflect.Message + func (x *Tcp) Reset() + func (x *Tcp) String() string