Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
- func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterFavoriteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFavoriteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FavoriteServiceClient) error
- func RegisterFavoriteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFavoriteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FavoriteServiceServer) error
- func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)
- func RegisterSearchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSearchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SearchServiceClient) error
- func RegisterSearchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSearchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SearchServiceServer) error
- func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
- type AddItemToFavoritesRequest
- func (*AddItemToFavoritesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemToFavoritesRequest) GetListName() string
- func (x *AddItemToFavoritesRequest) GetProductId() int32
- func (*AddItemToFavoritesRequest) ProtoMessage()
- func (x *AddItemToFavoritesRequest) ProtoReflect() protoreflect.Message
- func (x *AddItemToFavoritesRequest) Reset()
- func (x *AddItemToFavoritesRequest) String() string
- func (this *AddItemToFavoritesRequest) Validate() error
- type AddItemToFavoritesResponse
- func (*AddItemToFavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemToFavoritesResponse) GetSuccess() bool
- func (*AddItemToFavoritesResponse) ProtoMessage()
- func (x *AddItemToFavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *AddItemToFavoritesResponse) Reset()
- func (x *AddItemToFavoritesResponse) String() string
- func (this *AddItemToFavoritesResponse) Validate() error
- type AsyncSearchResponse
- func (*AsyncSearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AsyncSearchResponse) GetProduct() *Product
- func (*AsyncSearchResponse) ProtoMessage()
- func (x *AsyncSearchResponse) ProtoReflect() protoreflect.Message
- func (x *AsyncSearchResponse) Reset()
- func (x *AsyncSearchResponse) String() string
- func (this *AsyncSearchResponse) Validate() error
- type AuthServiceClient
- type AuthServiceServer
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetTitle() string
- func (x *Category) GetUrl() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- func (this *Category) Validate() error
- type CropRequest
- func (*CropRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CropRequest) GetImage() []byte
- func (*CropRequest) ProtoMessage()
- func (x *CropRequest) ProtoReflect() protoreflect.Message
- func (x *CropRequest) Reset()
- func (x *CropRequest) String() string
- func (this *CropRequest) Validate() error
- type CropResponse
- func (*CropResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CropResponse) GetBottomRight() *Position
- func (x *CropResponse) GetTopLeft() *Position
- func (*CropResponse) ProtoMessage()
- func (x *CropResponse) ProtoReflect() protoreflect.Message
- func (x *CropResponse) Reset()
- func (x *CropResponse) String() string
- func (this *CropResponse) Validate() error
- type FavoriteServiceClient
- type FavoriteServiceServer
- type GetFavoritesRequest
- func (*GetFavoritesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFavoritesRequest) GetListName() string
- func (*GetFavoritesRequest) ProtoMessage()
- func (x *GetFavoritesRequest) ProtoReflect() protoreflect.Message
- func (x *GetFavoritesRequest) Reset()
- func (x *GetFavoritesRequest) String() string
- func (this *GetFavoritesRequest) Validate() error
- type GetFavoritesResponse
- func (*GetFavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFavoritesResponse) GetProducts() []*Product
- func (*GetFavoritesResponse) ProtoMessage()
- func (x *GetFavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *GetFavoritesResponse) Reset()
- func (x *GetFavoritesResponse) String() string
- func (this *GetFavoritesResponse) Validate() error
- type GetSearchHistoriesRequest
- func (*GetSearchHistoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSearchHistoriesRequest) GetLimit() int32
- func (x *GetSearchHistoriesRequest) GetOffset() int32
- func (*GetSearchHistoriesRequest) ProtoMessage()
- func (x *GetSearchHistoriesRequest) ProtoReflect() protoreflect.Message
- func (x *GetSearchHistoriesRequest) Reset()
- func (x *GetSearchHistoriesRequest) String() string
- func (this *GetSearchHistoriesRequest) Validate() error
- type GetSearchHistoriesResponse
- func (*GetSearchHistoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetSearchHistoriesResponse) GetHistories() []*SearchHistory
- func (*GetSearchHistoriesResponse) ProtoMessage()
- func (x *GetSearchHistoriesResponse) ProtoReflect() protoreflect.Message
- func (x *GetSearchHistoriesResponse) Reset()
- func (x *GetSearchHistoriesResponse) String() string
- func (this *GetSearchHistoriesResponse) Validate() error
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (this *LoginRequest) Validate() error
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAuthToken() string
- func (x *LoginResponse) GetRefreshToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (this *LoginResponse) Validate() error
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutRequest) GetAuthToken() string
- func (x *LogoutRequest) GetRefreshToken() string
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- func (this *LogoutRequest) Validate() error
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetX() int32
- func (x *Position) GetY() int32
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- func (this *Position) Validate() error
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetCategories() []*Category
- func (x *Product) GetId() int32
- func (x *Product) GetImageUrl() string
- func (x *Product) GetPrice() int64
- func (x *Product) GetRate() *Rating
- func (x *Product) GetScore() float32
- func (x *Product) GetStatus() string
- func (x *Product) GetTitle() string
- func (x *Product) GetUrl() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- func (this *Product) Validate() error
- type Ranker
- type Rating
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- func (this *RefreshTokenRequest) Validate() error
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetAuthToken() string
- func (x *RefreshTokenResponse) GetRefreshToken() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- func (this *RefreshTokenResponse) Validate() error
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetFirstName() string
- func (x *RegisterRequest) GetGender() string
- func (x *RegisterRequest) GetLastName() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetPhoneNumber() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (this *RegisterRequest) Validate() error
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetAuthToken() string
- func (x *RegisterResponse) GetRefreshToken() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (this *RegisterResponse) Validate() error
- type RemoveItemFromFavoritesRequest
- func (*RemoveItemFromFavoritesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveItemFromFavoritesRequest) GetListName() string
- func (x *RemoveItemFromFavoritesRequest) GetProductId() int32
- func (*RemoveItemFromFavoritesRequest) ProtoMessage()
- func (x *RemoveItemFromFavoritesRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveItemFromFavoritesRequest) Reset()
- func (x *RemoveItemFromFavoritesRequest) String() string
- func (this *RemoveItemFromFavoritesRequest) Validate() error
- type RemoveItemFromFavoritesResponse
- func (*RemoveItemFromFavoritesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveItemFromFavoritesResponse) GetSuccess() bool
- func (*RemoveItemFromFavoritesResponse) ProtoMessage()
- func (x *RemoveItemFromFavoritesResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveItemFromFavoritesResponse) Reset()
- func (x *RemoveItemFromFavoritesResponse) String() string
- func (this *RemoveItemFromFavoritesResponse) Validate() error
- type SearchHistory
- func (*SearchHistory) Descriptor() ([]byte, []int)deprecated
- func (x *SearchHistory) GetId() int32
- func (x *SearchHistory) GetImage() []byte
- func (x *SearchHistory) GetProducts() []*Product
- func (*SearchHistory) ProtoMessage()
- func (x *SearchHistory) ProtoReflect() protoreflect.Message
- func (x *SearchHistory) Reset()
- func (x *SearchHistory) String() string
- func (this *SearchHistory) Validate() error
- type SearchParams
- func (*SearchParams) Descriptor() ([]byte, []int)deprecated
- func (x *SearchParams) GetRanker() Ranker
- func (x *SearchParams) GetTopK() int32
- func (*SearchParams) ProtoMessage()
- func (x *SearchParams) ProtoReflect() protoreflect.Message
- func (x *SearchParams) Reset()
- func (x *SearchParams) String() string
- func (this *SearchParams) Validate() error
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetImage() []byte
- func (x *SearchRequest) GetParams() *SearchParams
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- func (this *SearchRequest) Validate() error
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetProducts() []*Product
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- func (this *SearchResponse) Validate() error
- type SearchServiceClient
- type SearchServiceServer
- type SearchService_AsyncSearchClient
- type SearchService_AsyncSearchServer
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
- type UnimplementedFavoriteServiceServer
- func (UnimplementedFavoriteServiceServer) AddItemToFavorites(context.Context, *AddItemToFavoritesRequest) (*AddItemToFavoritesResponse, error)
- func (UnimplementedFavoriteServiceServer) GetFavorites(context.Context, *GetFavoritesRequest) (*GetFavoritesResponse, error)
- func (UnimplementedFavoriteServiceServer) RemoveItemFromFavorites(context.Context, *RemoveItemFromFavoritesRequest) (*RemoveItemFromFavoritesResponse, error)
- type UnimplementedSearchServiceServer
- func (UnimplementedSearchServiceServer) AsyncSearch(*SearchRequest, SearchService_AsyncSearchServer) error
- func (UnimplementedSearchServiceServer) Crop(context.Context, *CropRequest) (*CropResponse, error)
- func (UnimplementedSearchServiceServer) GetSearchHistories(context.Context, *GetSearchHistoriesRequest) (*GetSearchHistoriesResponse, error)
- func (UnimplementedSearchServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeFavoriteServiceServer
- type UnsafeSearchServiceServer
- type UserInfoRequest
- type UserInfoResponse
- func (*UserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResponse) GetEmail() string
- func (x *UserInfoResponse) GetFirstName() string
- func (x *UserInfoResponse) GetGender() string
- func (x *UserInfoResponse) GetLastName() string
- func (x *UserInfoResponse) GetPhoneNumber() string
- func (*UserInfoResponse) ProtoMessage()
- func (x *UserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *UserInfoResponse) Reset()
- func (x *UserInfoResponse) String() string
- func (this *UserInfoResponse) Validate() error
Constants ¶
This section is empty.
Variables ¶
var ( Ranker_name = map[int32]string{ 0: "FIRST_IMAGE", 1: "DIST_COUNT", } Ranker_value = map[string]int32{ "FIRST_IMAGE": 0, "DIST_COUNT": 1, } )
Enum value maps for Ranker.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "RefreshToken", Handler: _AuthService_RefreshToken_Handler, }, { MethodName: "Logout", Handler: _AuthService_Logout_Handler, }, { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "UserInfo", Handler: _AuthService_UserInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.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 FavoriteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.FavoriteService", HandlerType: (*FavoriteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddItemToFavorites", Handler: _FavoriteService_AddItemToFavorites_Handler, }, { MethodName: "RemoveItemFromFavorites", Handler: _FavoriteService_RemoveItemFromFavorites_Handler, }, { MethodName: "GetFavorites", Handler: _FavoriteService_GetFavorites_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "favorite.proto", }
FavoriteService_ServiceDesc is the grpc.ServiceDesc for FavoriteService 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_proto protoreflect.FileDescriptor
var File_favorite_proto protoreflect.FileDescriptor
var File_search_proto protoreflect.FileDescriptor
var SearchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.SearchService", HandlerType: (*SearchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Search", Handler: _SearchService_Search_Handler, }, { MethodName: "Crop", Handler: _SearchService_Crop_Handler, }, { MethodName: "GetSearchHistories", Handler: _SearchService_GetSearchHistories_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "AsyncSearch", Handler: _SearchService_AsyncSearch_Handler, ServerStreams: true, }, }, Metadata: "search.proto", }
SearchService_ServiceDesc is the grpc.ServiceDesc for SearchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceHandler ¶
func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAuthServiceHandlerClient ¶
func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error
RegisterAuthServiceHandlerClient registers the http handlers for service AuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthServiceClient" to call the correct interceptors.
func RegisterAuthServiceHandlerFromEndpoint ¶
func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAuthServiceHandlerServer ¶
func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error
RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". UnaryRPC :call AuthServiceServer 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 RegisterAuthServiceHandlerFromEndpoint instead.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterFavoriteServiceHandler ¶
func RegisterFavoriteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFavoriteServiceHandler registers the http handlers for service FavoriteService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFavoriteServiceHandlerClient ¶
func RegisterFavoriteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FavoriteServiceClient) error
RegisterFavoriteServiceHandlerClient registers the http handlers for service FavoriteService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FavoriteServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FavoriteServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FavoriteServiceClient" to call the correct interceptors.
func RegisterFavoriteServiceHandlerFromEndpoint ¶
func RegisterFavoriteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFavoriteServiceHandlerFromEndpoint is same as RegisterFavoriteServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFavoriteServiceHandlerServer ¶
func RegisterFavoriteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FavoriteServiceServer) error
RegisterFavoriteServiceHandlerServer registers the http handlers for service FavoriteService to "mux". UnaryRPC :call FavoriteServiceServer 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 RegisterFavoriteServiceHandlerFromEndpoint instead.
func RegisterFavoriteServiceServer ¶
func RegisterFavoriteServiceServer(s grpc.ServiceRegistrar, srv FavoriteServiceServer)
func RegisterSearchServiceHandler ¶
func RegisterSearchServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSearchServiceHandler registers the http handlers for service SearchService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSearchServiceHandlerClient ¶
func RegisterSearchServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SearchServiceClient) error
RegisterSearchServiceHandlerClient registers the http handlers for service SearchService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SearchServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SearchServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SearchServiceClient" to call the correct interceptors.
func RegisterSearchServiceHandlerFromEndpoint ¶
func RegisterSearchServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSearchServiceHandlerFromEndpoint is same as RegisterSearchServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSearchServiceHandlerServer ¶
func RegisterSearchServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SearchServiceServer) error
RegisterSearchServiceHandlerServer registers the http handlers for service SearchService to "mux". UnaryRPC :call SearchServiceServer 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 RegisterSearchServiceHandlerFromEndpoint instead.
func RegisterSearchServiceServer ¶
func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)
Types ¶
type AddItemToFavoritesRequest ¶
type AddItemToFavoritesRequest struct { ListName string `protobuf:"bytes,1,opt,name=list_name,json=listName,proto3" json:"list_name,omitempty"` ProductId int32 `protobuf:"varint,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
func (*AddItemToFavoritesRequest) Descriptor
deprecated
func (*AddItemToFavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddItemToFavoritesRequest.ProtoReflect.Descriptor instead.
func (*AddItemToFavoritesRequest) GetListName ¶
func (x *AddItemToFavoritesRequest) GetListName() string
func (*AddItemToFavoritesRequest) GetProductId ¶
func (x *AddItemToFavoritesRequest) GetProductId() int32
func (*AddItemToFavoritesRequest) ProtoMessage ¶
func (*AddItemToFavoritesRequest) ProtoMessage()
func (*AddItemToFavoritesRequest) ProtoReflect ¶
func (x *AddItemToFavoritesRequest) ProtoReflect() protoreflect.Message
func (*AddItemToFavoritesRequest) Reset ¶
func (x *AddItemToFavoritesRequest) Reset()
func (*AddItemToFavoritesRequest) String ¶
func (x *AddItemToFavoritesRequest) String() string
func (*AddItemToFavoritesRequest) Validate ¶
func (this *AddItemToFavoritesRequest) Validate() error
type AddItemToFavoritesResponse ¶
type AddItemToFavoritesResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*AddItemToFavoritesResponse) Descriptor
deprecated
func (*AddItemToFavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddItemToFavoritesResponse.ProtoReflect.Descriptor instead.
func (*AddItemToFavoritesResponse) GetSuccess ¶
func (x *AddItemToFavoritesResponse) GetSuccess() bool
func (*AddItemToFavoritesResponse) ProtoMessage ¶
func (*AddItemToFavoritesResponse) ProtoMessage()
func (*AddItemToFavoritesResponse) ProtoReflect ¶
func (x *AddItemToFavoritesResponse) ProtoReflect() protoreflect.Message
func (*AddItemToFavoritesResponse) Reset ¶
func (x *AddItemToFavoritesResponse) Reset()
func (*AddItemToFavoritesResponse) String ¶
func (x *AddItemToFavoritesResponse) String() string
func (*AddItemToFavoritesResponse) Validate ¶
func (this *AddItemToFavoritesResponse) Validate() error
type AsyncSearchResponse ¶
type AsyncSearchResponse struct { Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*AsyncSearchResponse) Descriptor
deprecated
func (*AsyncSearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use AsyncSearchResponse.ProtoReflect.Descriptor instead.
func (*AsyncSearchResponse) GetProduct ¶
func (x *AsyncSearchResponse) GetProduct() *Product
func (*AsyncSearchResponse) ProtoMessage ¶
func (*AsyncSearchResponse) ProtoMessage()
func (*AsyncSearchResponse) ProtoReflect ¶
func (x *AsyncSearchResponse) ProtoReflect() protoreflect.Message
func (*AsyncSearchResponse) Reset ¶
func (x *AsyncSearchResponse) Reset()
func (*AsyncSearchResponse) String ¶
func (x *AsyncSearchResponse) String() string
func (*AsyncSearchResponse) Validate ¶
func (this *AsyncSearchResponse) Validate() error
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, 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) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type Category ¶
type Category struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CropRequest ¶
type CropRequest struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CropRequest) Descriptor
deprecated
func (*CropRequest) Descriptor() ([]byte, []int)
Deprecated: Use CropRequest.ProtoReflect.Descriptor instead.
func (*CropRequest) GetImage ¶
func (x *CropRequest) GetImage() []byte
func (*CropRequest) ProtoMessage ¶
func (*CropRequest) ProtoMessage()
func (*CropRequest) ProtoReflect ¶
func (x *CropRequest) ProtoReflect() protoreflect.Message
func (*CropRequest) Reset ¶
func (x *CropRequest) Reset()
func (*CropRequest) String ¶
func (x *CropRequest) String() string
func (*CropRequest) Validate ¶
func (this *CropRequest) Validate() error
type CropResponse ¶
type CropResponse struct { TopLeft *Position `protobuf:"bytes,1,opt,name=top_left,json=topLeft,proto3" json:"top_left,omitempty"` BottomRight *Position `protobuf:"bytes,2,opt,name=bottom_right,json=bottomRight,proto3" json:"bottom_right,omitempty"` // contains filtered or unexported fields }
func (*CropResponse) Descriptor
deprecated
func (*CropResponse) Descriptor() ([]byte, []int)
Deprecated: Use CropResponse.ProtoReflect.Descriptor instead.
func (*CropResponse) GetBottomRight ¶
func (x *CropResponse) GetBottomRight() *Position
func (*CropResponse) GetTopLeft ¶
func (x *CropResponse) GetTopLeft() *Position
func (*CropResponse) ProtoMessage ¶
func (*CropResponse) ProtoMessage()
func (*CropResponse) ProtoReflect ¶
func (x *CropResponse) ProtoReflect() protoreflect.Message
func (*CropResponse) Reset ¶
func (x *CropResponse) Reset()
func (*CropResponse) String ¶
func (x *CropResponse) String() string
func (*CropResponse) Validate ¶
func (this *CropResponse) Validate() error
type FavoriteServiceClient ¶
type FavoriteServiceClient interface { AddItemToFavorites(ctx context.Context, in *AddItemToFavoritesRequest, opts ...grpc.CallOption) (*AddItemToFavoritesResponse, error) RemoveItemFromFavorites(ctx context.Context, in *RemoveItemFromFavoritesRequest, opts ...grpc.CallOption) (*RemoveItemFromFavoritesResponse, error) GetFavorites(ctx context.Context, in *GetFavoritesRequest, opts ...grpc.CallOption) (*GetFavoritesResponse, error) }
FavoriteServiceClient is the client API for FavoriteService 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 NewFavoriteServiceClient ¶
func NewFavoriteServiceClient(cc grpc.ClientConnInterface) FavoriteServiceClient
type FavoriteServiceServer ¶
type FavoriteServiceServer interface { AddItemToFavorites(context.Context, *AddItemToFavoritesRequest) (*AddItemToFavoritesResponse, error) RemoveItemFromFavorites(context.Context, *RemoveItemFromFavoritesRequest) (*RemoveItemFromFavoritesResponse, error) GetFavorites(context.Context, *GetFavoritesRequest) (*GetFavoritesResponse, error) // contains filtered or unexported methods }
FavoriteServiceServer is the server API for FavoriteService service. All implementations must embed UnimplementedFavoriteServiceServer for forward compatibility
type GetFavoritesRequest ¶
type GetFavoritesRequest struct { ListName string `protobuf:"bytes,1,opt,name=list_name,json=listName,proto3" json:"list_name,omitempty"` // contains filtered or unexported fields }
func (*GetFavoritesRequest) Descriptor
deprecated
func (*GetFavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFavoritesRequest.ProtoReflect.Descriptor instead.
func (*GetFavoritesRequest) GetListName ¶
func (x *GetFavoritesRequest) GetListName() string
func (*GetFavoritesRequest) ProtoMessage ¶
func (*GetFavoritesRequest) ProtoMessage()
func (*GetFavoritesRequest) ProtoReflect ¶
func (x *GetFavoritesRequest) ProtoReflect() protoreflect.Message
func (*GetFavoritesRequest) Reset ¶
func (x *GetFavoritesRequest) Reset()
func (*GetFavoritesRequest) String ¶
func (x *GetFavoritesRequest) String() string
func (*GetFavoritesRequest) Validate ¶
func (this *GetFavoritesRequest) Validate() error
type GetFavoritesResponse ¶
type GetFavoritesResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*GetFavoritesResponse) Descriptor
deprecated
func (*GetFavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFavoritesResponse.ProtoReflect.Descriptor instead.
func (*GetFavoritesResponse) GetProducts ¶
func (x *GetFavoritesResponse) GetProducts() []*Product
func (*GetFavoritesResponse) ProtoMessage ¶
func (*GetFavoritesResponse) ProtoMessage()
func (*GetFavoritesResponse) ProtoReflect ¶
func (x *GetFavoritesResponse) ProtoReflect() protoreflect.Message
func (*GetFavoritesResponse) Reset ¶
func (x *GetFavoritesResponse) Reset()
func (*GetFavoritesResponse) String ¶
func (x *GetFavoritesResponse) String() string
func (*GetFavoritesResponse) Validate ¶
func (this *GetFavoritesResponse) Validate() error
type GetSearchHistoriesRequest ¶
type GetSearchHistoriesRequest struct { Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetSearchHistoriesRequest) Descriptor
deprecated
func (*GetSearchHistoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSearchHistoriesRequest.ProtoReflect.Descriptor instead.
func (*GetSearchHistoriesRequest) GetLimit ¶
func (x *GetSearchHistoriesRequest) GetLimit() int32
func (*GetSearchHistoriesRequest) GetOffset ¶
func (x *GetSearchHistoriesRequest) GetOffset() int32
func (*GetSearchHistoriesRequest) ProtoMessage ¶
func (*GetSearchHistoriesRequest) ProtoMessage()
func (*GetSearchHistoriesRequest) ProtoReflect ¶
func (x *GetSearchHistoriesRequest) ProtoReflect() protoreflect.Message
func (*GetSearchHistoriesRequest) Reset ¶
func (x *GetSearchHistoriesRequest) Reset()
func (*GetSearchHistoriesRequest) String ¶
func (x *GetSearchHistoriesRequest) String() string
func (*GetSearchHistoriesRequest) Validate ¶
func (this *GetSearchHistoriesRequest) Validate() error
type GetSearchHistoriesResponse ¶
type GetSearchHistoriesResponse struct { Histories []*SearchHistory `protobuf:"bytes,1,rep,name=histories,proto3" json:"histories,omitempty"` // contains filtered or unexported fields }
func (*GetSearchHistoriesResponse) Descriptor
deprecated
func (*GetSearchHistoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetSearchHistoriesResponse.ProtoReflect.Descriptor instead.
func (*GetSearchHistoriesResponse) GetHistories ¶
func (x *GetSearchHistoriesResponse) GetHistories() []*SearchHistory
func (*GetSearchHistoriesResponse) ProtoMessage ¶
func (*GetSearchHistoriesResponse) ProtoMessage()
func (*GetSearchHistoriesResponse) ProtoReflect ¶
func (x *GetSearchHistoriesResponse) ProtoReflect() protoreflect.Message
func (*GetSearchHistoriesResponse) Reset ¶
func (x *GetSearchHistoriesResponse) Reset()
func (*GetSearchHistoriesResponse) String ¶
func (x *GetSearchHistoriesResponse) String() string
func (*GetSearchHistoriesResponse) Validate ¶
func (this *GetSearchHistoriesResponse) Validate() error
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,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) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() 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
func (*LoginRequest) Validate ¶
func (this *LoginRequest) Validate() error
type LoginResponse ¶
type LoginResponse struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAuthToken ¶
func (x *LoginResponse) GetAuthToken() string
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() 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
func (*LoginResponse) Validate ¶
func (this *LoginResponse) Validate() error
type LogoutRequest ¶
type LogoutRequest struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) GetAuthToken ¶
func (x *LogoutRequest) GetAuthToken() string
func (*LogoutRequest) GetRefreshToken ¶
func (x *LogoutRequest) GetRefreshToken() string
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
func (*LogoutRequest) Validate ¶
func (this *LogoutRequest) Validate() error
type Position ¶
type Position struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Product ¶
type Product struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` ImageUrl string `protobuf:"bytes,6,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` Rate *Rating `protobuf:"bytes,7,opt,name=rate,proto3" json:"rate,omitempty"` Categories []*Category `protobuf:"bytes,8,rep,name=categories,proto3" json:"categories,omitempty"` Price int64 `protobuf:"varint,9,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetCategories ¶
func (*Product) GetImageUrl ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type Ranker ¶
type Ranker int32
func (Ranker) Descriptor ¶
func (Ranker) Descriptor() protoreflect.EnumDescriptor
func (Ranker) EnumDescriptor
deprecated
func (Ranker) Number ¶
func (x Ranker) Number() protoreflect.EnumNumber
func (Ranker) Type ¶
func (Ranker) Type() protoreflect.EnumType
type Rating ¶
type Rating struct { Rate int32 `protobuf:"varint,1,opt,name=rate,proto3" json:"rate,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Rating) Descriptor
deprecated
func (*Rating) ProtoMessage ¶
func (*Rating) ProtoMessage()
func (*Rating) ProtoReflect ¶
func (x *Rating) ProtoReflect() protoreflect.Message
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
func (*RefreshTokenRequest) Validate ¶
func (this *RefreshTokenRequest) Validate() error
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetAuthToken ¶
func (x *RefreshTokenResponse) GetAuthToken() string
func (*RefreshTokenResponse) GetRefreshToken ¶
func (x *RefreshTokenResponse) GetRefreshToken() string
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
func (*RefreshTokenResponse) Validate ¶
func (this *RefreshTokenResponse) Validate() error
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Gender string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Password string `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetFirstName ¶
func (x *RegisterRequest) GetFirstName() string
func (*RegisterRequest) GetGender ¶
func (x *RegisterRequest) GetGender() string
func (*RegisterRequest) GetLastName ¶
func (x *RegisterRequest) GetLastName() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetPhoneNumber ¶
func (x *RegisterRequest) GetPhoneNumber() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (this *RegisterRequest) Validate() error
type RegisterResponse ¶
type RegisterResponse struct { AuthToken string `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetAuthToken ¶
func (x *RegisterResponse) GetAuthToken() string
func (*RegisterResponse) GetRefreshToken ¶
func (x *RegisterResponse) GetRefreshToken() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (this *RegisterResponse) Validate() error
type RemoveItemFromFavoritesRequest ¶
type RemoveItemFromFavoritesRequest struct { ListName string `protobuf:"bytes,1,opt,name=list_name,json=listName,proto3" json:"list_name,omitempty"` ProductId int32 `protobuf:"varint,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveItemFromFavoritesRequest) Descriptor
deprecated
func (*RemoveItemFromFavoritesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveItemFromFavoritesRequest.ProtoReflect.Descriptor instead.
func (*RemoveItemFromFavoritesRequest) GetListName ¶
func (x *RemoveItemFromFavoritesRequest) GetListName() string
func (*RemoveItemFromFavoritesRequest) GetProductId ¶
func (x *RemoveItemFromFavoritesRequest) GetProductId() int32
func (*RemoveItemFromFavoritesRequest) ProtoMessage ¶
func (*RemoveItemFromFavoritesRequest) ProtoMessage()
func (*RemoveItemFromFavoritesRequest) ProtoReflect ¶
func (x *RemoveItemFromFavoritesRequest) ProtoReflect() protoreflect.Message
func (*RemoveItemFromFavoritesRequest) Reset ¶
func (x *RemoveItemFromFavoritesRequest) Reset()
func (*RemoveItemFromFavoritesRequest) String ¶
func (x *RemoveItemFromFavoritesRequest) String() string
func (*RemoveItemFromFavoritesRequest) Validate ¶
func (this *RemoveItemFromFavoritesRequest) Validate() error
type RemoveItemFromFavoritesResponse ¶
type RemoveItemFromFavoritesResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*RemoveItemFromFavoritesResponse) Descriptor
deprecated
func (*RemoveItemFromFavoritesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveItemFromFavoritesResponse.ProtoReflect.Descriptor instead.
func (*RemoveItemFromFavoritesResponse) GetSuccess ¶
func (x *RemoveItemFromFavoritesResponse) GetSuccess() bool
func (*RemoveItemFromFavoritesResponse) ProtoMessage ¶
func (*RemoveItemFromFavoritesResponse) ProtoMessage()
func (*RemoveItemFromFavoritesResponse) ProtoReflect ¶
func (x *RemoveItemFromFavoritesResponse) ProtoReflect() protoreflect.Message
func (*RemoveItemFromFavoritesResponse) Reset ¶
func (x *RemoveItemFromFavoritesResponse) Reset()
func (*RemoveItemFromFavoritesResponse) String ¶
func (x *RemoveItemFromFavoritesResponse) String() string
func (*RemoveItemFromFavoritesResponse) Validate ¶
func (this *RemoveItemFromFavoritesResponse) Validate() error
type SearchHistory ¶
type SearchHistory struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Image []byte `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` Products []*Product `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*SearchHistory) Descriptor
deprecated
func (*SearchHistory) Descriptor() ([]byte, []int)
Deprecated: Use SearchHistory.ProtoReflect.Descriptor instead.
func (*SearchHistory) GetId ¶
func (x *SearchHistory) GetId() int32
func (*SearchHistory) GetImage ¶
func (x *SearchHistory) GetImage() []byte
func (*SearchHistory) GetProducts ¶
func (x *SearchHistory) GetProducts() []*Product
func (*SearchHistory) ProtoMessage ¶
func (*SearchHistory) ProtoMessage()
func (*SearchHistory) ProtoReflect ¶
func (x *SearchHistory) ProtoReflect() protoreflect.Message
func (*SearchHistory) Reset ¶
func (x *SearchHistory) Reset()
func (*SearchHistory) String ¶
func (x *SearchHistory) String() string
func (*SearchHistory) Validate ¶
func (this *SearchHistory) Validate() error
type SearchParams ¶
type SearchParams struct { TopK int32 `protobuf:"varint,1,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` Ranker Ranker `protobuf:"varint,2,opt,name=ranker,proto3,enum=v1.Ranker" json:"ranker,omitempty"` // contains filtered or unexported fields }
func (*SearchParams) Descriptor
deprecated
func (*SearchParams) Descriptor() ([]byte, []int)
Deprecated: Use SearchParams.ProtoReflect.Descriptor instead.
func (*SearchParams) GetRanker ¶
func (x *SearchParams) GetRanker() Ranker
func (*SearchParams) GetTopK ¶
func (x *SearchParams) GetTopK() int32
func (*SearchParams) ProtoMessage ¶
func (*SearchParams) ProtoMessage()
func (*SearchParams) ProtoReflect ¶
func (x *SearchParams) ProtoReflect() protoreflect.Message
func (*SearchParams) Reset ¶
func (x *SearchParams) Reset()
func (*SearchParams) String ¶
func (x *SearchParams) String() string
func (*SearchParams) Validate ¶
func (this *SearchParams) Validate() error
type SearchRequest ¶
type SearchRequest struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` Params *SearchParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetImage ¶
func (x *SearchRequest) GetImage() []byte
func (*SearchRequest) GetParams ¶
func (x *SearchRequest) GetParams() *SearchParams
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
func (*SearchRequest) Validate ¶
func (this *SearchRequest) Validate() error
type SearchResponse ¶
type SearchResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetProducts ¶
func (x *SearchResponse) GetProducts() []*Product
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
func (*SearchResponse) Validate ¶
func (this *SearchResponse) Validate() error
type SearchServiceClient ¶
type SearchServiceClient interface { Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) AsyncSearch(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (SearchService_AsyncSearchClient, error) Crop(ctx context.Context, in *CropRequest, opts ...grpc.CallOption) (*CropResponse, error) GetSearchHistories(ctx context.Context, in *GetSearchHistoriesRequest, opts ...grpc.CallOption) (*GetSearchHistoriesResponse, error) }
SearchServiceClient is the client API for SearchService 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 NewSearchServiceClient ¶
func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceServer ¶
type SearchServiceServer interface { Search(context.Context, *SearchRequest) (*SearchResponse, error) AsyncSearch(*SearchRequest, SearchService_AsyncSearchServer) error Crop(context.Context, *CropRequest) (*CropResponse, error) GetSearchHistories(context.Context, *GetSearchHistoriesRequest) (*GetSearchHistoriesResponse, error) // contains filtered or unexported methods }
SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility
type SearchService_AsyncSearchClient ¶
type SearchService_AsyncSearchClient interface { Recv() (*AsyncSearchResponse, error) grpc.ClientStream }
type SearchService_AsyncSearchServer ¶
type SearchService_AsyncSearchServer interface { Send(*AsyncSearchResponse) error grpc.ServerStream }
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) Logout ¶
func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServiceServer) RefreshToken ¶
func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) UserInfo ¶
func (UnimplementedAuthServiceServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error)
type UnimplementedFavoriteServiceServer ¶
type UnimplementedFavoriteServiceServer struct { }
UnimplementedFavoriteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFavoriteServiceServer) AddItemToFavorites ¶
func (UnimplementedFavoriteServiceServer) AddItemToFavorites(context.Context, *AddItemToFavoritesRequest) (*AddItemToFavoritesResponse, error)
func (UnimplementedFavoriteServiceServer) GetFavorites ¶
func (UnimplementedFavoriteServiceServer) GetFavorites(context.Context, *GetFavoritesRequest) (*GetFavoritesResponse, error)
func (UnimplementedFavoriteServiceServer) RemoveItemFromFavorites ¶
func (UnimplementedFavoriteServiceServer) RemoveItemFromFavorites(context.Context, *RemoveItemFromFavoritesRequest) (*RemoveItemFromFavoritesResponse, error)
type UnimplementedSearchServiceServer ¶
type UnimplementedSearchServiceServer struct { }
UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchServiceServer) AsyncSearch ¶
func (UnimplementedSearchServiceServer) AsyncSearch(*SearchRequest, SearchService_AsyncSearchServer) error
func (UnimplementedSearchServiceServer) Crop ¶
func (UnimplementedSearchServiceServer) Crop(context.Context, *CropRequest) (*CropResponse, error)
func (UnimplementedSearchServiceServer) GetSearchHistories ¶
func (UnimplementedSearchServiceServer) GetSearchHistories(context.Context, *GetSearchHistoriesRequest) (*GetSearchHistoriesResponse, error)
func (UnimplementedSearchServiceServer) Search ¶
func (UnimplementedSearchServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
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 UnsafeFavoriteServiceServer ¶
type UnsafeFavoriteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFavoriteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FavoriteServiceServer will result in compilation errors.
type UnsafeSearchServiceServer ¶
type UnsafeSearchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSearchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServiceServer will result in compilation errors.
type UserInfoRequest ¶
type UserInfoRequest struct {
// contains filtered or unexported fields
}
func (*UserInfoRequest) Descriptor
deprecated
func (*UserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead.
func (*UserInfoRequest) ProtoMessage ¶
func (*UserInfoRequest) ProtoMessage()
func (*UserInfoRequest) ProtoReflect ¶
func (x *UserInfoRequest) ProtoReflect() protoreflect.Message
func (*UserInfoRequest) Reset ¶
func (x *UserInfoRequest) Reset()
func (*UserInfoRequest) String ¶
func (x *UserInfoRequest) String() string
func (*UserInfoRequest) Validate ¶
func (this *UserInfoRequest) Validate() error
type UserInfoResponse ¶
type UserInfoResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Gender string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // contains filtered or unexported fields }
func (*UserInfoResponse) Descriptor
deprecated
func (*UserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead.
func (*UserInfoResponse) GetEmail ¶
func (x *UserInfoResponse) GetEmail() string
func (*UserInfoResponse) GetFirstName ¶
func (x *UserInfoResponse) GetFirstName() string
func (*UserInfoResponse) GetGender ¶
func (x *UserInfoResponse) GetGender() string
func (*UserInfoResponse) GetLastName ¶
func (x *UserInfoResponse) GetLastName() string
func (*UserInfoResponse) GetPhoneNumber ¶
func (x *UserInfoResponse) GetPhoneNumber() string
func (*UserInfoResponse) ProtoMessage ¶
func (*UserInfoResponse) ProtoMessage()
func (*UserInfoResponse) ProtoReflect ¶
func (x *UserInfoResponse) ProtoReflect() protoreflect.Message
func (*UserInfoResponse) Reset ¶
func (x *UserInfoResponse) Reset()
func (*UserInfoResponse) String ¶
func (x *UserInfoResponse) String() string
func (*UserInfoResponse) Validate ¶
func (this *UserInfoResponse) Validate() error