Documentation
¶
Overview ¶
Package lostidv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package lostidv1 is a generated GoMock package.
Index ¶
- Constants
- Variables
- func CreateProxyHandler(ctx context.Context, proxyOptions common.ProxyOptions) (*http.ServeMux, error)
- func RegisterLostIdServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLostIdServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LostIdServiceClient) error
- func RegisterLostIdServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLostIdServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LostIdServiceServer) error
- func RegisterLostIdServiceServer(s grpc.ServiceRegistrar, srv LostIdServiceServer)
- type CollectibleRequest
- func (*CollectibleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CollectibleRequest) GetFileId() []string
- func (x *CollectibleRequest) GetProperties() map[string]string
- func (*CollectibleRequest) ProtoMessage()
- func (x *CollectibleRequest) ProtoReflect() protoreflect.Message
- func (x *CollectibleRequest) Reset()
- func (x *CollectibleRequest) String() string
- type CollectibleResponse
- func (*CollectibleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CollectibleResponse) GetFileId() []string
- func (x *CollectibleResponse) GetId() string
- func (x *CollectibleResponse) GetProperties() map[string]string
- func (x *CollectibleResponse) GetState() string
- func (*CollectibleResponse) ProtoMessage()
- func (x *CollectibleResponse) ProtoReflect() protoreflect.Message
- func (x *CollectibleResponse) Reset()
- func (x *CollectibleResponse) String() string
- type ItemType
- type ListCollectibleRequest
- func (*ListCollectibleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectibleRequest) GetInterval() *interval.Interval
- func (x *ListCollectibleRequest) GetPagination() *v1.Pagination
- func (x *ListCollectibleRequest) GetRange() isListCollectibleRequest_Range
- func (*ListCollectibleRequest) ProtoMessage()
- func (x *ListCollectibleRequest) ProtoReflect() protoreflect.Message
- func (x *ListCollectibleRequest) Reset()
- func (x *ListCollectibleRequest) String() string
- type ListCollectibleRequest_Interval
- type ListCollectibleRequest_Pagination
- type ListCollectibleResponse
- func (*ListCollectibleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectibleResponse) GetData() []*CollectibleResponse
- func (*ListCollectibleResponse) ProtoMessage()
- func (x *ListCollectibleResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectibleResponse) Reset()
- func (x *ListCollectibleResponse) String() string
- type ListSearchRequest
- func (*ListSearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSearchRequest) GetInterval() *interval.Interval
- func (x *ListSearchRequest) GetPagination() *v1.Pagination
- func (x *ListSearchRequest) GetRange() isListSearchRequest_Range
- func (*ListSearchRequest) ProtoMessage()
- func (x *ListSearchRequest) ProtoReflect() protoreflect.Message
- func (x *ListSearchRequest) Reset()
- func (x *ListSearchRequest) String() string
- type ListSearchRequest_Interval
- type ListSearchRequest_Pagination
- type ListSearchResponse
- func (*ListSearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSearchResponse) GetData() []*SearchResponse
- func (*ListSearchResponse) ProtoMessage()
- func (x *ListSearchResponse) ProtoReflect() protoreflect.Message
- func (x *ListSearchResponse) Reset()
- func (x *ListSearchResponse) String() string
- type ListTransactionRequest
- func (*ListTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTransactionRequest) GetInterval() *interval.Interval
- func (x *ListTransactionRequest) GetPagination() *v1.Pagination
- func (x *ListTransactionRequest) GetRange() isListTransactionRequest_Range
- func (*ListTransactionRequest) ProtoMessage()
- func (x *ListTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *ListTransactionRequest) Reset()
- func (x *ListTransactionRequest) String() string
- type ListTransactionRequest_Interval
- type ListTransactionRequest_Pagination
- type ListTransactionResponse
- func (*ListTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTransactionResponse) GetData() []*TransactionItem
- func (*ListTransactionResponse) ProtoMessage()
- func (x *ListTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *ListTransactionResponse) Reset()
- func (x *ListTransactionResponse) String() string
- type LostIdServiceClient
- type LostIdServiceServer
- type LostIdService_ListCollectibleClient
- type LostIdService_ListCollectibleServer
- type LostIdService_ListSearchClient
- type LostIdService_ListSearchServer
- type LostIdService_ListTransactionClient
- type LostIdService_ListTransactionServer
- type MockLostIdServiceClient
- func (m *MockLostIdServiceClient) Collectible(ctx context.Context, in *CollectibleRequest, opts ...grpc.CallOption) (*CollectibleResponse, error)
- func (m *MockLostIdServiceClient) EXPECT() *MockLostIdServiceClientMockRecorder
- func (m *MockLostIdServiceClient) ListCollectible(ctx context.Context, in *ListCollectibleRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListCollectibleResponse], error)
- func (m *MockLostIdServiceClient) ListSearch(ctx context.Context, in *ListSearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListSearchResponse], error)
- func (m *MockLostIdServiceClient) ListTransaction(ctx context.Context, in *ListTransactionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListTransactionResponse], error)
- func (m *MockLostIdServiceClient) Progress(ctx context.Context, in *ProgressRequest, opts ...grpc.CallOption) (*ProgressResponse, error)
- func (m *MockLostIdServiceClient) Search(ctx context.Context, in *commonv1.SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
- type MockLostIdServiceClientMockRecorder
- func (mr *MockLostIdServiceClientMockRecorder) Collectible(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockLostIdServiceClientMockRecorder) ListCollectible(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockLostIdServiceClientMockRecorder) ListSearch(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockLostIdServiceClientMockRecorder) ListTransaction(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockLostIdServiceClientMockRecorder) Progress(ctx, in any, opts ...any) *gomock.Call
- func (mr *MockLostIdServiceClientMockRecorder) Search(ctx, in any, opts ...any) *gomock.Call
- type MockLostIdServiceServer
- func (m *MockLostIdServiceServer) Collectible(arg0 context.Context, arg1 *CollectibleRequest) (*CollectibleResponse, error)
- func (m *MockLostIdServiceServer) EXPECT() *MockLostIdServiceServerMockRecorder
- func (m *MockLostIdServiceServer) ListCollectible(arg0 *ListCollectibleRequest, ...) error
- func (m *MockLostIdServiceServer) ListSearch(arg0 *ListSearchRequest, arg1 grpc.ServerStreamingServer[ListSearchResponse]) error
- func (m *MockLostIdServiceServer) ListTransaction(arg0 *ListTransactionRequest, ...) error
- func (m *MockLostIdServiceServer) Progress(arg0 context.Context, arg1 *ProgressRequest) (*ProgressResponse, error)
- func (m *MockLostIdServiceServer) Search(arg0 context.Context, arg1 *commonv1.SearchRequest) (*SearchResponse, error)
- type MockLostIdServiceServerMockRecorder
- func (mr *MockLostIdServiceServerMockRecorder) Collectible(arg0, arg1 any) *gomock.Call
- func (mr *MockLostIdServiceServerMockRecorder) ListCollectible(arg0, arg1 any) *gomock.Call
- func (mr *MockLostIdServiceServerMockRecorder) ListSearch(arg0, arg1 any) *gomock.Call
- func (mr *MockLostIdServiceServerMockRecorder) ListTransaction(arg0, arg1 any) *gomock.Call
- func (mr *MockLostIdServiceServerMockRecorder) Progress(arg0, arg1 any) *gomock.Call
- func (mr *MockLostIdServiceServerMockRecorder) Search(arg0, arg1 any) *gomock.Call
- type MockUnsafeLostIdServiceServer
- type MockUnsafeLostIdServiceServerMockRecorder
- type ProgressItem
- func (*ProgressItem) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressItem) GetDatetime() string
- func (x *ProgressItem) GetDescription() string
- func (x *ProgressItem) GetId() string
- func (x *ProgressItem) GetState() string
- func (*ProgressItem) ProtoMessage()
- func (x *ProgressItem) ProtoReflect() protoreflect.Message
- func (x *ProgressItem) Reset()
- func (x *ProgressItem) String() string
- type ProgressRequest
- func (*ProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressRequest) GetId() string
- func (x *ProgressRequest) GetType() ItemType
- func (*ProgressRequest) ProtoMessage()
- func (x *ProgressRequest) ProtoReflect() protoreflect.Message
- func (x *ProgressRequest) Reset()
- func (x *ProgressRequest) String() string
- type ProgressResponse
- func (*ProgressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressResponse) GetId() string
- func (x *ProgressResponse) GetItems() []*ProgressItem
- func (x *ProgressResponse) GetProperties() map[string]string
- func (x *ProgressResponse) GetState() string
- func (x *ProgressResponse) GetTransactions() []*TransactionItem
- func (x *ProgressResponse) GetType() ItemType
- func (*ProgressResponse) ProtoMessage()
- func (x *ProgressResponse) ProtoReflect() protoreflect.Message
- func (x *ProgressResponse) Reset()
- func (x *ProgressResponse) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetId() string
- func (x *SearchResponse) GetProperties() map[string]string
- func (x *SearchResponse) GetQuery() string
- func (x *SearchResponse) GetState() string
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type TransactionItem
- func (*TransactionItem) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionItem) GetAmount() *money.Money
- func (x *TransactionItem) GetCredit() bool
- func (x *TransactionItem) GetDatetime() string
- func (x *TransactionItem) GetDescription() string
- func (x *TransactionItem) GetId() string
- func (*TransactionItem) ProtoMessage()
- func (x *TransactionItem) ProtoReflect() protoreflect.Message
- func (x *TransactionItem) Reset()
- func (x *TransactionItem) String() string
- type UnimplementedLostIdServiceServer
- func (UnimplementedLostIdServiceServer) Collectible(context.Context, *CollectibleRequest) (*CollectibleResponse, error)
- func (UnimplementedLostIdServiceServer) ListCollectible(*ListCollectibleRequest, grpc.ServerStreamingServer[ListCollectibleResponse]) error
- func (UnimplementedLostIdServiceServer) ListSearch(*ListSearchRequest, grpc.ServerStreamingServer[ListSearchResponse]) error
- func (UnimplementedLostIdServiceServer) ListTransaction(*ListTransactionRequest, grpc.ServerStreamingServer[ListTransactionResponse]) error
- func (UnimplementedLostIdServiceServer) Progress(context.Context, *ProgressRequest) (*ProgressResponse, error)
- func (UnimplementedLostIdServiceServer) Search(context.Context, *v1.SearchRequest) (*SearchResponse, error)
- type UnsafeLostIdServiceServer
Constants ¶
const ( LostIdService_Collectible_FullMethodName = "/lostid.v1.LostIdService/Collectible" LostIdService_ListCollectible_FullMethodName = "/lostid.v1.LostIdService/ListCollectible" LostIdService_Search_FullMethodName = "/lostid.v1.LostIdService/Search" LostIdService_ListSearch_FullMethodName = "/lostid.v1.LostIdService/ListSearch" LostIdService_Progress_FullMethodName = "/lostid.v1.LostIdService/Progress" LostIdService_ListTransaction_FullMethodName = "/lostid.v1.LostIdService/ListTransaction" )
Variables ¶
var ( ItemType_name = map[int32]string{ 0: "COLLECTIBLE", 1: "SEARCH", 2: "TRANSACTION", } ItemType_value = map[string]int32{ "COLLECTIBLE": 0, "SEARCH": 1, "TRANSACTION": 2, } )
Enum value maps for ItemType.
var File_lostid_v1_lostid_proto protoreflect.FileDescriptor
var LostIdService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lostid.v1.LostIdService", HandlerType: (*LostIdServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Collectible", Handler: _LostIdService_Collectible_Handler, }, { MethodName: "Search", Handler: _LostIdService_Search_Handler, }, { MethodName: "Progress", Handler: _LostIdService_Progress_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListCollectible", Handler: _LostIdService_ListCollectible_Handler, ServerStreams: true, }, { StreamName: "ListSearch", Handler: _LostIdService_ListSearch_Handler, ServerStreams: true, }, { StreamName: "ListTransaction", Handler: _LostIdService_ListTransaction_Handler, ServerStreams: true, }, }, Metadata: "lostid/v1/lostid.proto", }
LostIdService_ServiceDesc is the grpc.ServiceDesc for LostIdService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func CreateProxyHandler ¶ added in v1.28.4
func RegisterLostIdServiceHandler ¶ added in v1.28.0
func RegisterLostIdServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLostIdServiceHandler registers the http handlers for service LostIdService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLostIdServiceHandlerClient ¶ added in v1.28.0
func RegisterLostIdServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LostIdServiceClient) error
RegisterLostIdServiceHandlerClient registers the http handlers for service LostIdService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LostIdServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LostIdServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LostIdServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterLostIdServiceHandlerFromEndpoint ¶ added in v1.28.0
func RegisterLostIdServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLostIdServiceHandlerFromEndpoint is same as RegisterLostIdServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLostIdServiceHandlerServer ¶ added in v1.28.0
func RegisterLostIdServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LostIdServiceServer) error
RegisterLostIdServiceHandlerServer registers the http handlers for service LostIdService to "mux". UnaryRPC :call LostIdServiceServer 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 RegisterLostIdServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterLostIdServiceServer ¶
func RegisterLostIdServiceServer(s grpc.ServiceRegistrar, srv LostIdServiceServer)
Types ¶
type CollectibleRequest ¶
type CollectibleRequest struct { FileId []string `protobuf:"bytes,1,rep,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` Properties map[string]string `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
Request to log a Collectible card
func (*CollectibleRequest) Descriptor
deprecated
func (*CollectibleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CollectibleRequest.ProtoReflect.Descriptor instead.
func (*CollectibleRequest) GetFileId ¶
func (x *CollectibleRequest) GetFileId() []string
func (*CollectibleRequest) GetProperties ¶
func (x *CollectibleRequest) GetProperties() map[string]string
func (*CollectibleRequest) ProtoMessage ¶
func (*CollectibleRequest) ProtoMessage()
func (*CollectibleRequest) ProtoReflect ¶
func (x *CollectibleRequest) ProtoReflect() protoreflect.Message
func (*CollectibleRequest) Reset ¶
func (x *CollectibleRequest) Reset()
func (*CollectibleRequest) String ¶
func (x *CollectibleRequest) String() string
type CollectibleResponse ¶
type CollectibleResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FileId []string `protobuf:"bytes,2,rep,name=file_id,json=fileId,proto3" json:"file_id,omitempty"` Properties map[string]string `` /* 147-byte string literal not displayed */ State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*CollectibleResponse) Descriptor
deprecated
func (*CollectibleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CollectibleResponse.ProtoReflect.Descriptor instead.
func (*CollectibleResponse) GetFileId ¶
func (x *CollectibleResponse) GetFileId() []string
func (*CollectibleResponse) GetId ¶
func (x *CollectibleResponse) GetId() string
func (*CollectibleResponse) GetProperties ¶
func (x *CollectibleResponse) GetProperties() map[string]string
func (*CollectibleResponse) GetState ¶
func (x *CollectibleResponse) GetState() string
func (*CollectibleResponse) ProtoMessage ¶
func (*CollectibleResponse) ProtoMessage()
func (*CollectibleResponse) ProtoReflect ¶
func (x *CollectibleResponse) ProtoReflect() protoreflect.Message
func (*CollectibleResponse) Reset ¶
func (x *CollectibleResponse) Reset()
func (*CollectibleResponse) String ¶
func (x *CollectibleResponse) String() string
type ItemType ¶
type ItemType int32
buf:lint:ignore ENUM_VALUE_PREFIX
func (ItemType) Descriptor ¶
func (ItemType) Descriptor() protoreflect.EnumDescriptor
func (ItemType) EnumDescriptor
deprecated
func (ItemType) Number ¶
func (x ItemType) Number() protoreflect.EnumNumber
func (ItemType) Type ¶
func (ItemType) Type() protoreflect.EnumType
type ListCollectibleRequest ¶
type ListCollectibleRequest struct { // Types that are valid to be assigned to Range: // // *ListCollectibleRequest_Pagination // *ListCollectibleRequest_Interval Range isListCollectibleRequest_Range `protobuf_oneof:"range"` // contains filtered or unexported fields }
func (*ListCollectibleRequest) Descriptor
deprecated
func (*ListCollectibleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectibleRequest.ProtoReflect.Descriptor instead.
func (*ListCollectibleRequest) GetInterval ¶
func (x *ListCollectibleRequest) GetInterval() *interval.Interval
func (*ListCollectibleRequest) GetPagination ¶
func (x *ListCollectibleRequest) GetPagination() *v1.Pagination
func (*ListCollectibleRequest) GetRange ¶
func (x *ListCollectibleRequest) GetRange() isListCollectibleRequest_Range
func (*ListCollectibleRequest) ProtoMessage ¶
func (*ListCollectibleRequest) ProtoMessage()
func (*ListCollectibleRequest) ProtoReflect ¶
func (x *ListCollectibleRequest) ProtoReflect() protoreflect.Message
func (*ListCollectibleRequest) Reset ¶
func (x *ListCollectibleRequest) Reset()
func (*ListCollectibleRequest) String ¶
func (x *ListCollectibleRequest) String() string
type ListCollectibleRequest_Pagination ¶
type ListCollectibleRequest_Pagination struct {
Pagination *v1.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3,oneof"`
}
type ListCollectibleResponse ¶
type ListCollectibleResponse struct { Data []*CollectibleResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListCollectibleResponse) Descriptor
deprecated
func (*ListCollectibleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectibleResponse.ProtoReflect.Descriptor instead.
func (*ListCollectibleResponse) GetData ¶
func (x *ListCollectibleResponse) GetData() []*CollectibleResponse
func (*ListCollectibleResponse) ProtoMessage ¶
func (*ListCollectibleResponse) ProtoMessage()
func (*ListCollectibleResponse) ProtoReflect ¶
func (x *ListCollectibleResponse) ProtoReflect() protoreflect.Message
func (*ListCollectibleResponse) Reset ¶
func (x *ListCollectibleResponse) Reset()
func (*ListCollectibleResponse) String ¶
func (x *ListCollectibleResponse) String() string
type ListSearchRequest ¶
type ListSearchRequest struct { // Types that are valid to be assigned to Range: // // *ListSearchRequest_Pagination // *ListSearchRequest_Interval Range isListSearchRequest_Range `protobuf_oneof:"range"` // contains filtered or unexported fields }
func (*ListSearchRequest) Descriptor
deprecated
func (*ListSearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSearchRequest.ProtoReflect.Descriptor instead.
func (*ListSearchRequest) GetInterval ¶
func (x *ListSearchRequest) GetInterval() *interval.Interval
func (*ListSearchRequest) GetPagination ¶
func (x *ListSearchRequest) GetPagination() *v1.Pagination
func (*ListSearchRequest) GetRange ¶
func (x *ListSearchRequest) GetRange() isListSearchRequest_Range
func (*ListSearchRequest) ProtoMessage ¶
func (*ListSearchRequest) ProtoMessage()
func (*ListSearchRequest) ProtoReflect ¶
func (x *ListSearchRequest) ProtoReflect() protoreflect.Message
func (*ListSearchRequest) Reset ¶
func (x *ListSearchRequest) Reset()
func (*ListSearchRequest) String ¶
func (x *ListSearchRequest) String() string
type ListSearchRequest_Pagination ¶
type ListSearchRequest_Pagination struct {
Pagination *v1.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3,oneof"`
}
type ListSearchResponse ¶
type ListSearchResponse struct { Data []*SearchResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListSearchResponse) Descriptor
deprecated
func (*ListSearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSearchResponse.ProtoReflect.Descriptor instead.
func (*ListSearchResponse) GetData ¶
func (x *ListSearchResponse) GetData() []*SearchResponse
func (*ListSearchResponse) ProtoMessage ¶
func (*ListSearchResponse) ProtoMessage()
func (*ListSearchResponse) ProtoReflect ¶
func (x *ListSearchResponse) ProtoReflect() protoreflect.Message
func (*ListSearchResponse) Reset ¶
func (x *ListSearchResponse) Reset()
func (*ListSearchResponse) String ¶
func (x *ListSearchResponse) String() string
type ListTransactionRequest ¶
type ListTransactionRequest struct { // Types that are valid to be assigned to Range: // // *ListTransactionRequest_Pagination // *ListTransactionRequest_Interval Range isListTransactionRequest_Range `protobuf_oneof:"range"` // contains filtered or unexported fields }
func (*ListTransactionRequest) Descriptor
deprecated
func (*ListTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTransactionRequest.ProtoReflect.Descriptor instead.
func (*ListTransactionRequest) GetInterval ¶
func (x *ListTransactionRequest) GetInterval() *interval.Interval
func (*ListTransactionRequest) GetPagination ¶
func (x *ListTransactionRequest) GetPagination() *v1.Pagination
func (*ListTransactionRequest) GetRange ¶
func (x *ListTransactionRequest) GetRange() isListTransactionRequest_Range
func (*ListTransactionRequest) ProtoMessage ¶
func (*ListTransactionRequest) ProtoMessage()
func (*ListTransactionRequest) ProtoReflect ¶
func (x *ListTransactionRequest) ProtoReflect() protoreflect.Message
func (*ListTransactionRequest) Reset ¶
func (x *ListTransactionRequest) Reset()
func (*ListTransactionRequest) String ¶
func (x *ListTransactionRequest) String() string
type ListTransactionRequest_Pagination ¶
type ListTransactionRequest_Pagination struct {
Pagination *v1.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3,oneof"`
}
type ListTransactionResponse ¶
type ListTransactionResponse struct { Data []*TransactionItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListTransactionResponse) Descriptor
deprecated
func (*ListTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTransactionResponse.ProtoReflect.Descriptor instead.
func (*ListTransactionResponse) GetData ¶
func (x *ListTransactionResponse) GetData() []*TransactionItem
func (*ListTransactionResponse) ProtoMessage ¶
func (*ListTransactionResponse) ProtoMessage()
func (*ListTransactionResponse) ProtoReflect ¶
func (x *ListTransactionResponse) ProtoReflect() protoreflect.Message
func (*ListTransactionResponse) Reset ¶
func (x *ListTransactionResponse) Reset()
func (*ListTransactionResponse) String ¶
func (x *ListTransactionResponse) String() string
type LostIdServiceClient ¶
type LostIdServiceClient interface { // Log a new Collectible request Collectible(ctx context.Context, in *CollectibleRequest, opts ...grpc.CallOption) (*CollectibleResponse, error) ListCollectible(ctx context.Context, in *ListCollectibleRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListCollectibleResponse], error) // Log a new search request Search(ctx context.Context, in *v1.SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) ListSearch(ctx context.Context, in *ListSearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListSearchResponse], error) Progress(ctx context.Context, in *ProgressRequest, opts ...grpc.CallOption) (*ProgressResponse, error) ListTransaction(ctx context.Context, in *ListTransactionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListTransactionResponse], error) }
LostIdServiceClient is the client API for LostIdService 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 NewLostIdServiceClient ¶
func NewLostIdServiceClient(cc grpc.ClientConnInterface) LostIdServiceClient
type LostIdServiceServer ¶
type LostIdServiceServer interface { // Log a new Collectible request Collectible(context.Context, *CollectibleRequest) (*CollectibleResponse, error) ListCollectible(*ListCollectibleRequest, grpc.ServerStreamingServer[ListCollectibleResponse]) error // Log a new search request Search(context.Context, *v1.SearchRequest) (*SearchResponse, error) ListSearch(*ListSearchRequest, grpc.ServerStreamingServer[ListSearchResponse]) error Progress(context.Context, *ProgressRequest) (*ProgressResponse, error) ListTransaction(*ListTransactionRequest, grpc.ServerStreamingServer[ListTransactionResponse]) error // contains filtered or unexported methods }
LostIdServiceServer is the server API for LostIdService service. All implementations must embed UnimplementedLostIdServiceServer for forward compatibility.
type LostIdService_ListCollectibleClient ¶
type LostIdService_ListCollectibleClient = grpc.ServerStreamingClient[ListCollectibleResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LostIdService_ListCollectibleServer ¶
type LostIdService_ListCollectibleServer = grpc.ServerStreamingServer[ListCollectibleResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LostIdService_ListSearchClient ¶
type LostIdService_ListSearchClient = grpc.ServerStreamingClient[ListSearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LostIdService_ListSearchServer ¶
type LostIdService_ListSearchServer = grpc.ServerStreamingServer[ListSearchResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LostIdService_ListTransactionClient ¶
type LostIdService_ListTransactionClient = grpc.ServerStreamingClient[ListTransactionResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type LostIdService_ListTransactionServer ¶
type LostIdService_ListTransactionServer = grpc.ServerStreamingServer[ListTransactionResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type MockLostIdServiceClient ¶
type MockLostIdServiceClient struct {
// contains filtered or unexported fields
}
MockLostIdServiceClient is a mock of LostIdServiceClient interface.
func NewMockLostIdServiceClient ¶
func NewMockLostIdServiceClient(ctrl *gomock.Controller) *MockLostIdServiceClient
NewMockLostIdServiceClient creates a new mock instance.
func (*MockLostIdServiceClient) Collectible ¶
func (m *MockLostIdServiceClient) Collectible(ctx context.Context, in *CollectibleRequest, opts ...grpc.CallOption) (*CollectibleResponse, error)
Collectible mocks base method.
func (*MockLostIdServiceClient) EXPECT ¶
func (m *MockLostIdServiceClient) EXPECT() *MockLostIdServiceClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLostIdServiceClient) ListCollectible ¶
func (m *MockLostIdServiceClient) ListCollectible(ctx context.Context, in *ListCollectibleRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListCollectibleResponse], error)
ListCollectible mocks base method.
func (*MockLostIdServiceClient) ListSearch ¶
func (m *MockLostIdServiceClient) ListSearch(ctx context.Context, in *ListSearchRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListSearchResponse], error)
ListSearch mocks base method.
func (*MockLostIdServiceClient) ListTransaction ¶
func (m *MockLostIdServiceClient) ListTransaction(ctx context.Context, in *ListTransactionRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ListTransactionResponse], error)
ListTransaction mocks base method.
func (*MockLostIdServiceClient) Progress ¶
func (m *MockLostIdServiceClient) Progress(ctx context.Context, in *ProgressRequest, opts ...grpc.CallOption) (*ProgressResponse, error)
Progress mocks base method.
func (*MockLostIdServiceClient) Search ¶
func (m *MockLostIdServiceClient) Search(ctx context.Context, in *commonv1.SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
Search mocks base method.
type MockLostIdServiceClientMockRecorder ¶
type MockLostIdServiceClientMockRecorder struct {
// contains filtered or unexported fields
}
MockLostIdServiceClientMockRecorder is the mock recorder for MockLostIdServiceClient.
func (*MockLostIdServiceClientMockRecorder) Collectible ¶
func (mr *MockLostIdServiceClientMockRecorder) Collectible(ctx, in any, opts ...any) *gomock.Call
Collectible indicates an expected call of Collectible.
func (*MockLostIdServiceClientMockRecorder) ListCollectible ¶
func (mr *MockLostIdServiceClientMockRecorder) ListCollectible(ctx, in any, opts ...any) *gomock.Call
ListCollectible indicates an expected call of ListCollectible.
func (*MockLostIdServiceClientMockRecorder) ListSearch ¶
func (mr *MockLostIdServiceClientMockRecorder) ListSearch(ctx, in any, opts ...any) *gomock.Call
ListSearch indicates an expected call of ListSearch.
func (*MockLostIdServiceClientMockRecorder) ListTransaction ¶
func (mr *MockLostIdServiceClientMockRecorder) ListTransaction(ctx, in any, opts ...any) *gomock.Call
ListTransaction indicates an expected call of ListTransaction.
type MockLostIdServiceServer ¶
type MockLostIdServiceServer struct {
// contains filtered or unexported fields
}
MockLostIdServiceServer is a mock of LostIdServiceServer interface.
func NewMockLostIdServiceServer ¶
func NewMockLostIdServiceServer(ctrl *gomock.Controller) *MockLostIdServiceServer
NewMockLostIdServiceServer creates a new mock instance.
func (*MockLostIdServiceServer) Collectible ¶
func (m *MockLostIdServiceServer) Collectible(arg0 context.Context, arg1 *CollectibleRequest) (*CollectibleResponse, error)
Collectible mocks base method.
func (*MockLostIdServiceServer) EXPECT ¶
func (m *MockLostIdServiceServer) EXPECT() *MockLostIdServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLostIdServiceServer) ListCollectible ¶
func (m *MockLostIdServiceServer) ListCollectible(arg0 *ListCollectibleRequest, arg1 grpc.ServerStreamingServer[ListCollectibleResponse]) error
ListCollectible mocks base method.
func (*MockLostIdServiceServer) ListSearch ¶
func (m *MockLostIdServiceServer) ListSearch(arg0 *ListSearchRequest, arg1 grpc.ServerStreamingServer[ListSearchResponse]) error
ListSearch mocks base method.
func (*MockLostIdServiceServer) ListTransaction ¶
func (m *MockLostIdServiceServer) ListTransaction(arg0 *ListTransactionRequest, arg1 grpc.ServerStreamingServer[ListTransactionResponse]) error
ListTransaction mocks base method.
func (*MockLostIdServiceServer) Progress ¶
func (m *MockLostIdServiceServer) Progress(arg0 context.Context, arg1 *ProgressRequest) (*ProgressResponse, error)
Progress mocks base method.
func (*MockLostIdServiceServer) Search ¶
func (m *MockLostIdServiceServer) Search(arg0 context.Context, arg1 *commonv1.SearchRequest) (*SearchResponse, error)
Search mocks base method.
type MockLostIdServiceServerMockRecorder ¶
type MockLostIdServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockLostIdServiceServerMockRecorder is the mock recorder for MockLostIdServiceServer.
func (*MockLostIdServiceServerMockRecorder) Collectible ¶
func (mr *MockLostIdServiceServerMockRecorder) Collectible(arg0, arg1 any) *gomock.Call
Collectible indicates an expected call of Collectible.
func (*MockLostIdServiceServerMockRecorder) ListCollectible ¶
func (mr *MockLostIdServiceServerMockRecorder) ListCollectible(arg0, arg1 any) *gomock.Call
ListCollectible indicates an expected call of ListCollectible.
func (*MockLostIdServiceServerMockRecorder) ListSearch ¶
func (mr *MockLostIdServiceServerMockRecorder) ListSearch(arg0, arg1 any) *gomock.Call
ListSearch indicates an expected call of ListSearch.
func (*MockLostIdServiceServerMockRecorder) ListTransaction ¶
func (mr *MockLostIdServiceServerMockRecorder) ListTransaction(arg0, arg1 any) *gomock.Call
ListTransaction indicates an expected call of ListTransaction.
type MockUnsafeLostIdServiceServer ¶
type MockUnsafeLostIdServiceServer struct {
// contains filtered or unexported fields
}
MockUnsafeLostIdServiceServer is a mock of UnsafeLostIdServiceServer interface.
func NewMockUnsafeLostIdServiceServer ¶
func NewMockUnsafeLostIdServiceServer(ctrl *gomock.Controller) *MockUnsafeLostIdServiceServer
NewMockUnsafeLostIdServiceServer creates a new mock instance.
func (*MockUnsafeLostIdServiceServer) EXPECT ¶
func (m *MockUnsafeLostIdServiceServer) EXPECT() *MockUnsafeLostIdServiceServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeLostIdServiceServerMockRecorder ¶
type MockUnsafeLostIdServiceServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeLostIdServiceServerMockRecorder is the mock recorder for MockUnsafeLostIdServiceServer.
type ProgressItem ¶
type ProgressItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Datetime string `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*ProgressItem) Descriptor
deprecated
func (*ProgressItem) Descriptor() ([]byte, []int)
Deprecated: Use ProgressItem.ProtoReflect.Descriptor instead.
func (*ProgressItem) GetDatetime ¶
func (x *ProgressItem) GetDatetime() string
func (*ProgressItem) GetDescription ¶
func (x *ProgressItem) GetDescription() string
func (*ProgressItem) GetId ¶
func (x *ProgressItem) GetId() string
func (*ProgressItem) GetState ¶
func (x *ProgressItem) GetState() string
func (*ProgressItem) ProtoMessage ¶
func (*ProgressItem) ProtoMessage()
func (*ProgressItem) ProtoReflect ¶
func (x *ProgressItem) ProtoReflect() protoreflect.Message
func (*ProgressItem) Reset ¶
func (x *ProgressItem) Reset()
func (*ProgressItem) String ¶
func (x *ProgressItem) String() string
type ProgressRequest ¶
type ProgressRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type ItemType `protobuf:"varint,2,opt,name=type,proto3,enum=lostid.v1.ItemType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ProgressRequest) Descriptor
deprecated
func (*ProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProgressRequest.ProtoReflect.Descriptor instead.
func (*ProgressRequest) GetId ¶
func (x *ProgressRequest) GetId() string
func (*ProgressRequest) GetType ¶
func (x *ProgressRequest) GetType() ItemType
func (*ProgressRequest) ProtoMessage ¶
func (*ProgressRequest) ProtoMessage()
func (*ProgressRequest) ProtoReflect ¶
func (x *ProgressRequest) ProtoReflect() protoreflect.Message
func (*ProgressRequest) Reset ¶
func (x *ProgressRequest) Reset()
func (*ProgressRequest) String ¶
func (x *ProgressRequest) String() string
type ProgressResponse ¶
type ProgressResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type ItemType `protobuf:"varint,2,opt,name=type,proto3,enum=lostid.v1.ItemType" json:"type,omitempty"` Properties map[string]string `` /* 147-byte string literal not displayed */ State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` Items []*ProgressItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` Transactions []*TransactionItem `protobuf:"bytes,6,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
func (*ProgressResponse) Descriptor
deprecated
func (*ProgressResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProgressResponse.ProtoReflect.Descriptor instead.
func (*ProgressResponse) GetId ¶
func (x *ProgressResponse) GetId() string
func (*ProgressResponse) GetItems ¶
func (x *ProgressResponse) GetItems() []*ProgressItem
func (*ProgressResponse) GetProperties ¶
func (x *ProgressResponse) GetProperties() map[string]string
func (*ProgressResponse) GetState ¶
func (x *ProgressResponse) GetState() string
func (*ProgressResponse) GetTransactions ¶
func (x *ProgressResponse) GetTransactions() []*TransactionItem
func (*ProgressResponse) GetType ¶
func (x *ProgressResponse) GetType() ItemType
func (*ProgressResponse) ProtoMessage ¶
func (*ProgressResponse) ProtoMessage()
func (*ProgressResponse) ProtoReflect ¶
func (x *ProgressResponse) ProtoReflect() protoreflect.Message
func (*ProgressResponse) Reset ¶
func (x *ProgressResponse) Reset()
func (*ProgressResponse) String ¶
func (x *ProgressResponse) String() string
type SearchResponse ¶
type SearchResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` Properties map[string]string `` /* 147-byte string literal not displayed */ State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetId ¶
func (x *SearchResponse) GetId() string
func (*SearchResponse) GetProperties ¶
func (x *SearchResponse) GetProperties() map[string]string
func (*SearchResponse) GetQuery ¶
func (x *SearchResponse) GetQuery() string
func (*SearchResponse) GetState ¶
func (x *SearchResponse) GetState() string
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
type TransactionItem ¶
type TransactionItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Datetime string `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"` Credit bool `protobuf:"varint,3,opt,name=credit,proto3" json:"credit,omitempty"` Amount *money.Money `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*TransactionItem) Descriptor
deprecated
func (*TransactionItem) Descriptor() ([]byte, []int)
Deprecated: Use TransactionItem.ProtoReflect.Descriptor instead.
func (*TransactionItem) GetAmount ¶
func (x *TransactionItem) GetAmount() *money.Money
func (*TransactionItem) GetCredit ¶
func (x *TransactionItem) GetCredit() bool
func (*TransactionItem) GetDatetime ¶
func (x *TransactionItem) GetDatetime() string
func (*TransactionItem) GetDescription ¶
func (x *TransactionItem) GetDescription() string
func (*TransactionItem) GetId ¶
func (x *TransactionItem) GetId() string
func (*TransactionItem) ProtoMessage ¶
func (*TransactionItem) ProtoMessage()
func (*TransactionItem) ProtoReflect ¶
func (x *TransactionItem) ProtoReflect() protoreflect.Message
func (*TransactionItem) Reset ¶
func (x *TransactionItem) Reset()
func (*TransactionItem) String ¶
func (x *TransactionItem) String() string
type UnimplementedLostIdServiceServer ¶
type UnimplementedLostIdServiceServer struct{}
UnimplementedLostIdServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedLostIdServiceServer) Collectible ¶
func (UnimplementedLostIdServiceServer) Collectible(context.Context, *CollectibleRequest) (*CollectibleResponse, error)
func (UnimplementedLostIdServiceServer) ListCollectible ¶
func (UnimplementedLostIdServiceServer) ListCollectible(*ListCollectibleRequest, grpc.ServerStreamingServer[ListCollectibleResponse]) error
func (UnimplementedLostIdServiceServer) ListSearch ¶
func (UnimplementedLostIdServiceServer) ListSearch(*ListSearchRequest, grpc.ServerStreamingServer[ListSearchResponse]) error
func (UnimplementedLostIdServiceServer) ListTransaction ¶
func (UnimplementedLostIdServiceServer) ListTransaction(*ListTransactionRequest, grpc.ServerStreamingServer[ListTransactionResponse]) error
func (UnimplementedLostIdServiceServer) Progress ¶
func (UnimplementedLostIdServiceServer) Progress(context.Context, *ProgressRequest) (*ProgressResponse, error)
func (UnimplementedLostIdServiceServer) Search ¶
func (UnimplementedLostIdServiceServer) Search(context.Context, *v1.SearchRequest) (*SearchResponse, error)
type UnsafeLostIdServiceServer ¶
type UnsafeLostIdServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLostIdServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LostIdServiceServer will result in compilation errors.