Documentation ¶
Overview ¶
Package pb is a generated GoMock package.
Index ¶
- Variables
- func RegisterMovieSearchServer(s *grpc.Server, srv MovieSearchServer)
- type MockMovieSearchClient
- type MockMovieSearchClientMockRecorder
- type MockMovieSearchServer
- type MockMovieSearchServerMockRecorder
- type Movie
- func (*Movie) Descriptor() ([]byte, []int)deprecated
- func (x *Movie) GetImdbID() string
- func (x *Movie) GetPoster() string
- func (x *Movie) GetTitle() string
- func (x *Movie) GetType() string
- func (x *Movie) GetYear() string
- func (*Movie) ProtoMessage()
- func (x *Movie) ProtoReflect() protoreflect.Message
- func (x *Movie) Reset()
- func (x *Movie) String() string
- type MovieSearchClient
- type MovieSearchServer
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetMovieName() string
- func (x *SearchRequest) GetPage() int32
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetErr() string
- func (x *SearchResponse) GetMovieList() []*Movie
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type UnimplementedMovieSearchServer
Constants ¶
This section is empty.
Variables ¶
var File_movie_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMovieSearchServer ¶
func RegisterMovieSearchServer(s *grpc.Server, srv MovieSearchServer)
Types ¶
type MockMovieSearchClient ¶
type MockMovieSearchClient struct {
// contains filtered or unexported fields
}
MockMovieSearchClient is a mock of MovieSearchClient interface.
func NewMockMovieSearchClient ¶
func NewMockMovieSearchClient(ctrl *gomock.Controller) *MockMovieSearchClient
NewMockMovieSearchClient creates a new mock instance.
func (*MockMovieSearchClient) EXPECT ¶
func (m *MockMovieSearchClient) EXPECT() *MockMovieSearchClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMovieSearchClient) SearchMovie ¶
func (m *MockMovieSearchClient) SearchMovie(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
SearchMovie mocks base method.
type MockMovieSearchClientMockRecorder ¶
type MockMovieSearchClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMovieSearchClientMockRecorder is the mock recorder for MockMovieSearchClient.
func (*MockMovieSearchClientMockRecorder) SearchMovie ¶
func (mr *MockMovieSearchClientMockRecorder) SearchMovie(ctx, in interface{}, opts ...interface{}) *gomock.Call
SearchMovie indicates an expected call of SearchMovie.
type MockMovieSearchServer ¶
type MockMovieSearchServer struct {
// contains filtered or unexported fields
}
MockMovieSearchServer is a mock of MovieSearchServer interface.
func NewMockMovieSearchServer ¶
func NewMockMovieSearchServer(ctrl *gomock.Controller) *MockMovieSearchServer
NewMockMovieSearchServer creates a new mock instance.
func (*MockMovieSearchServer) EXPECT ¶
func (m *MockMovieSearchServer) EXPECT() *MockMovieSearchServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMovieSearchServer) SearchMovie ¶
func (m *MockMovieSearchServer) SearchMovie(arg0 context.Context, arg1 *SearchRequest) (*SearchResponse, error)
SearchMovie mocks base method.
type MockMovieSearchServerMockRecorder ¶
type MockMovieSearchServerMockRecorder struct {
// contains filtered or unexported fields
}
MockMovieSearchServerMockRecorder is the mock recorder for MockMovieSearchServer.
func (*MockMovieSearchServerMockRecorder) SearchMovie ¶
func (mr *MockMovieSearchServerMockRecorder) SearchMovie(arg0, arg1 interface{}) *gomock.Call
SearchMovie indicates an expected call of SearchMovie.
type Movie ¶
type Movie struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Year string `protobuf:"bytes,2,opt,name=year,proto3" json:"year,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` ImdbID string `protobuf:"bytes,4,opt,name=imdbID,proto3" json:"imdbID,omitempty"` Poster string `protobuf:"bytes,5,opt,name=poster,proto3" json:"poster,omitempty"` // contains filtered or unexported fields }
func (*Movie) Descriptor
deprecated
func (*Movie) ProtoMessage ¶
func (*Movie) ProtoMessage()
func (*Movie) ProtoReflect ¶
func (x *Movie) ProtoReflect() protoreflect.Message
type MovieSearchClient ¶
type MovieSearchClient interface {
SearchMovie(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
}
MovieSearchClient is the client API for MovieSearch service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMovieSearchClient ¶
func NewMovieSearchClient(cc grpc.ClientConnInterface) MovieSearchClient
type MovieSearchServer ¶
type MovieSearchServer interface {
SearchMovie(context.Context, *SearchRequest) (*SearchResponse, error)
}
MovieSearchServer is the server API for MovieSearch service.
type SearchRequest ¶
type SearchRequest struct { MovieName string `protobuf:"bytes,1,opt,name=movieName,proto3" json:"movieName,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetMovieName ¶
func (x *SearchRequest) GetMovieName() string
func (*SearchRequest) GetPage ¶
func (x *SearchRequest) GetPage() int32
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
type SearchResponse ¶
type SearchResponse struct { MovieList []*Movie `protobuf:"bytes,1,rep,name=movieList,proto3" json:"movieList,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetErr ¶
func (x *SearchResponse) GetErr() string
func (*SearchResponse) GetMovieList ¶
func (x *SearchResponse) GetMovieList() []*Movie
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 UnimplementedMovieSearchServer ¶
type UnimplementedMovieSearchServer struct { }
UnimplementedMovieSearchServer can be embedded to have forward compatible implementations.
func (*UnimplementedMovieSearchServer) SearchMovie ¶
func (*UnimplementedMovieSearchServer) SearchMovie(context.Context, *SearchRequest) (*SearchResponse, error)