pb

package
v2.3.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_plgd_dev_hub_identity_store_pb_devices_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetDeviceId

func (x *Device) GetDeviceId() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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.

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) DeleteDevices

func (UnimplementedIdentityStoreServer) GetDevices

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.

Jump to

Keyboard shortcuts

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