Documentation ¶
Index ¶
- Variables
- func RegisterMovieServiceServer(s grpc.ServiceRegistrar, srv MovieServiceServer)
- type CreateMovieRequest
- func (*CreateMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMovieRequest) GetMovie() *Movie
- func (*CreateMovieRequest) ProtoMessage()
- func (x *CreateMovieRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMovieRequest) Reset()
- func (x *CreateMovieRequest) String() string
- type CreateMovieResponse
- func (*CreateMovieResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMovieResponse) GetMovie() *Movie
- func (*CreateMovieResponse) ProtoMessage()
- func (x *CreateMovieResponse) ProtoReflect() protoreflect.Message
- func (x *CreateMovieResponse) Reset()
- func (x *CreateMovieResponse) String() string
- type DeleteMovieRequest
- type DeleteMovieResponse
- func (*DeleteMovieResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMovieResponse) GetSuccess() bool
- func (*DeleteMovieResponse) ProtoMessage()
- func (x *DeleteMovieResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteMovieResponse) Reset()
- func (x *DeleteMovieResponse) String() string
- type Movie
- type MovieServiceClient
- type MovieServiceServer
- type ReadMovieRequest
- type ReadMovieResponse
- type ReadMoviesRequest
- type ReadMoviesResponse
- func (*ReadMoviesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadMoviesResponse) GetMovies() []*Movie
- func (*ReadMoviesResponse) ProtoMessage()
- func (x *ReadMoviesResponse) ProtoReflect() protoreflect.Message
- func (x *ReadMoviesResponse) Reset()
- func (x *ReadMoviesResponse) String() string
- type UnimplementedMovieServiceServer
- func (UnimplementedMovieServiceServer) CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponse, error)
- func (UnimplementedMovieServiceServer) DeleteMovie(context.Context, *DeleteMovieRequest) (*DeleteMovieResponse, error)
- func (UnimplementedMovieServiceServer) ReadMovie(context.Context, *ReadMovieRequest) (*ReadMovieResponse, error)
- func (UnimplementedMovieServiceServer) ReadMovies(context.Context, *ReadMoviesRequest) (*ReadMoviesResponse, error)
- func (UnimplementedMovieServiceServer) UpdateMovie(context.Context, *UpdateMovieRequest) (*UpdateMovieResponse, error)
- type UnsafeMovieServiceServer
- type UpdateMovieRequest
- func (*UpdateMovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMovieRequest) GetMovie() *Movie
- func (*UpdateMovieRequest) ProtoMessage()
- func (x *UpdateMovieRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMovieRequest) Reset()
- func (x *UpdateMovieRequest) String() string
- type UpdateMovieResponse
- func (*UpdateMovieResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMovieResponse) GetMovie() *Movie
- func (*UpdateMovieResponse) ProtoMessage()
- func (x *UpdateMovieResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateMovieResponse) Reset()
- func (x *UpdateMovieResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_movie_proto protoreflect.FileDescriptor
var MovieService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "MovieService", HandlerType: (*MovieServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateMovie", Handler: _MovieService_CreateMovie_Handler, }, { MethodName: "ReadMovie", Handler: _MovieService_ReadMovie_Handler, }, { MethodName: "ReadMovies", Handler: _MovieService_ReadMovies_Handler, }, { MethodName: "UpdateMovie", Handler: _MovieService_UpdateMovie_Handler, }, { MethodName: "DeleteMovie", Handler: _MovieService_DeleteMovie_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "movie.proto", }
MovieService_ServiceDesc is the grpc.ServiceDesc for MovieService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMovieServiceServer ¶
func RegisterMovieServiceServer(s grpc.ServiceRegistrar, srv MovieServiceServer)
Types ¶
type CreateMovieRequest ¶
type CreateMovieRequest struct { Movie *Movie `protobuf:"bytes,1,opt,name=movie,proto3" json:"movie,omitempty"` // contains filtered or unexported fields }
func (*CreateMovieRequest) Descriptor
deprecated
func (*CreateMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMovieRequest.ProtoReflect.Descriptor instead.
func (*CreateMovieRequest) GetMovie ¶
func (x *CreateMovieRequest) GetMovie() *Movie
func (*CreateMovieRequest) ProtoMessage ¶
func (*CreateMovieRequest) ProtoMessage()
func (*CreateMovieRequest) ProtoReflect ¶
func (x *CreateMovieRequest) ProtoReflect() protoreflect.Message
func (*CreateMovieRequest) Reset ¶
func (x *CreateMovieRequest) Reset()
func (*CreateMovieRequest) String ¶
func (x *CreateMovieRequest) String() string
type CreateMovieResponse ¶
type CreateMovieResponse struct { Movie *Movie `protobuf:"bytes,1,opt,name=movie,proto3" json:"movie,omitempty"` // contains filtered or unexported fields }
func (*CreateMovieResponse) Descriptor
deprecated
func (*CreateMovieResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateMovieResponse.ProtoReflect.Descriptor instead.
func (*CreateMovieResponse) GetMovie ¶
func (x *CreateMovieResponse) GetMovie() *Movie
func (*CreateMovieResponse) ProtoMessage ¶
func (*CreateMovieResponse) ProtoMessage()
func (*CreateMovieResponse) ProtoReflect ¶
func (x *CreateMovieResponse) ProtoReflect() protoreflect.Message
func (*CreateMovieResponse) Reset ¶
func (x *CreateMovieResponse) Reset()
func (*CreateMovieResponse) String ¶
func (x *CreateMovieResponse) String() string
type DeleteMovieRequest ¶
type DeleteMovieRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMovieRequest) Descriptor
deprecated
func (*DeleteMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMovieRequest.ProtoReflect.Descriptor instead.
func (*DeleteMovieRequest) GetId ¶
func (x *DeleteMovieRequest) GetId() string
func (*DeleteMovieRequest) ProtoMessage ¶
func (*DeleteMovieRequest) ProtoMessage()
func (*DeleteMovieRequest) ProtoReflect ¶
func (x *DeleteMovieRequest) ProtoReflect() protoreflect.Message
func (*DeleteMovieRequest) Reset ¶
func (x *DeleteMovieRequest) Reset()
func (*DeleteMovieRequest) String ¶
func (x *DeleteMovieRequest) String() string
type DeleteMovieResponse ¶
type DeleteMovieResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*DeleteMovieResponse) Descriptor
deprecated
func (*DeleteMovieResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMovieResponse.ProtoReflect.Descriptor instead.
func (*DeleteMovieResponse) GetSuccess ¶
func (x *DeleteMovieResponse) GetSuccess() bool
func (*DeleteMovieResponse) ProtoMessage ¶
func (*DeleteMovieResponse) ProtoMessage()
func (*DeleteMovieResponse) ProtoReflect ¶
func (x *DeleteMovieResponse) ProtoReflect() protoreflect.Message
func (*DeleteMovieResponse) Reset ¶
func (x *DeleteMovieResponse) Reset()
func (*DeleteMovieResponse) String ¶
func (x *DeleteMovieResponse) String() string
type Movie ¶
type Movie struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Genre string `protobuf:"bytes,3,opt,name=genre,proto3" json:"genre,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 MovieServiceClient ¶
type MovieServiceClient interface { CreateMovie(ctx context.Context, in *CreateMovieRequest, opts ...grpc.CallOption) (*CreateMovieResponse, error) ReadMovie(ctx context.Context, in *ReadMovieRequest, opts ...grpc.CallOption) (*ReadMovieResponse, error) ReadMovies(ctx context.Context, in *ReadMoviesRequest, opts ...grpc.CallOption) (*ReadMoviesResponse, error) UpdateMovie(ctx context.Context, in *UpdateMovieRequest, opts ...grpc.CallOption) (*UpdateMovieResponse, error) DeleteMovie(ctx context.Context, in *DeleteMovieRequest, opts ...grpc.CallOption) (*DeleteMovieResponse, error) }
MovieServiceClient is the client API for MovieService 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 NewMovieServiceClient ¶
func NewMovieServiceClient(cc grpc.ClientConnInterface) MovieServiceClient
type MovieServiceServer ¶
type MovieServiceServer interface { CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponse, error) ReadMovie(context.Context, *ReadMovieRequest) (*ReadMovieResponse, error) ReadMovies(context.Context, *ReadMoviesRequest) (*ReadMoviesResponse, error) UpdateMovie(context.Context, *UpdateMovieRequest) (*UpdateMovieResponse, error) DeleteMovie(context.Context, *DeleteMovieRequest) (*DeleteMovieResponse, error) // contains filtered or unexported methods }
MovieServiceServer is the server API for MovieService service. All implementations must embed UnimplementedMovieServiceServer for forward compatibility
type ReadMovieRequest ¶
type ReadMovieRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ReadMovieRequest) Descriptor
deprecated
func (*ReadMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadMovieRequest.ProtoReflect.Descriptor instead.
func (*ReadMovieRequest) GetId ¶
func (x *ReadMovieRequest) GetId() string
func (*ReadMovieRequest) ProtoMessage ¶
func (*ReadMovieRequest) ProtoMessage()
func (*ReadMovieRequest) ProtoReflect ¶
func (x *ReadMovieRequest) ProtoReflect() protoreflect.Message
func (*ReadMovieRequest) Reset ¶
func (x *ReadMovieRequest) Reset()
func (*ReadMovieRequest) String ¶
func (x *ReadMovieRequest) String() string
type ReadMovieResponse ¶
type ReadMovieResponse struct { Movie *Movie `protobuf:"bytes,1,opt,name=movie,proto3" json:"movie,omitempty"` // contains filtered or unexported fields }
func (*ReadMovieResponse) Descriptor
deprecated
func (*ReadMovieResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadMovieResponse.ProtoReflect.Descriptor instead.
func (*ReadMovieResponse) GetMovie ¶
func (x *ReadMovieResponse) GetMovie() *Movie
func (*ReadMovieResponse) ProtoMessage ¶
func (*ReadMovieResponse) ProtoMessage()
func (*ReadMovieResponse) ProtoReflect ¶
func (x *ReadMovieResponse) ProtoReflect() protoreflect.Message
func (*ReadMovieResponse) Reset ¶
func (x *ReadMovieResponse) Reset()
func (*ReadMovieResponse) String ¶
func (x *ReadMovieResponse) String() string
type ReadMoviesRequest ¶
type ReadMoviesRequest struct {
// contains filtered or unexported fields
}
func (*ReadMoviesRequest) Descriptor
deprecated
func (*ReadMoviesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadMoviesRequest.ProtoReflect.Descriptor instead.
func (*ReadMoviesRequest) ProtoMessage ¶
func (*ReadMoviesRequest) ProtoMessage()
func (*ReadMoviesRequest) ProtoReflect ¶
func (x *ReadMoviesRequest) ProtoReflect() protoreflect.Message
func (*ReadMoviesRequest) Reset ¶
func (x *ReadMoviesRequest) Reset()
func (*ReadMoviesRequest) String ¶
func (x *ReadMoviesRequest) String() string
type ReadMoviesResponse ¶
type ReadMoviesResponse struct { Movies []*Movie `protobuf:"bytes,1,rep,name=movies,proto3" json:"movies,omitempty"` // contains filtered or unexported fields }
func (*ReadMoviesResponse) Descriptor
deprecated
func (*ReadMoviesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadMoviesResponse.ProtoReflect.Descriptor instead.
func (*ReadMoviesResponse) GetMovies ¶
func (x *ReadMoviesResponse) GetMovies() []*Movie
func (*ReadMoviesResponse) ProtoMessage ¶
func (*ReadMoviesResponse) ProtoMessage()
func (*ReadMoviesResponse) ProtoReflect ¶
func (x *ReadMoviesResponse) ProtoReflect() protoreflect.Message
func (*ReadMoviesResponse) Reset ¶
func (x *ReadMoviesResponse) Reset()
func (*ReadMoviesResponse) String ¶
func (x *ReadMoviesResponse) String() string
type UnimplementedMovieServiceServer ¶
type UnimplementedMovieServiceServer struct { }
UnimplementedMovieServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMovieServiceServer) CreateMovie ¶
func (UnimplementedMovieServiceServer) CreateMovie(context.Context, *CreateMovieRequest) (*CreateMovieResponse, error)
func (UnimplementedMovieServiceServer) DeleteMovie ¶
func (UnimplementedMovieServiceServer) DeleteMovie(context.Context, *DeleteMovieRequest) (*DeleteMovieResponse, error)
func (UnimplementedMovieServiceServer) ReadMovie ¶
func (UnimplementedMovieServiceServer) ReadMovie(context.Context, *ReadMovieRequest) (*ReadMovieResponse, error)
func (UnimplementedMovieServiceServer) ReadMovies ¶
func (UnimplementedMovieServiceServer) ReadMovies(context.Context, *ReadMoviesRequest) (*ReadMoviesResponse, error)
func (UnimplementedMovieServiceServer) UpdateMovie ¶
func (UnimplementedMovieServiceServer) UpdateMovie(context.Context, *UpdateMovieRequest) (*UpdateMovieResponse, error)
type UnsafeMovieServiceServer ¶
type UnsafeMovieServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMovieServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MovieServiceServer will result in compilation errors.
type UpdateMovieRequest ¶
type UpdateMovieRequest struct { Movie *Movie `protobuf:"bytes,1,opt,name=movie,proto3" json:"movie,omitempty"` // contains filtered or unexported fields }
func (*UpdateMovieRequest) Descriptor
deprecated
func (*UpdateMovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMovieRequest.ProtoReflect.Descriptor instead.
func (*UpdateMovieRequest) GetMovie ¶
func (x *UpdateMovieRequest) GetMovie() *Movie
func (*UpdateMovieRequest) ProtoMessage ¶
func (*UpdateMovieRequest) ProtoMessage()
func (*UpdateMovieRequest) ProtoReflect ¶
func (x *UpdateMovieRequest) ProtoReflect() protoreflect.Message
func (*UpdateMovieRequest) Reset ¶
func (x *UpdateMovieRequest) Reset()
func (*UpdateMovieRequest) String ¶
func (x *UpdateMovieRequest) String() string
type UpdateMovieResponse ¶
type UpdateMovieResponse struct { Movie *Movie `protobuf:"bytes,1,opt,name=movie,proto3" json:"movie,omitempty"` // contains filtered or unexported fields }
func (*UpdateMovieResponse) Descriptor
deprecated
func (*UpdateMovieResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMovieResponse.ProtoReflect.Descriptor instead.
func (*UpdateMovieResponse) GetMovie ¶
func (x *UpdateMovieResponse) GetMovie() *Movie
func (*UpdateMovieResponse) ProtoMessage ¶
func (*UpdateMovieResponse) ProtoMessage()
func (*UpdateMovieResponse) ProtoReflect ¶
func (x *UpdateMovieResponse) ProtoReflect() protoreflect.Message
func (*UpdateMovieResponse) Reset ¶
func (x *UpdateMovieResponse) Reset()
func (*UpdateMovieResponse) String ¶
func (x *UpdateMovieResponse) String() string