Documentation ¶
Index ¶
- Variables
- func RegisterIdentityStoreServer(s grpc.ServiceRegistrar, srv IdentityStoreServer)
- type AddDeviceRequest
- type AddDeviceResponse
- type DeleteDevicesRequest
- func (*DeleteDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDevicesRequest) GetDeviceIds() []string
- func (*DeleteDevicesRequest) ProtoMessage()
- func (x *DeleteDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDevicesRequest) Reset()
- func (x *DeleteDevicesRequest) String() string
- type DeleteDevicesResponse
- func (*DeleteDevicesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDevicesResponse) GetDeviceIds() []string
- func (*DeleteDevicesResponse) ProtoMessage()
- func (x *DeleteDevicesResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDevicesResponse) Reset()
- func (x *DeleteDevicesResponse) String() string
- type Device
- type GetDevicesRequest
- func (*GetDevicesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDevicesRequest) GetDeviceIdsFilter() []string
- func (*GetDevicesRequest) ProtoMessage()
- func (x *GetDevicesRequest) ProtoReflect() protoreflect.Message
- func (x *GetDevicesRequest) Reset()
- func (x *GetDevicesRequest) String() string
- type IdentityStoreClient
- type IdentityStoreServer
- type IdentityStore_GetDevicesClient
- type IdentityStore_GetDevicesServer
- type UnimplementedIdentityStoreServer
- func (UnimplementedIdentityStoreServer) AddDevice(context.Context, *AddDeviceRequest) (*AddDeviceResponse, error)
- func (UnimplementedIdentityStoreServer) DeleteDevices(context.Context, *DeleteDevicesRequest) (*DeleteDevicesResponse, error)
- func (UnimplementedIdentityStoreServer) GetDevices(*GetDevicesRequest, IdentityStore_GetDevicesServer) error
- type UnsafeIdentityStoreServer
Constants ¶
This section is empty.
Variables ¶
var File_github_com_plgd_dev_hub_identity_store_pb_devices_proto protoreflect.FileDescriptor
var IdentityStore_ServiceDesc = grpc.ServiceDesc{ ServiceName: "identitystore.pb.IdentityStore", HandlerType: (*IdentityStoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddDevice", Handler: _IdentityStore_AddDevice_Handler, }, { MethodName: "DeleteDevices", Handler: _IdentityStore_DeleteDevices_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDevices", Handler: _IdentityStore_GetDevices_Handler, ServerStreams: true, }, }, Metadata: "github.com/plgd-dev/hub/identity-store/pb/service.proto", }
IdentityStore_ServiceDesc is the grpc.ServiceDesc for IdentityStore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdentityStoreServer ¶
func RegisterIdentityStoreServer(s grpc.ServiceRegistrar, srv IdentityStoreServer)
Types ¶
type AddDeviceRequest ¶
type AddDeviceRequest struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*AddDeviceRequest) Descriptor
deprecated
func (*AddDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddDeviceRequest.ProtoReflect.Descriptor instead.
func (*AddDeviceRequest) GetDeviceId ¶
func (x *AddDeviceRequest) GetDeviceId() string
func (*AddDeviceRequest) ProtoMessage ¶
func (*AddDeviceRequest) ProtoMessage()
func (*AddDeviceRequest) ProtoReflect ¶
func (x *AddDeviceRequest) ProtoReflect() protoreflect.Message
func (*AddDeviceRequest) Reset ¶
func (x *AddDeviceRequest) Reset()
func (*AddDeviceRequest) String ¶
func (x *AddDeviceRequest) String() string
type AddDeviceResponse ¶
type AddDeviceResponse struct {
// contains filtered or unexported fields
}
func (*AddDeviceResponse) Descriptor
deprecated
func (*AddDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddDeviceResponse.ProtoReflect.Descriptor instead.
func (*AddDeviceResponse) ProtoMessage ¶
func (*AddDeviceResponse) ProtoMessage()
func (*AddDeviceResponse) ProtoReflect ¶
func (x *AddDeviceResponse) ProtoReflect() protoreflect.Message
func (*AddDeviceResponse) Reset ¶
func (x *AddDeviceResponse) Reset()
func (*AddDeviceResponse) String ¶
func (x *AddDeviceResponse) String() string
type DeleteDevicesRequest ¶
type DeleteDevicesRequest struct { DeviceIds []string `protobuf:"bytes,1,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteDevicesRequest) Descriptor
deprecated
func (*DeleteDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDevicesRequest.ProtoReflect.Descriptor instead.
func (*DeleteDevicesRequest) GetDeviceIds ¶
func (x *DeleteDevicesRequest) GetDeviceIds() []string
func (*DeleteDevicesRequest) ProtoMessage ¶
func (*DeleteDevicesRequest) ProtoMessage()
func (*DeleteDevicesRequest) ProtoReflect ¶
func (x *DeleteDevicesRequest) ProtoReflect() protoreflect.Message
func (*DeleteDevicesRequest) Reset ¶
func (x *DeleteDevicesRequest) Reset()
func (*DeleteDevicesRequest) String ¶
func (x *DeleteDevicesRequest) String() string
type DeleteDevicesResponse ¶
type DeleteDevicesResponse struct { DeviceIds []string `protobuf:"bytes,1,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteDevicesResponse) Descriptor
deprecated
func (*DeleteDevicesResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDevicesResponse.ProtoReflect.Descriptor instead.
func (*DeleteDevicesResponse) GetDeviceIds ¶
func (x *DeleteDevicesResponse) GetDeviceIds() []string
func (*DeleteDevicesResponse) ProtoMessage ¶
func (*DeleteDevicesResponse) ProtoMessage()
func (*DeleteDevicesResponse) ProtoReflect ¶
func (x *DeleteDevicesResponse) ProtoReflect() protoreflect.Message
func (*DeleteDevicesResponse) Reset ¶
func (x *DeleteDevicesResponse) Reset()
func (*DeleteDevicesResponse) String ¶
func (x *DeleteDevicesResponse) String() string
type Device ¶
type Device struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetDeviceId ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type GetDevicesRequest ¶
type GetDevicesRequest struct { DeviceIdsFilter []string `protobuf:"bytes,2,rep,name=device_ids_filter,json=deviceIdsFilter,proto3" json:"device_ids_filter,omitempty"` // contains filtered or unexported fields }
func (*GetDevicesRequest) Descriptor
deprecated
func (*GetDevicesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDevicesRequest.ProtoReflect.Descriptor instead.
func (*GetDevicesRequest) GetDeviceIdsFilter ¶
func (x *GetDevicesRequest) GetDeviceIdsFilter() []string
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 IdentityStoreClient ¶
type IdentityStoreClient interface { GetDevices(ctx context.Context, in *GetDevicesRequest, opts ...grpc.CallOption) (IdentityStore_GetDevicesClient, error) AddDevice(ctx context.Context, in *AddDeviceRequest, opts ...grpc.CallOption) (*AddDeviceResponse, error) DeleteDevices(ctx context.Context, in *DeleteDevicesRequest, opts ...grpc.CallOption) (*DeleteDevicesResponse, error) }
IdentityStoreClient is the client API for IdentityStore 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 NewIdentityStoreClient ¶
func NewIdentityStoreClient(cc grpc.ClientConnInterface) IdentityStoreClient
type IdentityStoreServer ¶
type IdentityStoreServer interface { GetDevices(*GetDevicesRequest, IdentityStore_GetDevicesServer) error AddDevice(context.Context, *AddDeviceRequest) (*AddDeviceResponse, error) DeleteDevices(context.Context, *DeleteDevicesRequest) (*DeleteDevicesResponse, error) // contains filtered or unexported methods }
IdentityStoreServer is the server API for IdentityStore service. All implementations must embed UnimplementedIdentityStoreServer for forward compatibility
type IdentityStore_GetDevicesClient ¶
type IdentityStore_GetDevicesClient interface { Recv() (*Device, error) grpc.ClientStream }
type IdentityStore_GetDevicesServer ¶
type IdentityStore_GetDevicesServer interface { Send(*Device) error grpc.ServerStream }
type UnimplementedIdentityStoreServer ¶
type UnimplementedIdentityStoreServer struct { }
UnimplementedIdentityStoreServer must be embedded to have forward compatible implementations.
func (UnimplementedIdentityStoreServer) AddDevice ¶
func (UnimplementedIdentityStoreServer) AddDevice(context.Context, *AddDeviceRequest) (*AddDeviceResponse, error)
func (UnimplementedIdentityStoreServer) DeleteDevices ¶
func (UnimplementedIdentityStoreServer) DeleteDevices(context.Context, *DeleteDevicesRequest) (*DeleteDevicesResponse, error)
func (UnimplementedIdentityStoreServer) GetDevices ¶
func (UnimplementedIdentityStoreServer) GetDevices(*GetDevicesRequest, IdentityStore_GetDevicesServer) error
type UnsafeIdentityStoreServer ¶
type UnsafeIdentityStoreServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityStoreServer will result in compilation errors.