pb

package
v0.0.0-...-db60074 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package pb is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Movie.ProtoReflect.Descriptor instead.

func (*Movie) GetImdbID

func (x *Movie) GetImdbID() string

func (*Movie) GetPoster

func (x *Movie) GetPoster() string

func (*Movie) GetTitle

func (x *Movie) GetTitle() string

func (*Movie) GetType

func (x *Movie) GetType() string

func (*Movie) GetYear

func (x *Movie) GetYear() string

func (*Movie) ProtoMessage

func (*Movie) ProtoMessage()

func (*Movie) ProtoReflect

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

func (*Movie) Reset

func (x *Movie) Reset()

func (*Movie) String

func (x *Movie) String() string

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.

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

Jump to

Keyboard shortcuts

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