Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterClientApplicationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterClientApplicationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClientApplicationClient) error
- func RegisterClientApplicationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterClientApplicationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClientApplicationServer) error
- func RegisterClientApplicationServer(s grpc.ServiceRegistrar, srv ClientApplicationServer)
- type ClearCacheRequest
- type ClearCacheResponse
- type ClientApplicationClient
- type ClientApplicationServer
- type ClientApplication_GetDevicesClient
- type ClientApplication_GetDevicesServer
- type CreateResourceRequest
- func (*CreateResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResourceRequest) GetContent() *pb.Content
- func (x *CreateResourceRequest) GetResourceId() *commands.ResourceId
- func (*CreateResourceRequest) ProtoMessage()
- func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateResourceRequest) Reset()
- func (x *CreateResourceRequest) String() string
- type DeleteResourceRequest
- func (*DeleteResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResourceRequest) GetResourceId() *commands.ResourceId
- func (*DeleteResourceRequest) ProtoMessage()
- func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteResourceRequest) Reset()
- func (x *DeleteResourceRequest) String() string
- type DisownDeviceRequest
- func (*DisownDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DisownDeviceRequest) GetDeviceId() string
- func (*DisownDeviceRequest) ProtoMessage()
- func (x *DisownDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *DisownDeviceRequest) Reset()
- func (x *DisownDeviceRequest) String() string
- type DisownDeviceResponse
- type GetDeviceRequest
- type GetDeviceResourceLinksRequest
- func (*GetDeviceResourceLinksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceResourceLinksRequest) GetDeviceId() string
- func (*GetDeviceResourceLinksRequest) ProtoMessage()
- func (x *GetDeviceResourceLinksRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeviceResourceLinksRequest) Reset()
- func (x *GetDeviceResourceLinksRequest) String() string
- type GetDevicesRequest
- func (*GetDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDevicesRequest) GetOwnershipStatusFilter() []GetDevicesRequest_OwnershipStatusFilter
- func (x *GetDevicesRequest) GetTimeout() uint32
- func (x *GetDevicesRequest) GetTypeFilter() []string
- func (x *GetDevicesRequest) GetUseCache() bool
- func (x *GetDevicesRequest) GetUseEndpoints() []string
- func (x *GetDevicesRequest) GetUseMulticast() []GetDevicesRequest_UseMulticast
- func (*GetDevicesRequest) ProtoMessage()
- func (x *GetDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetDevicesRequest) Reset()
- func (x *GetDevicesRequest) String() string
- type GetDevicesRequest_OwnershipStatusFilter
- func (GetDevicesRequest_OwnershipStatusFilter) Descriptor() protoreflect.EnumDescriptor
- func (x GetDevicesRequest_OwnershipStatusFilter) Enum() *GetDevicesRequest_OwnershipStatusFilter
- func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetDevicesRequest_OwnershipStatusFilter) Number() protoreflect.EnumNumber
- func (x GetDevicesRequest_OwnershipStatusFilter) String() string
- func (GetDevicesRequest_OwnershipStatusFilter) Type() protoreflect.EnumType
- type GetDevicesRequest_UseMulticast
- func (GetDevicesRequest_UseMulticast) Descriptor() protoreflect.EnumDescriptor
- func (x GetDevicesRequest_UseMulticast) Enum() *GetDevicesRequest_UseMulticast
- func (GetDevicesRequest_UseMulticast) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetDevicesRequest_UseMulticast) Number() protoreflect.EnumNumber
- func (x GetDevicesRequest_UseMulticast) String() string
- func (GetDevicesRequest_UseMulticast) Type() protoreflect.EnumType
- type GetInformationRequest
- type GetInformationResponse
- func (*GetInformationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInformationResponse) GetBuildDate() string
- func (x *GetInformationResponse) GetCommitDate() string
- func (x *GetInformationResponse) GetCommitHash() string
- func (x *GetInformationResponse) GetReleaseUrl() string
- func (x *GetInformationResponse) GetVersion() string
- func (*GetInformationResponse) ProtoMessage()
- func (x *GetInformationResponse) ProtoReflect() protoreflect.Message
- func (x *GetInformationResponse) Reset()
- func (x *GetInformationResponse) String() string
- type GetResourceRequest
- func (*GetResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetResourceRequest) GetResourceId() *commands.ResourceId
- func (*GetResourceRequest) ProtoMessage()
- func (x *GetResourceRequest) ProtoReflect() protoreflect.Message
- func (x *GetResourceRequest) Reset()
- func (x *GetResourceRequest) String() string
- type OwnDeviceRequest
- type OwnDeviceResponse
- type UnimplementedClientApplicationServer
- func (UnimplementedClientApplicationServer) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
- func (UnimplementedClientApplicationServer) CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error)
- func (UnimplementedClientApplicationServer) DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error)
- func (UnimplementedClientApplicationServer) DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error)
- func (UnimplementedClientApplicationServer) GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error)
- func (UnimplementedClientApplicationServer) GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
- func (UnimplementedClientApplicationServer) GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error
- func (UnimplementedClientApplicationServer) GetInformation(context.Context, *GetInformationRequest) (*GetInformationResponse, error)
- func (UnimplementedClientApplicationServer) GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error)
- func (UnimplementedClientApplicationServer) OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error)
- func (UnimplementedClientApplicationServer) UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
- type UnsafeClientApplicationServer
- type UpdateResourceRequest
- func (*UpdateResourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResourceRequest) GetContent() *pb.Content
- func (x *UpdateResourceRequest) GetResourceId() *commands.ResourceId
- func (*UpdateResourceRequest) ProtoMessage()
- func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateResourceRequest) Reset()
- func (x *UpdateResourceRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( GetDevicesRequest_OwnershipStatusFilter_name = map[int32]string{ 0: "UNOWNED", 1: "OWNED", } GetDevicesRequest_OwnershipStatusFilter_value = map[string]int32{ "UNOWNED": 0, "OWNED": 1, } )
Enum value maps for GetDevicesRequest_OwnershipStatusFilter.
var ( GetDevicesRequest_UseMulticast_name = map[int32]string{ 0: "IPV4", 1: "IPV6", } GetDevicesRequest_UseMulticast_value = map[string]int32{ "IPV4": 0, "IPV6": 1, } )
Enum value maps for GetDevicesRequest_UseMulticast.
var ClientApplication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "service.pb.ClientApplication", HandlerType: (*ClientApplicationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDevice", Handler: _ClientApplication_GetDevice_Handler, }, { MethodName: "GetDeviceResourceLinks", Handler: _ClientApplication_GetDeviceResourceLinks_Handler, }, { MethodName: "GetResource", Handler: _ClientApplication_GetResource_Handler, }, { MethodName: "UpdateResource", Handler: _ClientApplication_UpdateResource_Handler, }, { MethodName: "CreateResource", Handler: _ClientApplication_CreateResource_Handler, }, { MethodName: "DeleteResource", Handler: _ClientApplication_DeleteResource_Handler, }, { MethodName: "OwnDevice", Handler: _ClientApplication_OwnDevice_Handler, }, { MethodName: "DisownDevice", Handler: _ClientApplication_DisownDevice_Handler, }, { MethodName: "ClearCache", Handler: _ClientApplication_ClearCache_Handler, }, { MethodName: "GetInformation", Handler: _ClientApplication_GetInformation_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDevices", Handler: _ClientApplication_GetDevices_Handler, ServerStreams: true, }, }, Metadata: "github.com/plgd-dev/client-application/pb/service.proto", }
ClientApplication_ServiceDesc is the grpc.ServiceDesc for ClientApplication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_plgd_dev_client_application_pb_clear_cache_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_create_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_delete_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_disown_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_device_resource_links_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_devices_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_information_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_get_resource_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_own_device_proto protoreflect.FileDescriptor
var File_github_com_plgd_dev_client_application_pb_update_resource_proto protoreflect.FileDescriptor
Functions ¶
func RegisterClientApplicationHandler ¶
func RegisterClientApplicationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterClientApplicationHandler registers the http handlers for service ClientApplication to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterClientApplicationHandlerClient ¶
func RegisterClientApplicationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClientApplicationClient) error
RegisterClientApplicationHandlerClient registers the http handlers for service ClientApplication to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClientApplicationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClientApplicationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClientApplicationClient" to call the correct interceptors.
func RegisterClientApplicationHandlerFromEndpoint ¶
func RegisterClientApplicationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterClientApplicationHandlerFromEndpoint is same as RegisterClientApplicationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterClientApplicationHandlerServer ¶
func RegisterClientApplicationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClientApplicationServer) error
RegisterClientApplicationHandlerServer registers the http handlers for service ClientApplication to "mux". UnaryRPC :call ClientApplicationServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterClientApplicationHandlerFromEndpoint instead.
func RegisterClientApplicationServer ¶
func RegisterClientApplicationServer(s grpc.ServiceRegistrar, srv ClientApplicationServer)
Types ¶
type ClearCacheRequest ¶
type ClearCacheRequest struct {
// contains filtered or unexported fields
}
func (*ClearCacheRequest) Descriptor
deprecated
func (*ClearCacheRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearCacheRequest.ProtoReflect.Descriptor instead.
func (*ClearCacheRequest) ProtoMessage ¶
func (*ClearCacheRequest) ProtoMessage()
func (*ClearCacheRequest) ProtoReflect ¶
func (x *ClearCacheRequest) ProtoReflect() protoreflect.Message
func (*ClearCacheRequest) Reset ¶
func (x *ClearCacheRequest) Reset()
func (*ClearCacheRequest) String ¶
func (x *ClearCacheRequest) String() string
type ClearCacheResponse ¶
type ClearCacheResponse struct {
// contains filtered or unexported fields
}
func (*ClearCacheResponse) Descriptor
deprecated
func (*ClearCacheResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClearCacheResponse.ProtoReflect.Descriptor instead.
func (*ClearCacheResponse) ProtoMessage ¶
func (*ClearCacheResponse) ProtoMessage()
func (*ClearCacheResponse) ProtoReflect ¶
func (x *ClearCacheResponse) ProtoReflect() protoreflect.Message
func (*ClearCacheResponse) Reset ¶
func (x *ClearCacheResponse) Reset()
func (*ClearCacheResponse) String ¶
func (x *ClearCacheResponse) String() string
type ClientApplicationClient ¶
type ClientApplicationClient interface { // Discover devices by client application. This operation fills cache of mappings deviceId to endpoints and this cache is used by other calls. GetDevices(ctx context.Context, in *GetDevicesRequest, opts ...grpc.CallOption) (ClientApplication_GetDevicesClient, error) // Get device information from the device. Device needs to be stored in cache otherwise it returns not found. GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*pb.Device, error) // Get resource links of devices. Device needs to be stored in cache otherwise it returns not found. GetDeviceResourceLinks(ctx context.Context, in *GetDeviceResourceLinksRequest, opts ...grpc.CallOption) (*events.ResourceLinksPublished, error) // Get a resource from the device. Device needs to be stored in cache otherwise it returns not found. GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*pb.Resource, error) // Update a resource at the device. Device needs to be stored in cache otherwise it returns not found. UpdateResource(ctx context.Context, in *UpdateResourceRequest, opts ...grpc.CallOption) (*pb.UpdateResourceResponse, error) // Create a resource at the device. Device needs to be stored in cache otherwise it returns not found. CreateResource(ctx context.Context, in *CreateResourceRequest, opts ...grpc.CallOption) (*pb.CreateResourceResponse, error) // Delete a resource at the device. Device needs to be stored in cache otherwise it returns not found. DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*pb.DeleteResourceResponse, error) // Own the device. Device needs to be stored in cache otherwise it returns not found. OwnDevice(ctx context.Context, in *OwnDeviceRequest, opts ...grpc.CallOption) (*OwnDeviceResponse, error) // Disown the device. Device needs to be stored in cache otherwise it returns not found. DisownDevice(ctx context.Context, in *DisownDeviceRequest, opts ...grpc.CallOption) (*DisownDeviceResponse, error) // Deletes all devices from the cache. To fill the cache again, call GetDevices. ClearCache(ctx context.Context, in *ClearCacheRequest, opts ...grpc.CallOption) (*ClearCacheResponse, error) GetInformation(ctx context.Context, in *GetInformationRequest, opts ...grpc.CallOption) (*GetInformationResponse, error) }
ClientApplicationClient is the client API for ClientApplication 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 NewClientApplicationClient ¶
func NewClientApplicationClient(cc grpc.ClientConnInterface) ClientApplicationClient
type ClientApplicationServer ¶
type ClientApplicationServer interface { // Discover devices by client application. This operation fills cache of mappings deviceId to endpoints and this cache is used by other calls. GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error // Get device information from the device. Device needs to be stored in cache otherwise it returns not found. GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error) // Get resource links of devices. Device needs to be stored in cache otherwise it returns not found. GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error) // Get a resource from the device. Device needs to be stored in cache otherwise it returns not found. GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error) // Update a resource at the device. Device needs to be stored in cache otherwise it returns not found. UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error) // Create a resource at the device. Device needs to be stored in cache otherwise it returns not found. CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error) // Delete a resource at the device. Device needs to be stored in cache otherwise it returns not found. DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error) // Own the device. Device needs to be stored in cache otherwise it returns not found. OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error) // Disown the device. Device needs to be stored in cache otherwise it returns not found. DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error) // Deletes all devices from the cache. To fill the cache again, call GetDevices. ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error) GetInformation(context.Context, *GetInformationRequest) (*GetInformationResponse, error) // contains filtered or unexported methods }
ClientApplicationServer is the server API for ClientApplication service. All implementations must embed UnimplementedClientApplicationServer for forward compatibility
type ClientApplication_GetDevicesClient ¶
type ClientApplication_GetDevicesClient interface { Recv() (*pb.Device, error) grpc.ClientStream }
type ClientApplication_GetDevicesServer ¶
type ClientApplication_GetDevicesServer interface { Send(*pb.Device) error grpc.ServerStream }
type CreateResourceRequest ¶
type CreateResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Content *pb.Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*CreateResourceRequest) Descriptor
deprecated
func (*CreateResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead.
func (*CreateResourceRequest) GetContent ¶
func (x *CreateResourceRequest) GetContent() *pb.Content
func (*CreateResourceRequest) GetResourceId ¶
func (x *CreateResourceRequest) GetResourceId() *commands.ResourceId
func (*CreateResourceRequest) ProtoMessage ¶
func (*CreateResourceRequest) ProtoMessage()
func (*CreateResourceRequest) ProtoReflect ¶
func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message
func (*CreateResourceRequest) Reset ¶
func (x *CreateResourceRequest) Reset()
func (*CreateResourceRequest) String ¶
func (x *CreateResourceRequest) String() string
type DeleteResourceRequest ¶
type DeleteResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteResourceRequest) Descriptor
deprecated
func (*DeleteResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteResourceRequest) GetResourceId ¶
func (x *DeleteResourceRequest) GetResourceId() *commands.ResourceId
func (*DeleteResourceRequest) ProtoMessage ¶
func (*DeleteResourceRequest) ProtoMessage()
func (*DeleteResourceRequest) ProtoReflect ¶
func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message
func (*DeleteResourceRequest) Reset ¶
func (x *DeleteResourceRequest) Reset()
func (*DeleteResourceRequest) String ¶
func (x *DeleteResourceRequest) String() string
type DisownDeviceRequest ¶
type DisownDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*DisownDeviceRequest) Descriptor
deprecated
func (*DisownDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DisownDeviceRequest.ProtoReflect.Descriptor instead.
func (*DisownDeviceRequest) GetDeviceId ¶
func (x *DisownDeviceRequest) GetDeviceId() string
func (*DisownDeviceRequest) ProtoMessage ¶
func (*DisownDeviceRequest) ProtoMessage()
func (*DisownDeviceRequest) ProtoReflect ¶
func (x *DisownDeviceRequest) ProtoReflect() protoreflect.Message
func (*DisownDeviceRequest) Reset ¶
func (x *DisownDeviceRequest) Reset()
func (*DisownDeviceRequest) String ¶
func (x *DisownDeviceRequest) String() string
type DisownDeviceResponse ¶
type DisownDeviceResponse struct {
// contains filtered or unexported fields
}
func (*DisownDeviceResponse) Descriptor
deprecated
func (*DisownDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DisownDeviceResponse.ProtoReflect.Descriptor instead.
func (*DisownDeviceResponse) ProtoMessage ¶
func (*DisownDeviceResponse) ProtoMessage()
func (*DisownDeviceResponse) ProtoReflect ¶
func (x *DisownDeviceResponse) ProtoReflect() protoreflect.Message
func (*DisownDeviceResponse) Reset ¶
func (x *DisownDeviceResponse) Reset()
func (*DisownDeviceResponse) String ¶
func (x *DisownDeviceResponse) String() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceRequest) Descriptor
deprecated
func (*GetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceRequest) GetDeviceId ¶
func (x *GetDeviceRequest) GetDeviceId() string
func (*GetDeviceRequest) ProtoMessage ¶
func (*GetDeviceRequest) ProtoMessage()
func (*GetDeviceRequest) ProtoReflect ¶
func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceRequest) Reset ¶
func (x *GetDeviceRequest) Reset()
func (*GetDeviceRequest) String ¶
func (x *GetDeviceRequest) String() string
type GetDeviceResourceLinksRequest ¶
type GetDeviceResourceLinksRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceResourceLinksRequest) Descriptor
deprecated
func (*GetDeviceResourceLinksRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceResourceLinksRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceResourceLinksRequest) GetDeviceId ¶
func (x *GetDeviceResourceLinksRequest) GetDeviceId() string
func (*GetDeviceResourceLinksRequest) ProtoMessage ¶
func (*GetDeviceResourceLinksRequest) ProtoMessage()
func (*GetDeviceResourceLinksRequest) ProtoReflect ¶
func (x *GetDeviceResourceLinksRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceResourceLinksRequest) Reset ¶
func (x *GetDeviceResourceLinksRequest) Reset()
func (*GetDeviceResourceLinksRequest) String ¶
func (x *GetDeviceResourceLinksRequest) String() string
type GetDevicesRequest ¶
type GetDevicesRequest struct { // Devices are taken from the cache. Default: false. UseCache bool `protobuf:"varint,1,opt,name=use_cache,json=useCache,proto3" json:"use_cache,omitempty"` // Filter by multicast IP address version. Default: [] - multicast is disabled. If it is set, the new devices will be added to cache. UseMulticast []GetDevicesRequest_UseMulticast `` /* 152-byte string literal not displayed */ // Returns devices via endpoints. Default: [] - filter is disabled. New devices will be added to cache. Not reachable devices will be not in response. // Endpoint can be in format: // - <host>:<port> is interpreted as coap://<host>:<port> // - <host> is interpreted as coap://<host>:5683 UseEndpoints []string `protobuf:"bytes,3,rep,name=use_endpoints,json=useEndpoints,proto3" json:"use_endpoints,omitempty"` // How long to wait for the devices responses for responses in milliseconds. Default: 0 - means 2sec. Timeout uint32 `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // Filter by ownership status. Default: [UNOWNED,OWNED]. OwnershipStatusFilter []GetDevicesRequest_OwnershipStatusFilter `` /* 190-byte string literal not displayed */ // Filter by device resource type of oic/d. Default: [] - filter is disabled. TypeFilter []string `protobuf:"bytes,6,rep,name=type_filter,json=typeFilter,proto3" json:"type_filter,omitempty"` // contains filtered or unexported fields }
Returns a list of devices. The list is sorted by device id. If use_cache, use_multicast, use_endpoints are not set, then it will set use_multicast with [IPV4,IPV6].
func (*GetDevicesRequest) Descriptor
deprecated
func (*GetDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest.ProtoReflect.Descriptor instead.
func (*GetDevicesRequest) GetOwnershipStatusFilter ¶
func (x *GetDevicesRequest) GetOwnershipStatusFilter() []GetDevicesRequest_OwnershipStatusFilter
func (*GetDevicesRequest) GetTimeout ¶
func (x *GetDevicesRequest) GetTimeout() uint32
func (*GetDevicesRequest) GetTypeFilter ¶
func (x *GetDevicesRequest) GetTypeFilter() []string
func (*GetDevicesRequest) GetUseCache ¶
func (x *GetDevicesRequest) GetUseCache() bool
func (*GetDevicesRequest) GetUseEndpoints ¶
func (x *GetDevicesRequest) GetUseEndpoints() []string
func (*GetDevicesRequest) GetUseMulticast ¶
func (x *GetDevicesRequest) GetUseMulticast() []GetDevicesRequest_UseMulticast
func (*GetDevicesRequest) ProtoMessage ¶
func (*GetDevicesRequest) ProtoMessage()
func (*GetDevicesRequest) ProtoReflect ¶
func (x *GetDevicesRequest) ProtoReflect() protoreflect.Message
func (*GetDevicesRequest) Reset ¶
func (x *GetDevicesRequest) Reset()
func (*GetDevicesRequest) String ¶
func (x *GetDevicesRequest) String() string
type GetDevicesRequest_OwnershipStatusFilter ¶
type GetDevicesRequest_OwnershipStatusFilter int32
const ( // get only unowned devices GetDevicesRequest_UNOWNED GetDevicesRequest_OwnershipStatusFilter = 0 // get only owned devices GetDevicesRequest_OWNED GetDevicesRequest_OwnershipStatusFilter = 1 )
func (GetDevicesRequest_OwnershipStatusFilter) Descriptor ¶
func (GetDevicesRequest_OwnershipStatusFilter) Descriptor() protoreflect.EnumDescriptor
func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor
deprecated
func (GetDevicesRequest_OwnershipStatusFilter) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest_OwnershipStatusFilter.Descriptor instead.
func (GetDevicesRequest_OwnershipStatusFilter) Number ¶
func (x GetDevicesRequest_OwnershipStatusFilter) Number() protoreflect.EnumNumber
func (GetDevicesRequest_OwnershipStatusFilter) String ¶
func (x GetDevicesRequest_OwnershipStatusFilter) String() string
func (GetDevicesRequest_OwnershipStatusFilter) Type ¶
func (GetDevicesRequest_OwnershipStatusFilter) Type() protoreflect.EnumType
type GetDevicesRequest_UseMulticast ¶
type GetDevicesRequest_UseMulticast int32
const ( GetDevicesRequest_IPV4 GetDevicesRequest_UseMulticast = 0 GetDevicesRequest_IPV6 GetDevicesRequest_UseMulticast = 1 )
func (GetDevicesRequest_UseMulticast) Descriptor ¶
func (GetDevicesRequest_UseMulticast) Descriptor() protoreflect.EnumDescriptor
func (GetDevicesRequest_UseMulticast) Enum ¶
func (x GetDevicesRequest_UseMulticast) Enum() *GetDevicesRequest_UseMulticast
func (GetDevicesRequest_UseMulticast) EnumDescriptor
deprecated
func (GetDevicesRequest_UseMulticast) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest_UseMulticast.Descriptor instead.
func (GetDevicesRequest_UseMulticast) Number ¶
func (x GetDevicesRequest_UseMulticast) Number() protoreflect.EnumNumber
func (GetDevicesRequest_UseMulticast) String ¶
func (x GetDevicesRequest_UseMulticast) String() string
func (GetDevicesRequest_UseMulticast) Type ¶
func (GetDevicesRequest_UseMulticast) Type() protoreflect.EnumType
type GetInformationRequest ¶ added in v0.0.6
type GetInformationRequest struct {
// contains filtered or unexported fields
}
func (*GetInformationRequest) Descriptor
deprecated
added in
v0.0.6
func (*GetInformationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInformationRequest.ProtoReflect.Descriptor instead.
func (*GetInformationRequest) ProtoMessage ¶ added in v0.0.6
func (*GetInformationRequest) ProtoMessage()
func (*GetInformationRequest) ProtoReflect ¶ added in v0.0.6
func (x *GetInformationRequest) ProtoReflect() protoreflect.Message
func (*GetInformationRequest) Reset ¶ added in v0.0.6
func (x *GetInformationRequest) Reset()
func (*GetInformationRequest) String ¶ added in v0.0.6
func (x *GetInformationRequest) String() string
type GetInformationResponse ¶ added in v0.0.6
type GetInformationResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` BuildDate string `protobuf:"bytes,2,opt,name=build_date,json=buildDate,proto3" json:"build_date,omitempty"` CommitHash string `protobuf:"bytes,3,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"` CommitDate string `protobuf:"bytes,4,opt,name=commit_date,json=commitDate,proto3" json:"commit_date,omitempty"` ReleaseUrl string `protobuf:"bytes,5,opt,name=release_url,json=releaseUrl,proto3" json:"release_url,omitempty"` // contains filtered or unexported fields }
func (*GetInformationResponse) Descriptor
deprecated
added in
v0.0.6
func (*GetInformationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInformationResponse.ProtoReflect.Descriptor instead.
func (*GetInformationResponse) GetBuildDate ¶ added in v0.0.6
func (x *GetInformationResponse) GetBuildDate() string
func (*GetInformationResponse) GetCommitDate ¶ added in v0.0.6
func (x *GetInformationResponse) GetCommitDate() string
func (*GetInformationResponse) GetCommitHash ¶ added in v0.0.6
func (x *GetInformationResponse) GetCommitHash() string
func (*GetInformationResponse) GetReleaseUrl ¶ added in v0.0.6
func (x *GetInformationResponse) GetReleaseUrl() string
func (*GetInformationResponse) GetVersion ¶ added in v0.0.6
func (x *GetInformationResponse) GetVersion() string
func (*GetInformationResponse) ProtoMessage ¶ added in v0.0.6
func (*GetInformationResponse) ProtoMessage()
func (*GetInformationResponse) ProtoReflect ¶ added in v0.0.6
func (x *GetInformationResponse) ProtoReflect() protoreflect.Message
func (*GetInformationResponse) Reset ¶ added in v0.0.6
func (x *GetInformationResponse) Reset()
func (*GetInformationResponse) String ¶ added in v0.0.6
func (x *GetInformationResponse) String() string
type GetResourceRequest ¶
type GetResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // contains filtered or unexported fields }
func (*GetResourceRequest) Descriptor
deprecated
func (*GetResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.
func (*GetResourceRequest) GetResourceId ¶
func (x *GetResourceRequest) GetResourceId() *commands.ResourceId
func (*GetResourceRequest) ProtoMessage ¶
func (*GetResourceRequest) ProtoMessage()
func (*GetResourceRequest) ProtoReflect ¶
func (x *GetResourceRequest) ProtoReflect() protoreflect.Message
func (*GetResourceRequest) Reset ¶
func (x *GetResourceRequest) Reset()
func (*GetResourceRequest) String ¶
func (x *GetResourceRequest) String() string
type OwnDeviceRequest ¶
type OwnDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*OwnDeviceRequest) Descriptor
deprecated
func (*OwnDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use OwnDeviceRequest.ProtoReflect.Descriptor instead.
func (*OwnDeviceRequest) GetDeviceId ¶
func (x *OwnDeviceRequest) GetDeviceId() string
func (*OwnDeviceRequest) ProtoMessage ¶
func (*OwnDeviceRequest) ProtoMessage()
func (*OwnDeviceRequest) ProtoReflect ¶
func (x *OwnDeviceRequest) ProtoReflect() protoreflect.Message
func (*OwnDeviceRequest) Reset ¶
func (x *OwnDeviceRequest) Reset()
func (*OwnDeviceRequest) String ¶
func (x *OwnDeviceRequest) String() string
type OwnDeviceResponse ¶
type OwnDeviceResponse struct {
// contains filtered or unexported fields
}
func (*OwnDeviceResponse) Descriptor
deprecated
func (*OwnDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use OwnDeviceResponse.ProtoReflect.Descriptor instead.
func (*OwnDeviceResponse) ProtoMessage ¶
func (*OwnDeviceResponse) ProtoMessage()
func (*OwnDeviceResponse) ProtoReflect ¶
func (x *OwnDeviceResponse) ProtoReflect() protoreflect.Message
func (*OwnDeviceResponse) Reset ¶
func (x *OwnDeviceResponse) Reset()
func (*OwnDeviceResponse) String ¶
func (x *OwnDeviceResponse) String() string
type UnimplementedClientApplicationServer ¶
type UnimplementedClientApplicationServer struct { }
UnimplementedClientApplicationServer must be embedded to have forward compatible implementations.
func (UnimplementedClientApplicationServer) ClearCache ¶
func (UnimplementedClientApplicationServer) ClearCache(context.Context, *ClearCacheRequest) (*ClearCacheResponse, error)
func (UnimplementedClientApplicationServer) CreateResource ¶
func (UnimplementedClientApplicationServer) CreateResource(context.Context, *CreateResourceRequest) (*pb.CreateResourceResponse, error)
func (UnimplementedClientApplicationServer) DeleteResource ¶
func (UnimplementedClientApplicationServer) DeleteResource(context.Context, *DeleteResourceRequest) (*pb.DeleteResourceResponse, error)
func (UnimplementedClientApplicationServer) DisownDevice ¶
func (UnimplementedClientApplicationServer) DisownDevice(context.Context, *DisownDeviceRequest) (*DisownDeviceResponse, error)
func (UnimplementedClientApplicationServer) GetDevice ¶
func (UnimplementedClientApplicationServer) GetDevice(context.Context, *GetDeviceRequest) (*pb.Device, error)
func (UnimplementedClientApplicationServer) GetDeviceResourceLinks ¶
func (UnimplementedClientApplicationServer) GetDeviceResourceLinks(context.Context, *GetDeviceResourceLinksRequest) (*events.ResourceLinksPublished, error)
func (UnimplementedClientApplicationServer) GetDevices ¶
func (UnimplementedClientApplicationServer) GetDevices(*GetDevicesRequest, ClientApplication_GetDevicesServer) error
func (UnimplementedClientApplicationServer) GetInformation ¶ added in v0.0.6
func (UnimplementedClientApplicationServer) GetInformation(context.Context, *GetInformationRequest) (*GetInformationResponse, error)
func (UnimplementedClientApplicationServer) GetResource ¶
func (UnimplementedClientApplicationServer) GetResource(context.Context, *GetResourceRequest) (*pb.Resource, error)
func (UnimplementedClientApplicationServer) OwnDevice ¶
func (UnimplementedClientApplicationServer) OwnDevice(context.Context, *OwnDeviceRequest) (*OwnDeviceResponse, error)
func (UnimplementedClientApplicationServer) UpdateResource ¶
func (UnimplementedClientApplicationServer) UpdateResource(context.Context, *UpdateResourceRequest) (*pb.UpdateResourceResponse, error)
type UnsafeClientApplicationServer ¶
type UnsafeClientApplicationServer interface {
// contains filtered or unexported methods
}
UnsafeClientApplicationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientApplicationServer will result in compilation errors.
type UpdateResourceRequest ¶
type UpdateResourceRequest struct { ResourceId *commands.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Content *pb.Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*UpdateResourceRequest) Descriptor
deprecated
func (*UpdateResourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateResourceRequest) GetContent ¶
func (x *UpdateResourceRequest) GetContent() *pb.Content
func (*UpdateResourceRequest) GetResourceId ¶
func (x *UpdateResourceRequest) GetResourceId() *commands.ResourceId
func (*UpdateResourceRequest) ProtoMessage ¶
func (*UpdateResourceRequest) ProtoMessage()
func (*UpdateResourceRequest) ProtoReflect ¶
func (x *UpdateResourceRequest) ProtoReflect() protoreflect.Message
func (*UpdateResourceRequest) Reset ¶
func (x *UpdateResourceRequest) Reset()
func (*UpdateResourceRequest) String ¶
func (x *UpdateResourceRequest) String() string