devices

package
v0.6.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AftermarketDeviceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "devices.AftermarketDeviceService",
	HandlerType: (*AftermarketDeviceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDeviceBySerial",
			Handler:    _AftermarketDeviceService_GetDeviceBySerial_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/devices/aftermarket_devices.proto",
}

AftermarketDeviceService_ServiceDesc is the grpc.ServiceDesc for AftermarketDeviceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_devices_aftermarket_devices_proto protoreflect.FileDescriptor
View Source
var File_api_devices_user_devices_proto protoreflect.FileDescriptor
View Source
var UserDeviceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "devices.UserDeviceService",
	HandlerType: (*UserDeviceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserDevice",
			Handler:    _UserDeviceService_GetUserDevice_Handler,
		},
		{
			MethodName: "ListUserDevicesForUser",
			Handler:    _UserDeviceService_ListUserDevicesForUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/devices/user_devices.proto",
}

UserDeviceService_ServiceDesc is the grpc.ServiceDesc for UserDeviceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAftermarketDeviceServiceServer added in v0.6.0

func RegisterAftermarketDeviceServiceServer(s grpc.ServiceRegistrar, srv AftermarketDeviceServiceServer)

func RegisterUserDeviceServiceServer

func RegisterUserDeviceServiceServer(s grpc.ServiceRegistrar, srv UserDeviceServiceServer)

Types

type AftermarketDevice added in v0.6.0

type AftermarketDevice struct {
	Serial         string  `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	VehicleTokenId *uint64 `protobuf:"varint,2,opt,name=vehicle_token_id,json=vehicleTokenId,proto3,oneof" json:"vehicle_token_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AftermarketDevice) Descriptor deprecated added in v0.6.0

func (*AftermarketDevice) Descriptor() ([]byte, []int)

Deprecated: Use AftermarketDevice.ProtoReflect.Descriptor instead.

func (*AftermarketDevice) GetSerial added in v0.6.0

func (x *AftermarketDevice) GetSerial() string

func (*AftermarketDevice) GetVehicleTokenId added in v0.6.0

func (x *AftermarketDevice) GetVehicleTokenId() uint64

func (*AftermarketDevice) ProtoMessage added in v0.6.0

func (*AftermarketDevice) ProtoMessage()

func (*AftermarketDevice) ProtoReflect added in v0.6.0

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

func (*AftermarketDevice) Reset added in v0.6.0

func (x *AftermarketDevice) Reset()

func (*AftermarketDevice) String added in v0.6.0

func (x *AftermarketDevice) String() string

type AftermarketDeviceServiceClient added in v0.6.0

type AftermarketDeviceServiceClient interface {
	GetDeviceBySerial(ctx context.Context, in *GetDeviceBySerialRequest, opts ...grpc.CallOption) (*AftermarketDevice, error)
}

AftermarketDeviceServiceClient is the client API for AftermarketDeviceService 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 NewAftermarketDeviceServiceClient added in v0.6.0

func NewAftermarketDeviceServiceClient(cc grpc.ClientConnInterface) AftermarketDeviceServiceClient

type AftermarketDeviceServiceServer added in v0.6.0

type AftermarketDeviceServiceServer interface {
	GetDeviceBySerial(context.Context, *GetDeviceBySerialRequest) (*AftermarketDevice, error)
	// contains filtered or unexported methods
}

AftermarketDeviceServiceServer is the server API for AftermarketDeviceService service. All implementations must embed UnimplementedAftermarketDeviceServiceServer for forward compatibility

type GetDeviceBySerialRequest added in v0.6.0

type GetDeviceBySerialRequest struct {
	Serial string `protobuf:"bytes,1,opt,name=serial,proto3" json:"serial,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeviceBySerialRequest) Descriptor deprecated added in v0.6.0

func (*GetDeviceBySerialRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeviceBySerialRequest.ProtoReflect.Descriptor instead.

func (*GetDeviceBySerialRequest) GetSerial added in v0.6.0

func (x *GetDeviceBySerialRequest) GetSerial() string

func (*GetDeviceBySerialRequest) ProtoMessage added in v0.6.0

func (*GetDeviceBySerialRequest) ProtoMessage()

func (*GetDeviceBySerialRequest) ProtoReflect added in v0.6.0

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

func (*GetDeviceBySerialRequest) Reset added in v0.6.0

func (x *GetDeviceBySerialRequest) Reset()

func (*GetDeviceBySerialRequest) String added in v0.6.0

func (x *GetDeviceBySerialRequest) String() string

type GetUserDeviceRequest

type GetUserDeviceRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDeviceRequest) Descriptor deprecated

func (*GetUserDeviceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserDeviceRequest.ProtoReflect.Descriptor instead.

func (*GetUserDeviceRequest) GetId

func (x *GetUserDeviceRequest) GetId() string

func (*GetUserDeviceRequest) ProtoMessage

func (*GetUserDeviceRequest) ProtoMessage()

func (*GetUserDeviceRequest) ProtoReflect

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

func (*GetUserDeviceRequest) Reset

func (x *GetUserDeviceRequest) Reset()

func (*GetUserDeviceRequest) String

func (x *GetUserDeviceRequest) String() string

type ListUserDevicesForUserRequest added in v0.1.9

type ListUserDevicesForUserRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserDevicesForUserRequest) Descriptor deprecated added in v0.1.9

func (*ListUserDevicesForUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserDevicesForUserRequest.ProtoReflect.Descriptor instead.

func (*ListUserDevicesForUserRequest) GetUserId added in v0.1.9

func (x *ListUserDevicesForUserRequest) GetUserId() string

func (*ListUserDevicesForUserRequest) ProtoMessage added in v0.1.9

func (*ListUserDevicesForUserRequest) ProtoMessage()

func (*ListUserDevicesForUserRequest) ProtoReflect added in v0.1.9

func (*ListUserDevicesForUserRequest) Reset added in v0.1.9

func (x *ListUserDevicesForUserRequest) Reset()

func (*ListUserDevicesForUserRequest) String added in v0.1.9

type ListUserDevicesForUserResponse added in v0.1.9

type ListUserDevicesForUserResponse struct {
	UserDevices []*UserDevice `protobuf:"bytes,1,rep,name=user_devices,json=userDevices,proto3" json:"user_devices,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserDevicesForUserResponse) Descriptor deprecated added in v0.1.9

func (*ListUserDevicesForUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserDevicesForUserResponse.ProtoReflect.Descriptor instead.

func (*ListUserDevicesForUserResponse) GetUserDevices added in v0.1.9

func (x *ListUserDevicesForUserResponse) GetUserDevices() []*UserDevice

func (*ListUserDevicesForUserResponse) ProtoMessage added in v0.1.9

func (*ListUserDevicesForUserResponse) ProtoMessage()

func (*ListUserDevicesForUserResponse) ProtoReflect added in v0.1.9

func (*ListUserDevicesForUserResponse) Reset added in v0.1.9

func (x *ListUserDevicesForUserResponse) Reset()

func (*ListUserDevicesForUserResponse) String added in v0.1.9

type UnimplementedAftermarketDeviceServiceServer added in v0.6.0

type UnimplementedAftermarketDeviceServiceServer struct {
}

UnimplementedAftermarketDeviceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAftermarketDeviceServiceServer) GetDeviceBySerial added in v0.6.0

type UnimplementedUserDeviceServiceServer

type UnimplementedUserDeviceServiceServer struct {
}

UnimplementedUserDeviceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserDeviceServiceServer) GetUserDevice

func (UnimplementedUserDeviceServiceServer) ListUserDevicesForUser added in v0.1.9

type UnsafeAftermarketDeviceServiceServer added in v0.6.0

type UnsafeAftermarketDeviceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAftermarketDeviceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AftermarketDeviceServiceServer will result in compilation errors.

type UnsafeUserDeviceServiceServer

type UnsafeUserDeviceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserDeviceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserDeviceServiceServer will result in compilation errors.

type UserDevice

type UserDevice struct {
	Id                       string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId                   string                 `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	TokenId                  *uint64                `protobuf:"varint,3,opt,name=token_id,json=tokenId,proto3,oneof" json:"token_id,omitempty"`
	OptedInAt                *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=opted_in_at,json=optedInAt,proto3,oneof" json:"opted_in_at,omitempty"`
	OwnerAddress             []byte                 `protobuf:"bytes,5,opt,name=owner_address,json=ownerAddress,proto3,oneof" json:"owner_address,omitempty"`
	AftermarketDeviceTokenId *uint64                `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UserDevice) Descriptor deprecated

func (*UserDevice) Descriptor() ([]byte, []int)

Deprecated: Use UserDevice.ProtoReflect.Descriptor instead.

func (*UserDevice) GetAftermarketDeviceTokenId added in v0.6.3

func (x *UserDevice) GetAftermarketDeviceTokenId() uint64

func (*UserDevice) GetId

func (x *UserDevice) GetId() string

func (*UserDevice) GetOptedInAt added in v0.5.0

func (x *UserDevice) GetOptedInAt() *timestamppb.Timestamp

func (*UserDevice) GetOwnerAddress added in v0.6.1

func (x *UserDevice) GetOwnerAddress() []byte

func (*UserDevice) GetTokenId added in v0.4.4

func (x *UserDevice) GetTokenId() uint64

func (*UserDevice) GetUserId

func (x *UserDevice) GetUserId() string

func (*UserDevice) ProtoMessage

func (*UserDevice) ProtoMessage()

func (*UserDevice) ProtoReflect

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

func (*UserDevice) Reset

func (x *UserDevice) Reset()

func (*UserDevice) String

func (x *UserDevice) String() string

type UserDeviceServiceClient

type UserDeviceServiceClient interface {
	GetUserDevice(ctx context.Context, in *GetUserDeviceRequest, opts ...grpc.CallOption) (*UserDevice, error)
	ListUserDevicesForUser(ctx context.Context, in *ListUserDevicesForUserRequest, opts ...grpc.CallOption) (*ListUserDevicesForUserResponse, error)
}

UserDeviceServiceClient is the client API for UserDeviceService 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 UserDeviceServiceServer

type UserDeviceServiceServer interface {
	GetUserDevice(context.Context, *GetUserDeviceRequest) (*UserDevice, error)
	ListUserDevicesForUser(context.Context, *ListUserDevicesForUserRequest) (*ListUserDevicesForUserResponse, error)
	// contains filtered or unexported methods
}

UserDeviceServiceServer is the server API for UserDeviceService service. All implementations must embed UnimplementedUserDeviceServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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