Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterLaptopServiceServer(s grpc.ServiceRegistrar, srv LaptopServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CPU
- func (*CPU) Descriptor() ([]byte, []int)deprecated
- func (x *CPU) GetBrand() string
- func (x *CPU) GetMaxGhz() float64
- func (x *CPU) GetMinGhz() float64
- func (x *CPU) GetName() string
- func (x *CPU) GetNumberOfCores() uint32
- func (x *CPU) GetNumberOfThreads() uint32
- func (*CPU) ProtoMessage()
- func (x *CPU) ProtoReflect() protoreflect.Message
- func (x *CPU) Reset()
- func (x *CPU) String() string
- type CreateLaptopRequest
- func (*CreateLaptopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLaptopRequest) GetLaptop() *Laptop
- func (*CreateLaptopRequest) ProtoMessage()
- func (x *CreateLaptopRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLaptopRequest) Reset()
- func (x *CreateLaptopRequest) String() string
- type CreateLaptopResponse
- func (*CreateLaptopResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLaptopResponse) GetId() string
- func (*CreateLaptopResponse) ProtoMessage()
- func (x *CreateLaptopResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLaptopResponse) Reset()
- func (x *CreateLaptopResponse) String() string
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Filter) GetMaxPriceUsd() float64
- func (x *Filter) GetMinCpuCores() uint32
- func (x *Filter) GetMinCpuGhz() float64
- func (x *Filter) GetMinRam() *Memory
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type GPU
- func (*GPU) Descriptor() ([]byte, []int)deprecated
- func (x *GPU) GetBrand() string
- func (x *GPU) GetMaxGhz() float64
- func (x *GPU) GetMemory() *Memory
- func (x *GPU) GetMinGhz() float64
- func (x *GPU) GetName() string
- func (*GPU) ProtoMessage()
- func (x *GPU) ProtoReflect() protoreflect.Message
- func (x *GPU) Reset()
- func (x *GPU) String() string
- type ImageInfo
- type Keyboard
- type Keyboard_Layout
- func (Keyboard_Layout) Descriptor() protoreflect.EnumDescriptor
- func (x Keyboard_Layout) Enum() *Keyboard_Layout
- func (Keyboard_Layout) EnumDescriptor() ([]byte, []int)deprecated
- func (x Keyboard_Layout) Number() protoreflect.EnumNumber
- func (x Keyboard_Layout) String() string
- func (Keyboard_Layout) Type() protoreflect.EnumType
- type Laptop
- func (*Laptop) Descriptor() ([]byte, []int)deprecated
- func (x *Laptop) GetBrand() string
- func (x *Laptop) GetCpu() *CPU
- func (x *Laptop) GetGpus() []*GPU
- func (x *Laptop) GetId() string
- func (x *Laptop) GetKeyboard() *Keyboard
- func (x *Laptop) GetName() string
- func (x *Laptop) GetPriceUsd() float64
- func (x *Laptop) GetRam() *Memory
- func (x *Laptop) GetReleaseYear() uint32
- func (x *Laptop) GetScreen() *Screen
- func (x *Laptop) GetStorages() []*Storage
- func (x *Laptop) GetUpdatedAt() *timestamppb.Timestamp
- func (m *Laptop) GetWeight() isLaptop_Weight
- func (x *Laptop) GetWeightKg() float64
- func (x *Laptop) GetWeightLb() float64
- func (*Laptop) ProtoMessage()
- func (x *Laptop) ProtoReflect() protoreflect.Message
- func (x *Laptop) Reset()
- func (x *Laptop) String() string
- type LaptopServiceClient
- type LaptopServiceServer
- type LaptopService_RateLaptopClient
- type LaptopService_RateLaptopServer
- type LaptopService_SearchLaptopClient
- type LaptopService_SearchLaptopServer
- type LaptopService_UploadImageClient
- type LaptopService_UploadImageServer
- type Laptop_WeightKg
- type Laptop_WeightLb
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type Memory
- type RateLaptopRequest
- func (*RateLaptopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RateLaptopRequest) GetLaptopId() string
- func (x *RateLaptopRequest) GetScore() float64
- func (*RateLaptopRequest) ProtoMessage()
- func (x *RateLaptopRequest) ProtoReflect() protoreflect.Message
- func (x *RateLaptopRequest) Reset()
- func (x *RateLaptopRequest) String() string
- type RateLaptopResponse
- func (*RateLaptopResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RateLaptopResponse) GetAverageScore() float64
- func (x *RateLaptopResponse) GetLaptopId() string
- func (x *RateLaptopResponse) GetRatedCount() uint32
- func (*RateLaptopResponse) ProtoMessage()
- func (x *RateLaptopResponse) ProtoReflect() protoreflect.Message
- func (x *RateLaptopResponse) Reset()
- func (x *RateLaptopResponse) String() string
- type Screen
- func (*Screen) Descriptor() ([]byte, []int)deprecated
- func (x *Screen) GetMultiTouch() bool
- func (x *Screen) GetPanel() Screen_Panel
- func (x *Screen) GetResolution() *Screen_Resolution
- func (x *Screen) GetSizeInch() float32
- func (*Screen) ProtoMessage()
- func (x *Screen) ProtoReflect() protoreflect.Message
- func (x *Screen) Reset()
- func (x *Screen) String() string
- type Screen_Panel
- func (Screen_Panel) Descriptor() protoreflect.EnumDescriptor
- func (x Screen_Panel) Enum() *Screen_Panel
- func (Screen_Panel) EnumDescriptor() ([]byte, []int)deprecated
- func (x Screen_Panel) Number() protoreflect.EnumNumber
- func (x Screen_Panel) String() string
- func (Screen_Panel) Type() protoreflect.EnumType
- type Screen_Resolution
- func (*Screen_Resolution) Descriptor() ([]byte, []int)deprecated
- func (x *Screen_Resolution) GetHeight() uint32
- func (x *Screen_Resolution) GetWidth() uint32
- func (*Screen_Resolution) ProtoMessage()
- func (x *Screen_Resolution) ProtoReflect() protoreflect.Message
- func (x *Screen_Resolution) Reset()
- func (x *Screen_Resolution) String() string
- type SearchLaptopRequest
- func (*SearchLaptopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchLaptopRequest) GetFilter() *Filter
- func (*SearchLaptopRequest) ProtoMessage()
- func (x *SearchLaptopRequest) ProtoReflect() protoreflect.Message
- func (x *SearchLaptopRequest) Reset()
- func (x *SearchLaptopRequest) String() string
- type SearchLaptopResponse
- func (*SearchLaptopResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchLaptopResponse) GetLaptop() *Laptop
- func (*SearchLaptopResponse) ProtoMessage()
- func (x *SearchLaptopResponse) ProtoReflect() protoreflect.Message
- func (x *SearchLaptopResponse) Reset()
- func (x *SearchLaptopResponse) String() string
- type Storage
- type Storage_Driver
- func (Storage_Driver) Descriptor() protoreflect.EnumDescriptor
- func (x Storage_Driver) Enum() *Storage_Driver
- func (Storage_Driver) EnumDescriptor() ([]byte, []int)deprecated
- func (x Storage_Driver) Number() protoreflect.EnumNumber
- func (x Storage_Driver) String() string
- func (Storage_Driver) Type() protoreflect.EnumType
- type UnimplementedAuthServiceServer
- type UnimplementedLaptopServiceServer
- func (UnimplementedLaptopServiceServer) CreateLaptop(context.Context, *CreateLaptopRequest) (*CreateLaptopResponse, error)
- func (UnimplementedLaptopServiceServer) RateLaptop(LaptopService_RateLaptopServer) error
- func (UnimplementedLaptopServiceServer) SearchLaptop(*SearchLaptopRequest, LaptopService_SearchLaptopServer) error
- func (UnimplementedLaptopServiceServer) UploadImage(LaptopService_UploadImageServer) error
- type Unit
- type UnsafeAuthServiceServer
- type UnsafeLaptopServiceServer
- type UploadImageRequest
- func (*UploadImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadImageRequest) GetChunkData() []byte
- func (m *UploadImageRequest) GetData() isUploadImageRequest_Data
- func (x *UploadImageRequest) GetInfo() *ImageInfo
- func (*UploadImageRequest) ProtoMessage()
- func (x *UploadImageRequest) ProtoReflect() protoreflect.Message
- func (x *UploadImageRequest) Reset()
- func (x *UploadImageRequest) String() string
- type UploadImageRequest_ChunkData
- type UploadImageRequest_Info
- type UploadImageResponse
- func (*UploadImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadImageResponse) GetId() string
- func (x *UploadImageResponse) GetSize() uint32
- func (*UploadImageResponse) ProtoMessage()
- func (x *UploadImageResponse) ProtoReflect() protoreflect.Message
- func (x *UploadImageResponse) Reset()
- func (x *UploadImageResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Keyboard_Layout_name = map[int32]string{ 0: "UNKNOWN", 1: "QWERTY", 2: "QWERTZ", 3: "AZERTY", } Keyboard_Layout_value = map[string]int32{ "UNKNOWN": 0, "QWERTY": 1, "QWERTZ": 2, "AZERTY": 3, } )
Enum value maps for Keyboard_Layout.
var ( Unit_name = map[int32]string{ 0: "UNKNOWN", 1: "BIT", 2: "BYTE", 3: "KILOBYTE", 4: "MEGABYTE", 5: "GIGABTE", 6: "TERABYTE", } Unit_value = map[string]int32{ "UNKNOWN": 0, "BIT": 1, "BYTE": 2, "KILOBYTE": 3, "MEGABYTE": 4, "GIGABTE": 5, "TERABYTE": 6, } )
Enum value maps for Unit.
var ( Screen_Panel_name = map[int32]string{ 0: "UNKNOWN", 1: "IPS", 2: "OLED", } Screen_Panel_value = map[string]int32{ "UNKNOWN": 0, "IPS": 1, "OLED": 2, } )
Enum value maps for Screen_Panel.
var ( Storage_Driver_name = map[int32]string{ 0: "UNKNOWN", 1: "HDD", 2: "SSD", } Storage_Driver_value = map[string]int32{ "UNKNOWN": 0, "HDD": 1, "SSD": 2, } )
Enum value maps for Storage_Driver.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth_service.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_service_proto protoreflect.FileDescriptor
var File_filter_message_proto protoreflect.FileDescriptor
var File_keyboard_message_proto protoreflect.FileDescriptor
var File_laptop_message_proto protoreflect.FileDescriptor
var File_laptop_service_proto protoreflect.FileDescriptor
var File_memory_message_proto protoreflect.FileDescriptor
var File_processor_message_proto protoreflect.FileDescriptor
var File_screen_message_proto protoreflect.FileDescriptor
var File_storage_message_proto protoreflect.FileDescriptor
var LaptopService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.LaptopService", HandlerType: (*LaptopServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateLaptop", Handler: _LaptopService_CreateLaptop_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SearchLaptop", Handler: _LaptopService_SearchLaptop_Handler, ServerStreams: true, }, { StreamName: "UploadImage", Handler: _LaptopService_UploadImage_Handler, ClientStreams: true, }, { StreamName: "RateLaptop", Handler: _LaptopService_RateLaptop_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "laptop_service.proto", }
LaptopService_ServiceDesc is the grpc.ServiceDesc for LaptopService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterLaptopServiceServer ¶
func RegisterLaptopServiceServer(s grpc.ServiceRegistrar, srv LaptopServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface {
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface {
Login(context.Context, *LoginRequest) (*LoginResponse, error)
}
AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility
type CPU ¶
type CPU struct { Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NumberOfCores uint32 `protobuf:"varint,3,opt,name=number_of_cores,json=numberOfCores,proto3" json:"number_of_cores,omitempty"` NumberOfThreads uint32 `protobuf:"varint,4,opt,name=number_of_threads,json=numberOfThreads,proto3" json:"number_of_threads,omitempty"` MinGhz float64 `protobuf:"fixed64,5,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"` MaxGhz float64 `protobuf:"fixed64,6,opt,name=max_ghz,json=maxGhz,proto3" json:"max_ghz,omitempty"` // contains filtered or unexported fields }
func (*CPU) Descriptor
deprecated
func (*CPU) GetNumberOfCores ¶
func (*CPU) GetNumberOfThreads ¶
func (*CPU) ProtoMessage ¶
func (*CPU) ProtoMessage()
func (*CPU) ProtoReflect ¶
func (x *CPU) ProtoReflect() protoreflect.Message
type CreateLaptopRequest ¶
type CreateLaptopRequest struct { Laptop *Laptop `protobuf:"bytes,1,opt,name=laptop,proto3" json:"laptop,omitempty"` // contains filtered or unexported fields }
func (*CreateLaptopRequest) Descriptor
deprecated
func (*CreateLaptopRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLaptopRequest.ProtoReflect.Descriptor instead.
func (*CreateLaptopRequest) GetLaptop ¶
func (x *CreateLaptopRequest) GetLaptop() *Laptop
func (*CreateLaptopRequest) ProtoMessage ¶
func (*CreateLaptopRequest) ProtoMessage()
func (*CreateLaptopRequest) ProtoReflect ¶
func (x *CreateLaptopRequest) ProtoReflect() protoreflect.Message
func (*CreateLaptopRequest) Reset ¶
func (x *CreateLaptopRequest) Reset()
func (*CreateLaptopRequest) String ¶
func (x *CreateLaptopRequest) String() string
type CreateLaptopResponse ¶
type CreateLaptopResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateLaptopResponse) Descriptor
deprecated
func (*CreateLaptopResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLaptopResponse.ProtoReflect.Descriptor instead.
func (*CreateLaptopResponse) GetId ¶
func (x *CreateLaptopResponse) GetId() string
func (*CreateLaptopResponse) ProtoMessage ¶
func (*CreateLaptopResponse) ProtoMessage()
func (*CreateLaptopResponse) ProtoReflect ¶
func (x *CreateLaptopResponse) ProtoReflect() protoreflect.Message
func (*CreateLaptopResponse) Reset ¶
func (x *CreateLaptopResponse) Reset()
func (*CreateLaptopResponse) String ¶
func (x *CreateLaptopResponse) String() string
type Filter ¶
type Filter struct { MaxPriceUsd float64 `protobuf:"fixed64,1,opt,name=max_price_usd,json=maxPriceUsd,proto3" json:"max_price_usd,omitempty"` MinCpuCores uint32 `protobuf:"varint,2,opt,name=min_cpu_cores,json=minCpuCores,proto3" json:"min_cpu_cores,omitempty"` MinCpuGhz float64 `protobuf:"fixed64,3,opt,name=min_cpu_ghz,json=minCpuGhz,proto3" json:"min_cpu_ghz,omitempty"` MinRam *Memory `protobuf:"bytes,4,opt,name=min_ram,json=minRam,proto3" json:"min_ram,omitempty"` // contains filtered or unexported fields }
func (*Filter) Descriptor
deprecated
func (*Filter) GetMaxPriceUsd ¶
func (*Filter) GetMinCpuCores ¶
func (*Filter) GetMinCpuGhz ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type GPU ¶
type GPU struct { Brand string `protobuf:"bytes,1,opt,name=brand,proto3" json:"brand,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` MinGhz float64 `protobuf:"fixed64,3,opt,name=min_ghz,json=minGhz,proto3" json:"min_ghz,omitempty"` MaxGhz float64 `protobuf:"fixed64,4,opt,name=max_ghz,json=maxGhz,proto3" json:"max_ghz,omitempty"` Memory *Memory `protobuf:"bytes,5,opt,name=memory,proto3" json:"memory,omitempty"` // contains filtered or unexported fields }
func (*GPU) Descriptor
deprecated
func (*GPU) ProtoMessage ¶
func (*GPU) ProtoMessage()
func (*GPU) ProtoReflect ¶
func (x *GPU) ProtoReflect() protoreflect.Message
type ImageInfo ¶
type ImageInfo struct { LaptopId string `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"` ImageType string `protobuf:"bytes,2,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"` // contains filtered or unexported fields }
func (*ImageInfo) Descriptor
deprecated
func (*ImageInfo) GetImageType ¶
func (*ImageInfo) GetLaptopId ¶
func (*ImageInfo) ProtoMessage ¶
func (*ImageInfo) ProtoMessage()
func (*ImageInfo) ProtoReflect ¶
func (x *ImageInfo) ProtoReflect() protoreflect.Message
type Keyboard ¶
type Keyboard struct { Layout Keyboard_Layout `protobuf:"varint,1,opt,name=layout,proto3,enum=pb.Keyboard_Layout" json:"layout,omitempty"` Backlit bool `protobuf:"varint,2,opt,name=backlit,proto3" json:"backlit,omitempty"` // contains filtered or unexported fields }
func (*Keyboard) Descriptor
deprecated
func (*Keyboard) GetBacklit ¶
func (*Keyboard) GetLayout ¶
func (x *Keyboard) GetLayout() Keyboard_Layout
func (*Keyboard) ProtoMessage ¶
func (*Keyboard) ProtoMessage()
func (*Keyboard) ProtoReflect ¶
func (x *Keyboard) ProtoReflect() protoreflect.Message
type Keyboard_Layout ¶
type Keyboard_Layout int32
const ( Keyboard_UNKNOWN Keyboard_Layout = 0 Keyboard_QWERTY Keyboard_Layout = 1 Keyboard_QWERTZ Keyboard_Layout = 2 Keyboard_AZERTY Keyboard_Layout = 3 )
func (Keyboard_Layout) Descriptor ¶
func (Keyboard_Layout) Descriptor() protoreflect.EnumDescriptor
func (Keyboard_Layout) Enum ¶
func (x Keyboard_Layout) Enum() *Keyboard_Layout
func (Keyboard_Layout) EnumDescriptor
deprecated
func (Keyboard_Layout) EnumDescriptor() ([]byte, []int)
Deprecated: Use Keyboard_Layout.Descriptor instead.
func (Keyboard_Layout) Number ¶
func (x Keyboard_Layout) Number() protoreflect.EnumNumber
func (Keyboard_Layout) String ¶
func (x Keyboard_Layout) String() string
func (Keyboard_Layout) Type ¶
func (Keyboard_Layout) Type() protoreflect.EnumType
type Laptop ¶
type Laptop struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Brand string `protobuf:"bytes,2,opt,name=brand,proto3" json:"brand,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Cpu *CPU `protobuf:"bytes,4,opt,name=cpu,proto3" json:"cpu,omitempty"` Ram *Memory `protobuf:"bytes,5,opt,name=ram,proto3" json:"ram,omitempty"` Gpus []*GPU `protobuf:"bytes,6,rep,name=gpus,proto3" json:"gpus,omitempty"` Storages []*Storage `protobuf:"bytes,7,rep,name=storages,proto3" json:"storages,omitempty"` Screen *Screen `protobuf:"bytes,8,opt,name=screen,proto3" json:"screen,omitempty"` Keyboard *Keyboard `protobuf:"bytes,9,opt,name=keyboard,proto3" json:"keyboard,omitempty"` // Types that are assignable to Weight: // *Laptop_WeightKg // *Laptop_WeightLb Weight isLaptop_Weight `protobuf_oneof:"weight"` PriceUsd float64 `protobuf:"fixed64,12,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"` ReleaseYear uint32 `protobuf:"varint,13,opt,name=release_year,json=releaseYear,proto3" json:"release_year,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Laptop) Descriptor
deprecated
func (*Laptop) GetKeyboard ¶
func (*Laptop) GetPriceUsd ¶
func (*Laptop) GetReleaseYear ¶
func (*Laptop) GetStorages ¶
func (*Laptop) GetUpdatedAt ¶
func (x *Laptop) GetUpdatedAt() *timestamppb.Timestamp
func (*Laptop) GetWeightKg ¶
func (*Laptop) GetWeightLb ¶
func (*Laptop) ProtoMessage ¶
func (*Laptop) ProtoMessage()
func (*Laptop) ProtoReflect ¶
func (x *Laptop) ProtoReflect() protoreflect.Message
type LaptopServiceClient ¶
type LaptopServiceClient interface { CreateLaptop(ctx context.Context, in *CreateLaptopRequest, opts ...grpc.CallOption) (*CreateLaptopResponse, error) SearchLaptop(ctx context.Context, in *SearchLaptopRequest, opts ...grpc.CallOption) (LaptopService_SearchLaptopClient, error) UploadImage(ctx context.Context, opts ...grpc.CallOption) (LaptopService_UploadImageClient, error) RateLaptop(ctx context.Context, opts ...grpc.CallOption) (LaptopService_RateLaptopClient, error) }
LaptopServiceClient is the client API for LaptopService 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 NewLaptopServiceClient ¶
func NewLaptopServiceClient(cc grpc.ClientConnInterface) LaptopServiceClient
type LaptopServiceServer ¶
type LaptopServiceServer interface { CreateLaptop(context.Context, *CreateLaptopRequest) (*CreateLaptopResponse, error) SearchLaptop(*SearchLaptopRequest, LaptopService_SearchLaptopServer) error UploadImage(LaptopService_UploadImageServer) error RateLaptop(LaptopService_RateLaptopServer) error }
LaptopServiceServer is the server API for LaptopService service. All implementations should embed UnimplementedLaptopServiceServer for forward compatibility
type LaptopService_RateLaptopClient ¶
type LaptopService_RateLaptopClient interface { Send(*RateLaptopRequest) error Recv() (*RateLaptopResponse, error) grpc.ClientStream }
type LaptopService_RateLaptopServer ¶
type LaptopService_RateLaptopServer interface { Send(*RateLaptopResponse) error Recv() (*RateLaptopRequest, error) grpc.ServerStream }
type LaptopService_SearchLaptopClient ¶
type LaptopService_SearchLaptopClient interface { Recv() (*SearchLaptopResponse, error) grpc.ClientStream }
type LaptopService_SearchLaptopServer ¶
type LaptopService_SearchLaptopServer interface { Send(*SearchLaptopResponse) error grpc.ServerStream }
type LaptopService_UploadImageClient ¶
type LaptopService_UploadImageClient interface { Send(*UploadImageRequest) error CloseAndRecv() (*UploadImageResponse, error) grpc.ClientStream }
type LaptopService_UploadImageServer ¶
type LaptopService_UploadImageServer interface { SendAndClose(*UploadImageResponse) error Recv() (*UploadImageRequest, error) grpc.ServerStream }
type Laptop_WeightKg ¶
type Laptop_WeightKg struct {
WeightKg float64 `protobuf:"fixed64,10,opt,name=weight_kg,json=weightKg,proto3,oneof"`
}
type Laptop_WeightLb ¶
type Laptop_WeightLb struct {
WeightLb float64 `protobuf:"fixed64,11,opt,name=weight_lb,json=weightLb,proto3,oneof"`
}
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccessToken ¶
func (x *LoginResponse) GetAccessToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type Memory ¶
type Memory struct { Value uint64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Unit Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=pb.Unit" json:"unit,omitempty"` // contains filtered or unexported fields }
func (*Memory) Descriptor
deprecated
func (*Memory) ProtoMessage ¶
func (*Memory) ProtoMessage()
func (*Memory) ProtoReflect ¶
func (x *Memory) ProtoReflect() protoreflect.Message
type RateLaptopRequest ¶
type RateLaptopRequest struct { LaptopId string `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"` Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*RateLaptopRequest) Descriptor
deprecated
func (*RateLaptopRequest) Descriptor() ([]byte, []int)
Deprecated: Use RateLaptopRequest.ProtoReflect.Descriptor instead.
func (*RateLaptopRequest) GetLaptopId ¶
func (x *RateLaptopRequest) GetLaptopId() string
func (*RateLaptopRequest) GetScore ¶
func (x *RateLaptopRequest) GetScore() float64
func (*RateLaptopRequest) ProtoMessage ¶
func (*RateLaptopRequest) ProtoMessage()
func (*RateLaptopRequest) ProtoReflect ¶
func (x *RateLaptopRequest) ProtoReflect() protoreflect.Message
func (*RateLaptopRequest) Reset ¶
func (x *RateLaptopRequest) Reset()
func (*RateLaptopRequest) String ¶
func (x *RateLaptopRequest) String() string
type RateLaptopResponse ¶
type RateLaptopResponse struct { LaptopId string `protobuf:"bytes,1,opt,name=laptop_id,json=laptopId,proto3" json:"laptop_id,omitempty"` RatedCount uint32 `protobuf:"varint,2,opt,name=rated_count,json=ratedCount,proto3" json:"rated_count,omitempty"` AverageScore float64 `protobuf:"fixed64,3,opt,name=average_score,json=averageScore,proto3" json:"average_score,omitempty"` // contains filtered or unexported fields }
func (*RateLaptopResponse) Descriptor
deprecated
func (*RateLaptopResponse) Descriptor() ([]byte, []int)
Deprecated: Use RateLaptopResponse.ProtoReflect.Descriptor instead.
func (*RateLaptopResponse) GetAverageScore ¶
func (x *RateLaptopResponse) GetAverageScore() float64
func (*RateLaptopResponse) GetLaptopId ¶
func (x *RateLaptopResponse) GetLaptopId() string
func (*RateLaptopResponse) GetRatedCount ¶
func (x *RateLaptopResponse) GetRatedCount() uint32
func (*RateLaptopResponse) ProtoMessage ¶
func (*RateLaptopResponse) ProtoMessage()
func (*RateLaptopResponse) ProtoReflect ¶
func (x *RateLaptopResponse) ProtoReflect() protoreflect.Message
func (*RateLaptopResponse) Reset ¶
func (x *RateLaptopResponse) Reset()
func (*RateLaptopResponse) String ¶
func (x *RateLaptopResponse) String() string
type Screen ¶
type Screen struct { SizeInch float32 `protobuf:"fixed32,1,opt,name=size_inch,json=sizeInch,proto3" json:"size_inch,omitempty"` Resolution *Screen_Resolution `protobuf:"bytes,2,opt,name=resolution,proto3" json:"resolution,omitempty"` Panel Screen_Panel `protobuf:"varint,3,opt,name=panel,proto3,enum=pb.Screen_Panel" json:"panel,omitempty"` MultiTouch bool `protobuf:"varint,4,opt,name=multi_touch,json=multiTouch,proto3" json:"multi_touch,omitempty"` // contains filtered or unexported fields }
func (*Screen) Descriptor
deprecated
func (*Screen) GetMultiTouch ¶
func (*Screen) GetPanel ¶
func (x *Screen) GetPanel() Screen_Panel
func (*Screen) GetResolution ¶
func (x *Screen) GetResolution() *Screen_Resolution
func (*Screen) GetSizeInch ¶
func (*Screen) ProtoMessage ¶
func (*Screen) ProtoMessage()
func (*Screen) ProtoReflect ¶
func (x *Screen) ProtoReflect() protoreflect.Message
type Screen_Panel ¶
type Screen_Panel int32
const ( Screen_UNKNOWN Screen_Panel = 0 Screen_IPS Screen_Panel = 1 Screen_OLED Screen_Panel = 2 )
func (Screen_Panel) Descriptor ¶
func (Screen_Panel) Descriptor() protoreflect.EnumDescriptor
func (Screen_Panel) Enum ¶
func (x Screen_Panel) Enum() *Screen_Panel
func (Screen_Panel) EnumDescriptor
deprecated
func (Screen_Panel) EnumDescriptor() ([]byte, []int)
Deprecated: Use Screen_Panel.Descriptor instead.
func (Screen_Panel) Number ¶
func (x Screen_Panel) Number() protoreflect.EnumNumber
func (Screen_Panel) String ¶
func (x Screen_Panel) String() string
func (Screen_Panel) Type ¶
func (Screen_Panel) Type() protoreflect.EnumType
type Screen_Resolution ¶
type Screen_Resolution struct { Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*Screen_Resolution) Descriptor
deprecated
func (*Screen_Resolution) Descriptor() ([]byte, []int)
Deprecated: Use Screen_Resolution.ProtoReflect.Descriptor instead.
func (*Screen_Resolution) GetHeight ¶
func (x *Screen_Resolution) GetHeight() uint32
func (*Screen_Resolution) GetWidth ¶
func (x *Screen_Resolution) GetWidth() uint32
func (*Screen_Resolution) ProtoMessage ¶
func (*Screen_Resolution) ProtoMessage()
func (*Screen_Resolution) ProtoReflect ¶
func (x *Screen_Resolution) ProtoReflect() protoreflect.Message
func (*Screen_Resolution) Reset ¶
func (x *Screen_Resolution) Reset()
func (*Screen_Resolution) String ¶
func (x *Screen_Resolution) String() string
type SearchLaptopRequest ¶
type SearchLaptopRequest struct { Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*SearchLaptopRequest) Descriptor
deprecated
func (*SearchLaptopRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchLaptopRequest.ProtoReflect.Descriptor instead.
func (*SearchLaptopRequest) GetFilter ¶
func (x *SearchLaptopRequest) GetFilter() *Filter
func (*SearchLaptopRequest) ProtoMessage ¶
func (*SearchLaptopRequest) ProtoMessage()
func (*SearchLaptopRequest) ProtoReflect ¶
func (x *SearchLaptopRequest) ProtoReflect() protoreflect.Message
func (*SearchLaptopRequest) Reset ¶
func (x *SearchLaptopRequest) Reset()
func (*SearchLaptopRequest) String ¶
func (x *SearchLaptopRequest) String() string
type SearchLaptopResponse ¶
type SearchLaptopResponse struct { Laptop *Laptop `protobuf:"bytes,1,opt,name=laptop,proto3" json:"laptop,omitempty"` // contains filtered or unexported fields }
func (*SearchLaptopResponse) Descriptor
deprecated
func (*SearchLaptopResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchLaptopResponse.ProtoReflect.Descriptor instead.
func (*SearchLaptopResponse) GetLaptop ¶
func (x *SearchLaptopResponse) GetLaptop() *Laptop
func (*SearchLaptopResponse) ProtoMessage ¶
func (*SearchLaptopResponse) ProtoMessage()
func (*SearchLaptopResponse) ProtoReflect ¶
func (x *SearchLaptopResponse) ProtoReflect() protoreflect.Message
func (*SearchLaptopResponse) Reset ¶
func (x *SearchLaptopResponse) Reset()
func (*SearchLaptopResponse) String ¶
func (x *SearchLaptopResponse) String() string
type Storage ¶
type Storage struct { Driver Storage_Driver `protobuf:"varint,1,opt,name=driver,proto3,enum=pb.Storage_Driver" json:"driver,omitempty"` Memory *Memory `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` // contains filtered or unexported fields }
func (*Storage) Descriptor
deprecated
func (*Storage) GetDriver ¶
func (x *Storage) GetDriver() Storage_Driver
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) ProtoReflect ¶
func (x *Storage) ProtoReflect() protoreflect.Message
type Storage_Driver ¶
type Storage_Driver int32
const ( Storage_UNKNOWN Storage_Driver = 0 Storage_HDD Storage_Driver = 1 Storage_SSD Storage_Driver = 2 )
func (Storage_Driver) Descriptor ¶
func (Storage_Driver) Descriptor() protoreflect.EnumDescriptor
func (Storage_Driver) Enum ¶
func (x Storage_Driver) Enum() *Storage_Driver
func (Storage_Driver) EnumDescriptor
deprecated
func (Storage_Driver) EnumDescriptor() ([]byte, []int)
Deprecated: Use Storage_Driver.Descriptor instead.
func (Storage_Driver) Number ¶
func (x Storage_Driver) Number() protoreflect.EnumNumber
func (Storage_Driver) String ¶
func (x Storage_Driver) String() string
func (Storage_Driver) Type ¶
func (Storage_Driver) Type() protoreflect.EnumType
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
type UnimplementedLaptopServiceServer ¶
type UnimplementedLaptopServiceServer struct { }
UnimplementedLaptopServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedLaptopServiceServer) CreateLaptop ¶
func (UnimplementedLaptopServiceServer) CreateLaptop(context.Context, *CreateLaptopRequest) (*CreateLaptopResponse, error)
func (UnimplementedLaptopServiceServer) RateLaptop ¶
func (UnimplementedLaptopServiceServer) RateLaptop(LaptopService_RateLaptopServer) error
func (UnimplementedLaptopServiceServer) SearchLaptop ¶
func (UnimplementedLaptopServiceServer) SearchLaptop(*SearchLaptopRequest, LaptopService_SearchLaptopServer) error
func (UnimplementedLaptopServiceServer) UploadImage ¶
func (UnimplementedLaptopServiceServer) UploadImage(LaptopService_UploadImageServer) error
type Unit ¶
type Unit int32
func (Unit) Descriptor ¶
func (Unit) Descriptor() protoreflect.EnumDescriptor
func (Unit) EnumDescriptor
deprecated
func (Unit) Number ¶
func (x Unit) Number() protoreflect.EnumNumber
func (Unit) Type ¶
func (Unit) Type() protoreflect.EnumType
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeLaptopServiceServer ¶
type UnsafeLaptopServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLaptopServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LaptopServiceServer will result in compilation errors.
type UploadImageRequest ¶
type UploadImageRequest struct { // Types that are assignable to Data: // *UploadImageRequest_Info // *UploadImageRequest_ChunkData Data isUploadImageRequest_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*UploadImageRequest) Descriptor
deprecated
func (*UploadImageRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadImageRequest.ProtoReflect.Descriptor instead.
func (*UploadImageRequest) GetChunkData ¶
func (x *UploadImageRequest) GetChunkData() []byte
func (*UploadImageRequest) GetData ¶
func (m *UploadImageRequest) GetData() isUploadImageRequest_Data
func (*UploadImageRequest) GetInfo ¶
func (x *UploadImageRequest) GetInfo() *ImageInfo
func (*UploadImageRequest) ProtoMessage ¶
func (*UploadImageRequest) ProtoMessage()
func (*UploadImageRequest) ProtoReflect ¶
func (x *UploadImageRequest) ProtoReflect() protoreflect.Message
func (*UploadImageRequest) Reset ¶
func (x *UploadImageRequest) Reset()
func (*UploadImageRequest) String ¶
func (x *UploadImageRequest) String() string
type UploadImageRequest_ChunkData ¶
type UploadImageRequest_ChunkData struct {
ChunkData []byte `protobuf:"bytes,2,opt,name=chunk_data,json=chunkData,proto3,oneof"`
}
type UploadImageRequest_Info ¶
type UploadImageRequest_Info struct {
Info *ImageInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"`
}
type UploadImageResponse ¶
type UploadImageResponse struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*UploadImageResponse) Descriptor
deprecated
func (*UploadImageResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadImageResponse.ProtoReflect.Descriptor instead.
func (*UploadImageResponse) GetId ¶
func (x *UploadImageResponse) GetId() string
func (*UploadImageResponse) GetSize ¶
func (x *UploadImageResponse) GetSize() uint32
func (*UploadImageResponse) ProtoMessage ¶
func (*UploadImageResponse) ProtoMessage()
func (*UploadImageResponse) ProtoReflect ¶
func (x *UploadImageResponse) ProtoReflect() protoreflect.Message
func (*UploadImageResponse) Reset ¶
func (x *UploadImageResponse) Reset()
func (*UploadImageResponse) String ¶
func (x *UploadImageResponse) String() string