Documentation ¶
Index ¶
- Variables
- func RegisterHomeDetectorServer(s grpc.ServiceRegistrar, srv HomeDetectorServer)
- type AddressRequest
- func (*AddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddressRequest) GetDistance() float32
- func (x *AddressRequest) GetHosts() []string
- func (x *AddressRequest) GetIp() string
- func (x *AddressRequest) GetMac() string
- func (x *AddressRequest) GetVendor() string
- func (*AddressRequest) ProtoMessage()
- func (x *AddressRequest) ProtoReflect() protoreflect.Message
- func (x *AddressRequest) Reset()
- func (x *AddressRequest) String() string
- type AddressesRequest
- func (*AddressesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddressesRequest) GetAddresses() []*AddressRequest
- func (*AddressesRequest) ProtoMessage()
- func (x *AddressesRequest) ProtoReflect() protoreflect.Message
- func (x *AddressesRequest) Reset()
- func (x *AddressesRequest) String() string
- type BleDevices
- func (*BleDevices) Descriptor() ([]byte, []int)deprecated
- func (x *BleDevices) GetCommands() []*Commands
- func (x *BleDevices) GetDistance() float32
- func (x *BleDevices) GetHome() string
- func (x *BleDevices) GetId() string
- func (x *BleDevices) GetLastSeen() int64
- func (x *BleDevices) GetMetadata() []*Metadata
- func (x *BleDevices) GetName() string
- func (x *BleDevices) GetTile() bool
- func (*BleDevices) ProtoMessage()
- func (x *BleDevices) ProtoReflect() protoreflect.Message
- func (x *BleDevices) Reset()
- func (x *BleDevices) String() string
- type BleRequest
- type CQsResponse
- type Commands
- func (*Commands) Descriptor() ([]byte, []int)deprecated
- func (x *Commands) GetCommand() string
- func (x *Commands) GetId() string
- func (x *Commands) GetTimeout() int64
- func (*Commands) ProtoMessage()
- func (x *Commands) ProtoReflect() protoreflect.Message
- func (x *Commands) Reset()
- func (x *Commands) String() string
- type Devices
- func (*Devices) Descriptor() ([]byte, []int)deprecated
- func (x *Devices) GetAway() bool
- func (x *Devices) GetCommand() string
- func (x *Devices) GetHome() string
- func (x *Devices) GetHostnames() []string
- func (x *Devices) GetId() *NetworkId
- func (x *Devices) GetLastSeen() int64
- func (x *Devices) GetLatency() float32
- func (x *Devices) GetManufacturer() string
- func (x *Devices) GetMetadata() []*Metadata
- func (x *Devices) GetName() string
- func (x *Devices) GetPerson() bool
- func (x *Devices) GetPresenceAware() bool
- func (x *Devices) GetSmart() bool
- func (*Devices) ProtoMessage()
- func (x *Devices) ProtoReflect() protoreflect.Message
- func (x *Devices) Reset()
- func (x *Devices) String() string
- type DevicesResponse
- type FCMCall
- func (*FCMCall) Descriptor() ([]byte, []int)deprecated
- func (x *FCMCall) GetBody() string
- func (x *FCMCall) GetImage() string
- func (x *FCMCall) GetTitle() string
- func (*FCMCall) ProtoMessage()
- func (x *FCMCall) ProtoReflect() protoreflect.Message
- func (x *FCMCall) Reset()
- func (x *FCMCall) String() string
- type GoogleAssistantCall
- func (*GoogleAssistantCall) Descriptor() ([]byte, []int)deprecated
- func (x *GoogleAssistantCall) GetCommand() string
- func (x *GoogleAssistantCall) GetConverse() bool
- func (x *GoogleAssistantCall) GetUser() string
- func (*GoogleAssistantCall) ProtoMessage()
- func (x *GoogleAssistantCall) ProtoReflect() protoreflect.Message
- func (x *GoogleAssistantCall) Reset()
- func (x *GoogleAssistantCall) String() string
- type HomeDetectorClient
- type HomeDetectorServer
- type MQTTAddressRequest
- func (*MQTTAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MQTTAddressRequest) GetAddresses() []*AddressRequest
- func (x *MQTTAddressRequest) GetAgent() *MQTTAgent
- func (x *MQTTAddressRequest) GetMetadata() []*Metadata
- func (x *MQTTAddressRequest) GetTimestamp() int64
- func (*MQTTAddressRequest) ProtoMessage()
- func (x *MQTTAddressRequest) ProtoReflect() protoreflect.Message
- func (x *MQTTAddressRequest) Reset()
- func (x *MQTTAddressRequest) String() string
- type MQTTAgent
- type MQTTBleRequest
- func (*MQTTBleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MQTTBleRequest) GetAgent() *MQTTAgent
- func (x *MQTTBleRequest) GetBles() *BleRequest
- func (x *MQTTBleRequest) GetMetadata() []*Metadata
- func (*MQTTBleRequest) ProtoMessage()
- func (x *MQTTBleRequest) ProtoReflect() protoreflect.Message
- func (x *MQTTBleRequest) Reset()
- func (x *MQTTBleRequest) String() string
- type Metadata
- type NetworkId
- func (*NetworkId) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkId) GetIp() string
- func (x *NetworkId) GetMac() string
- func (x *NetworkId) GetUUID() string
- func (*NetworkId) ProtoMessage()
- func (x *NetworkId) ProtoReflect() protoreflect.Message
- func (x *NetworkId) Reset()
- func (x *NetworkId) String() string
- type People
- func (*People) Descriptor() ([]byte, []int)deprecated
- func (x *People) GetAway() bool
- func (x *People) GetHome() string
- func (x *People) GetIds() []string
- func (x *People) GetName() string
- func (*People) ProtoMessage()
- func (x *People) ProtoReflect() protoreflect.Message
- func (x *People) Reset()
- func (x *People) String() string
- type PeopleResponse
- type Reply
- type StringRequest
- type TCsResponse
- type TimedCommands
- func (*TimedCommands) Descriptor() ([]byte, []int)deprecated
- func (x *TimedCommands) GetCommand() string
- func (x *TimedCommands) GetExecuteat() int64
- func (x *TimedCommands) GetExecuted() bool
- func (x *TimedCommands) GetId() string
- func (x *TimedCommands) GetOwner() string
- func (*TimedCommands) ProtoMessage()
- func (x *TimedCommands) ProtoReflect() protoreflect.Message
- func (x *TimedCommands) Reset()
- func (x *TimedCommands) String() string
- type UnimplementedHomeDetectorServer
- func (UnimplementedHomeDetectorServer) Ack(context.Context, *BleRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) Address(context.Context, *AddressRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) Addresses(context.Context, *AddressesRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) CompleteTimedCommand(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) CompleteTimedCommands(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) CreateTimedCommand(context.Context, *TimedCommands) (*Reply, error)
- func (UnimplementedHomeDetectorServer) DeleteCommandQueue(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) DeleteDevice(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) DeleteTimedCommand(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) HouseEmpty(context.Context, *StringRequest) (*Reply, error)
- func (UnimplementedHomeDetectorServer) ListCommandQueue(context.Context, *emptypb.Empty) (*CQsResponse, error)
- func (UnimplementedHomeDetectorServer) ListDevices(context.Context, *emptypb.Empty) (*DevicesResponse, error)
- func (UnimplementedHomeDetectorServer) ListPeople(context.Context, *emptypb.Empty) (*PeopleResponse, error)
- func (UnimplementedHomeDetectorServer) ListTimedCommands(context.Context, *emptypb.Empty) (*TCsResponse, error)
- func (UnimplementedHomeDetectorServer) TogglePerson(context.Context, *Devices) (*Reply, error)
- func (UnimplementedHomeDetectorServer) UpdateDevice(context.Context, *Devices) (*Reply, error)
- type UnsafeHomeDetectorServer
Constants ¶
This section is empty.
Variables ¶
var File_DeviceDetector_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHomeDetectorServer ¶
func RegisterHomeDetectorServer(s grpc.ServiceRegistrar, srv HomeDetectorServer)
Types ¶
type AddressRequest ¶
type AddressRequest struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` Distance float32 `protobuf:"fixed32,3,opt,name=distance,proto3" json:"distance,omitempty"` Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"` Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*AddressRequest) Descriptor
deprecated
func (*AddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddressRequest.ProtoReflect.Descriptor instead.
func (*AddressRequest) GetDistance ¶
func (x *AddressRequest) GetDistance() float32
func (*AddressRequest) GetHosts ¶ added in v0.1.5
func (x *AddressRequest) GetHosts() []string
func (*AddressRequest) GetIp ¶
func (x *AddressRequest) GetIp() string
func (*AddressRequest) GetMac ¶
func (x *AddressRequest) GetMac() string
func (*AddressRequest) GetVendor ¶ added in v0.1.5
func (x *AddressRequest) GetVendor() string
func (*AddressRequest) ProtoMessage ¶
func (*AddressRequest) ProtoMessage()
func (*AddressRequest) ProtoReflect ¶
func (x *AddressRequest) ProtoReflect() protoreflect.Message
func (*AddressRequest) Reset ¶
func (x *AddressRequest) Reset()
func (*AddressRequest) String ¶
func (x *AddressRequest) String() string
type AddressesRequest ¶
type AddressesRequest struct { Addresses []*AddressRequest `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*AddressesRequest) Descriptor
deprecated
func (*AddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddressesRequest.ProtoReflect.Descriptor instead.
func (*AddressesRequest) GetAddresses ¶
func (x *AddressesRequest) GetAddresses() []*AddressRequest
func (*AddressesRequest) ProtoMessage ¶
func (*AddressesRequest) ProtoMessage()
func (*AddressesRequest) ProtoReflect ¶
func (x *AddressesRequest) ProtoReflect() protoreflect.Message
func (*AddressesRequest) Reset ¶
func (x *AddressesRequest) Reset()
func (*AddressesRequest) String ¶
func (x *AddressesRequest) String() string
type BleDevices ¶
type BleDevices struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` LastSeen int64 `protobuf:"varint,2,opt,name=LastSeen,proto3" json:"LastSeen,omitempty"` Commands []*Commands `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"` Home string `protobuf:"bytes,5,opt,name=Home,proto3" json:"Home,omitempty"` Tile bool `protobuf:"varint,6,opt,name=tile,proto3" json:"tile,omitempty"` Distance float32 `protobuf:"fixed32,7,opt,name=distance,proto3" json:"distance,omitempty"` Metadata []*Metadata `protobuf:"bytes,8,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*BleDevices) Descriptor
deprecated
func (*BleDevices) Descriptor() ([]byte, []int)
Deprecated: Use BleDevices.ProtoReflect.Descriptor instead.
func (*BleDevices) GetCommands ¶
func (x *BleDevices) GetCommands() []*Commands
func (*BleDevices) GetDistance ¶
func (x *BleDevices) GetDistance() float32
func (*BleDevices) GetHome ¶
func (x *BleDevices) GetHome() string
func (*BleDevices) GetId ¶
func (x *BleDevices) GetId() string
func (*BleDevices) GetLastSeen ¶
func (x *BleDevices) GetLastSeen() int64
func (*BleDevices) GetMetadata ¶ added in v0.1.5
func (x *BleDevices) GetMetadata() []*Metadata
func (*BleDevices) GetName ¶
func (x *BleDevices) GetName() string
func (*BleDevices) GetTile ¶
func (x *BleDevices) GetTile() bool
func (*BleDevices) ProtoMessage ¶
func (*BleDevices) ProtoMessage()
func (*BleDevices) ProtoReflect ¶
func (x *BleDevices) ProtoReflect() protoreflect.Message
func (*BleDevices) Reset ¶
func (x *BleDevices) Reset()
func (*BleDevices) String ¶
func (x *BleDevices) String() string
type BleRequest ¶
type BleRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*BleRequest) Descriptor
deprecated
func (*BleRequest) Descriptor() ([]byte, []int)
Deprecated: Use BleRequest.ProtoReflect.Descriptor instead.
func (*BleRequest) GetDistance ¶
func (x *BleRequest) GetDistance() float32
func (*BleRequest) GetKey ¶
func (x *BleRequest) GetKey() string
func (*BleRequest) ProtoMessage ¶
func (*BleRequest) ProtoMessage()
func (*BleRequest) ProtoReflect ¶
func (x *BleRequest) ProtoReflect() protoreflect.Message
func (*BleRequest) Reset ¶
func (x *BleRequest) Reset()
func (*BleRequest) String ¶
func (x *BleRequest) String() string
type CQsResponse ¶
type CQsResponse struct { Cqs []*TimedCommands `protobuf:"bytes,1,rep,name=cqs,proto3" json:"cqs,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*CQsResponse) Descriptor
deprecated
func (*CQsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CQsResponse.ProtoReflect.Descriptor instead.
func (*CQsResponse) GetCqs ¶
func (x *CQsResponse) GetCqs() []*TimedCommands
func (*CQsResponse) ProtoMessage ¶
func (*CQsResponse) ProtoMessage()
func (*CQsResponse) ProtoReflect ¶
func (x *CQsResponse) ProtoReflect() protoreflect.Message
func (*CQsResponse) Reset ¶
func (x *CQsResponse) Reset()
func (*CQsResponse) String ¶
func (x *CQsResponse) String() string
type Commands ¶
type Commands struct { Timeout int64 `protobuf:"varint,1,opt,name=Timeout,proto3" json:"Timeout,omitempty"` Command string `protobuf:"bytes,2,opt,name=Command,proto3" json:"Command,omitempty"` Id string `protobuf:"bytes,3,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*Commands) Descriptor
deprecated
func (*Commands) GetCommand ¶
func (*Commands) GetTimeout ¶
func (*Commands) ProtoMessage ¶
func (*Commands) ProtoMessage()
func (*Commands) ProtoReflect ¶
func (x *Commands) ProtoReflect() protoreflect.Message
type Devices ¶
type Devices struct { Id *NetworkId `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Home string `protobuf:"bytes,2,opt,name=Home,proto3" json:"Home,omitempty"` LastSeen int64 `protobuf:"varint,3,opt,name=LastSeen,proto3" json:"LastSeen,omitempty"` Away bool `protobuf:"varint,4,opt,name=Away,proto3" json:"Away,omitempty"` Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"` Person bool `protobuf:"varint,6,opt,name=Person,proto3" json:"Person,omitempty"` Command string `protobuf:"bytes,7,opt,name=Command,proto3" json:"Command,omitempty"` Smart bool `protobuf:"varint,8,opt,name=Smart,proto3" json:"Smart,omitempty"` Manufacturer string `protobuf:"bytes,9,opt,name=Manufacturer,proto3" json:"Manufacturer,omitempty"` PresenceAware bool `protobuf:"varint,10,opt,name=PresenceAware,proto3" json:"PresenceAware,omitempty"` Latency float32 `protobuf:"fixed32,11,opt,name=Latency,proto3" json:"Latency,omitempty"` Hostnames []string `protobuf:"bytes,12,rep,name=Hostnames,proto3" json:"Hostnames,omitempty"` Metadata []*Metadata `protobuf:"bytes,13,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*Devices) Descriptor
deprecated
func (*Devices) GetCommand ¶
func (*Devices) GetHostnames ¶ added in v0.1.5
func (*Devices) GetLastSeen ¶
func (*Devices) GetLatency ¶
func (*Devices) GetManufacturer ¶
func (*Devices) GetMetadata ¶ added in v0.1.5
func (*Devices) GetPresenceAware ¶
func (*Devices) ProtoMessage ¶
func (*Devices) ProtoMessage()
func (*Devices) ProtoReflect ¶
func (x *Devices) ProtoReflect() protoreflect.Message
type DevicesResponse ¶
type DevicesResponse struct { Devices []*Devices `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` // contains filtered or unexported fields }
func (*DevicesResponse) Descriptor
deprecated
func (*DevicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DevicesResponse.ProtoReflect.Descriptor instead.
func (*DevicesResponse) GetDevices ¶
func (x *DevicesResponse) GetDevices() []*Devices
func (*DevicesResponse) ProtoMessage ¶
func (*DevicesResponse) ProtoMessage()
func (*DevicesResponse) ProtoReflect ¶
func (x *DevicesResponse) ProtoReflect() protoreflect.Message
func (*DevicesResponse) Reset ¶
func (x *DevicesResponse) Reset()
func (*DevicesResponse) String ¶
func (x *DevicesResponse) String() string
type FCMCall ¶ added in v0.1.5
type FCMCall struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*FCMCall) Descriptor
deprecated
added in
v0.1.5
func (*FCMCall) ProtoMessage ¶ added in v0.1.5
func (*FCMCall) ProtoMessage()
func (*FCMCall) ProtoReflect ¶ added in v0.1.5
func (x *FCMCall) ProtoReflect() protoreflect.Message
type GoogleAssistantCall ¶ added in v0.1.5
type GoogleAssistantCall struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` Converse bool `protobuf:"varint,3,opt,name=converse,proto3" json:"converse,omitempty"` // contains filtered or unexported fields }
func (*GoogleAssistantCall) Descriptor
deprecated
added in
v0.1.5
func (*GoogleAssistantCall) Descriptor() ([]byte, []int)
Deprecated: Use GoogleAssistantCall.ProtoReflect.Descriptor instead.
func (*GoogleAssistantCall) GetCommand ¶ added in v0.1.5
func (x *GoogleAssistantCall) GetCommand() string
func (*GoogleAssistantCall) GetConverse ¶ added in v0.1.5
func (x *GoogleAssistantCall) GetConverse() bool
func (*GoogleAssistantCall) GetUser ¶ added in v0.1.5
func (x *GoogleAssistantCall) GetUser() string
func (*GoogleAssistantCall) ProtoMessage ¶ added in v0.1.5
func (*GoogleAssistantCall) ProtoMessage()
func (*GoogleAssistantCall) ProtoReflect ¶ added in v0.1.5
func (x *GoogleAssistantCall) ProtoReflect() protoreflect.Message
func (*GoogleAssistantCall) Reset ¶ added in v0.1.5
func (x *GoogleAssistantCall) Reset()
func (*GoogleAssistantCall) String ¶ added in v0.1.5
func (x *GoogleAssistantCall) String() string
type HomeDetectorClient ¶
type HomeDetectorClient interface { // Sends a greeting Ack(ctx context.Context, in *BleRequest, opts ...grpc.CallOption) (*Reply, error) Address(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*Reply, error) Addresses(ctx context.Context, in *AddressesRequest, opts ...grpc.CallOption) (*Reply, error) ListTimedCommands(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TCsResponse, error) ListCommandQueue(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CQsResponse, error) ListDevices(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DevicesResponse, error) UpdateDevice(ctx context.Context, in *Devices, opts ...grpc.CallOption) (*Reply, error) DeleteDevice(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) DeleteCommandQueue(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) DeleteTimedCommand(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) CompleteTimedCommands(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) CompleteTimedCommand(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) CreateTimedCommand(ctx context.Context, in *TimedCommands, opts ...grpc.CallOption) (*Reply, error) ListPeople(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PeopleResponse, error) TogglePerson(ctx context.Context, in *Devices, opts ...grpc.CallOption) (*Reply, error) HouseEmpty(ctx context.Context, in *StringRequest, opts ...grpc.CallOption) (*Reply, error) }
HomeDetectorClient is the client API for HomeDetector service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHomeDetectorClient ¶
func NewHomeDetectorClient(cc grpc.ClientConnInterface) HomeDetectorClient
type HomeDetectorServer ¶
type HomeDetectorServer interface { // Sends a greeting Ack(context.Context, *BleRequest) (*Reply, error) Address(context.Context, *AddressRequest) (*Reply, error) Addresses(context.Context, *AddressesRequest) (*Reply, error) ListTimedCommands(context.Context, *emptypb.Empty) (*TCsResponse, error) ListCommandQueue(context.Context, *emptypb.Empty) (*CQsResponse, error) ListDevices(context.Context, *emptypb.Empty) (*DevicesResponse, error) UpdateDevice(context.Context, *Devices) (*Reply, error) DeleteDevice(context.Context, *StringRequest) (*Reply, error) DeleteCommandQueue(context.Context, *StringRequest) (*Reply, error) DeleteTimedCommand(context.Context, *StringRequest) (*Reply, error) CompleteTimedCommands(context.Context, *StringRequest) (*Reply, error) CompleteTimedCommand(context.Context, *StringRequest) (*Reply, error) CreateTimedCommand(context.Context, *TimedCommands) (*Reply, error) ListPeople(context.Context, *emptypb.Empty) (*PeopleResponse, error) TogglePerson(context.Context, *Devices) (*Reply, error) HouseEmpty(context.Context, *StringRequest) (*Reply, error) // contains filtered or unexported methods }
HomeDetectorServer is the server API for HomeDetector service. All implementations must embed UnimplementedHomeDetectorServer for forward compatibility
type MQTTAddressRequest ¶
type MQTTAddressRequest struct { Agent *MQTTAgent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` Addresses []*AddressRequest `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Metadata []*Metadata `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*MQTTAddressRequest) Descriptor
deprecated
func (*MQTTAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use MQTTAddressRequest.ProtoReflect.Descriptor instead.
func (*MQTTAddressRequest) GetAddresses ¶
func (x *MQTTAddressRequest) GetAddresses() []*AddressRequest
func (*MQTTAddressRequest) GetAgent ¶
func (x *MQTTAddressRequest) GetAgent() *MQTTAgent
func (*MQTTAddressRequest) GetMetadata ¶ added in v0.1.5
func (x *MQTTAddressRequest) GetMetadata() []*Metadata
func (*MQTTAddressRequest) GetTimestamp ¶ added in v0.1.5
func (x *MQTTAddressRequest) GetTimestamp() int64
func (*MQTTAddressRequest) ProtoMessage ¶
func (*MQTTAddressRequest) ProtoMessage()
func (*MQTTAddressRequest) ProtoReflect ¶
func (x *MQTTAddressRequest) ProtoReflect() protoreflect.Message
func (*MQTTAddressRequest) Reset ¶
func (x *MQTTAddressRequest) Reset()
func (*MQTTAddressRequest) String ¶
func (x *MQTTAddressRequest) String() string
type MQTTAgent ¶
type MQTTAgent struct { Home string `protobuf:"bytes,1,opt,name=home,proto3" json:"home,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MQTTAgent) Descriptor
deprecated
func (*MQTTAgent) ProtoMessage ¶
func (*MQTTAgent) ProtoMessage()
func (*MQTTAgent) ProtoReflect ¶
func (x *MQTTAgent) ProtoReflect() protoreflect.Message
type MQTTBleRequest ¶
type MQTTBleRequest struct { Agent *MQTTAgent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` Bles *BleRequest `protobuf:"bytes,2,opt,name=bles,proto3" json:"bles,omitempty"` Metadata []*Metadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*MQTTBleRequest) Descriptor
deprecated
func (*MQTTBleRequest) Descriptor() ([]byte, []int)
Deprecated: Use MQTTBleRequest.ProtoReflect.Descriptor instead.
func (*MQTTBleRequest) GetAgent ¶
func (x *MQTTBleRequest) GetAgent() *MQTTAgent
func (*MQTTBleRequest) GetBles ¶
func (x *MQTTBleRequest) GetBles() *BleRequest
func (*MQTTBleRequest) GetMetadata ¶ added in v0.1.5
func (x *MQTTBleRequest) GetMetadata() []*Metadata
func (*MQTTBleRequest) ProtoMessage ¶
func (*MQTTBleRequest) ProtoMessage()
func (*MQTTBleRequest) ProtoReflect ¶
func (x *MQTTBleRequest) ProtoReflect() protoreflect.Message
func (*MQTTBleRequest) Reset ¶
func (x *MQTTBleRequest) Reset()
func (*MQTTBleRequest) String ¶
func (x *MQTTBleRequest) String() string
type Metadata ¶ added in v0.1.5
type Metadata struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
added in
v0.1.5
func (*Metadata) ProtoMessage ¶ added in v0.1.5
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.1.5
func (x *Metadata) ProtoReflect() protoreflect.Message
type NetworkId ¶
type NetworkId struct { Ip string `protobuf:"bytes,1,opt,name=Ip,proto3" json:"Ip,omitempty"` Mac string `protobuf:"bytes,2,opt,name=Mac,proto3" json:"Mac,omitempty"` UUID string `protobuf:"bytes,3,opt,name=UUID,proto3" json:"UUID,omitempty"` // contains filtered or unexported fields }
func (*NetworkId) Descriptor
deprecated
func (*NetworkId) ProtoMessage ¶
func (*NetworkId) ProtoMessage()
func (*NetworkId) ProtoReflect ¶
func (x *NetworkId) ProtoReflect() protoreflect.Message
type People ¶ added in v0.1.5
type People struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` Away bool `protobuf:"varint,3,opt,name=away,proto3" json:"away,omitempty"` Home string `protobuf:"bytes,4,opt,name=home,proto3" json:"home,omitempty"` // contains filtered or unexported fields }
func (*People) Descriptor
deprecated
added in
v0.1.5
func (*People) ProtoMessage ¶ added in v0.1.5
func (*People) ProtoMessage()
func (*People) ProtoReflect ¶ added in v0.1.5
func (x *People) ProtoReflect() protoreflect.Message
type PeopleResponse ¶ added in v0.1.5
type PeopleResponse struct { People []*People `protobuf:"bytes,1,rep,name=people,proto3" json:"people,omitempty"` // contains filtered or unexported fields }
func (*PeopleResponse) Descriptor
deprecated
added in
v0.1.5
func (*PeopleResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeopleResponse.ProtoReflect.Descriptor instead.
func (*PeopleResponse) GetPeople ¶ added in v0.1.5
func (x *PeopleResponse) GetPeople() []*People
func (*PeopleResponse) ProtoMessage ¶ added in v0.1.5
func (*PeopleResponse) ProtoMessage()
func (*PeopleResponse) ProtoReflect ¶ added in v0.1.5
func (x *PeopleResponse) ProtoReflect() protoreflect.Message
func (*PeopleResponse) Reset ¶ added in v0.1.5
func (x *PeopleResponse) Reset()
func (*PeopleResponse) String ¶ added in v0.1.5
func (x *PeopleResponse) String() string
type Reply ¶
type Reply struct { Acknowledged bool `protobuf:"varint,1,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*Reply) Descriptor
deprecated
func (*Reply) GetAcknowledged ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type StringRequest ¶
type StringRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*StringRequest) Descriptor
deprecated
func (*StringRequest) Descriptor() ([]byte, []int)
Deprecated: Use StringRequest.ProtoReflect.Descriptor instead.
func (*StringRequest) GetKey ¶
func (x *StringRequest) GetKey() string
func (*StringRequest) ProtoMessage ¶
func (*StringRequest) ProtoMessage()
func (*StringRequest) ProtoReflect ¶
func (x *StringRequest) ProtoReflect() protoreflect.Message
func (*StringRequest) Reset ¶
func (x *StringRequest) Reset()
func (*StringRequest) String ¶
func (x *StringRequest) String() string
type TCsResponse ¶
type TCsResponse struct { Bles []*BleDevices `protobuf:"bytes,1,rep,name=bles,proto3" json:"bles,omitempty"` // contains filtered or unexported fields }
func (*TCsResponse) Descriptor
deprecated
func (*TCsResponse) Descriptor() ([]byte, []int)
Deprecated: Use TCsResponse.ProtoReflect.Descriptor instead.
func (*TCsResponse) GetBles ¶
func (x *TCsResponse) GetBles() []*BleDevices
func (*TCsResponse) ProtoMessage ¶
func (*TCsResponse) ProtoMessage()
func (*TCsResponse) ProtoReflect ¶
func (x *TCsResponse) ProtoReflect() protoreflect.Message
func (*TCsResponse) Reset ¶
func (x *TCsResponse) Reset()
func (*TCsResponse) String ¶
func (x *TCsResponse) String() string
type TimedCommands ¶
type TimedCommands struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Executeat int64 `protobuf:"varint,2,opt,name=executeat,proto3" json:"executeat,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` Command string `protobuf:"bytes,4,opt,name=command,proto3" json:"command,omitempty"` Executed bool `protobuf:"varint,5,opt,name=executed,proto3" json:"executed,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*TimedCommands) Descriptor
deprecated
func (*TimedCommands) Descriptor() ([]byte, []int)
Deprecated: Use TimedCommands.ProtoReflect.Descriptor instead.
func (*TimedCommands) GetCommand ¶
func (x *TimedCommands) GetCommand() string
func (*TimedCommands) GetExecuteat ¶
func (x *TimedCommands) GetExecuteat() int64
func (*TimedCommands) GetExecuted ¶
func (x *TimedCommands) GetExecuted() bool
func (*TimedCommands) GetId ¶
func (x *TimedCommands) GetId() string
func (*TimedCommands) GetOwner ¶
func (x *TimedCommands) GetOwner() string
func (*TimedCommands) ProtoMessage ¶
func (*TimedCommands) ProtoMessage()
func (*TimedCommands) ProtoReflect ¶
func (x *TimedCommands) ProtoReflect() protoreflect.Message
func (*TimedCommands) Reset ¶
func (x *TimedCommands) Reset()
func (*TimedCommands) String ¶
func (x *TimedCommands) String() string
type UnimplementedHomeDetectorServer ¶
type UnimplementedHomeDetectorServer struct { }
UnimplementedHomeDetectorServer must be embedded to have forward compatible implementations.
func (UnimplementedHomeDetectorServer) Ack ¶
func (UnimplementedHomeDetectorServer) Ack(context.Context, *BleRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) Address ¶
func (UnimplementedHomeDetectorServer) Address(context.Context, *AddressRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) Addresses ¶
func (UnimplementedHomeDetectorServer) Addresses(context.Context, *AddressesRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) CompleteTimedCommand ¶
func (UnimplementedHomeDetectorServer) CompleteTimedCommand(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) CompleteTimedCommands ¶
func (UnimplementedHomeDetectorServer) CompleteTimedCommands(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) CreateTimedCommand ¶
func (UnimplementedHomeDetectorServer) CreateTimedCommand(context.Context, *TimedCommands) (*Reply, error)
func (UnimplementedHomeDetectorServer) DeleteCommandQueue ¶
func (UnimplementedHomeDetectorServer) DeleteCommandQueue(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) DeleteDevice ¶
func (UnimplementedHomeDetectorServer) DeleteDevice(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) DeleteTimedCommand ¶
func (UnimplementedHomeDetectorServer) DeleteTimedCommand(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) HouseEmpty ¶ added in v0.1.5
func (UnimplementedHomeDetectorServer) HouseEmpty(context.Context, *StringRequest) (*Reply, error)
func (UnimplementedHomeDetectorServer) ListCommandQueue ¶
func (UnimplementedHomeDetectorServer) ListCommandQueue(context.Context, *emptypb.Empty) (*CQsResponse, error)
func (UnimplementedHomeDetectorServer) ListDevices ¶
func (UnimplementedHomeDetectorServer) ListDevices(context.Context, *emptypb.Empty) (*DevicesResponse, error)
func (UnimplementedHomeDetectorServer) ListPeople ¶ added in v0.1.5
func (UnimplementedHomeDetectorServer) ListPeople(context.Context, *emptypb.Empty) (*PeopleResponse, error)
func (UnimplementedHomeDetectorServer) ListTimedCommands ¶
func (UnimplementedHomeDetectorServer) ListTimedCommands(context.Context, *emptypb.Empty) (*TCsResponse, error)
func (UnimplementedHomeDetectorServer) TogglePerson ¶ added in v0.1.5
func (UnimplementedHomeDetectorServer) UpdateDevice ¶
type UnsafeHomeDetectorServer ¶
type UnsafeHomeDetectorServer interface {
// contains filtered or unexported methods
}
UnsafeHomeDetectorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HomeDetectorServer will result in compilation errors.