Documentation ¶
Index ¶
- Variables
- func RegisterMovieServiceServer(s grpc.ServiceRegistrar, srv MovieServiceServer)
- type EmptyRequest
- type Message
- type MovieID
- type MovieListResponse
- func (*MovieListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MovieListResponse) GetMovies() []*MovieResponse
- func (*MovieListResponse) ProtoMessage()
- func (x *MovieListResponse) ProtoReflect() protoreflect.Message
- func (x *MovieListResponse) Reset()
- func (x *MovieListResponse) String() string
- type MovieRequest
- func (*MovieRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MovieRequest) GetDescription() string
- func (x *MovieRequest) GetId() string
- func (x *MovieRequest) GetImage() string
- func (x *MovieRequest) GetName() string
- func (x *MovieRequest) GetReleaseDate() string
- func (*MovieRequest) ProtoMessage()
- func (x *MovieRequest) ProtoReflect() protoreflect.Message
- func (x *MovieRequest) Reset()
- func (x *MovieRequest) String() string
- type MovieResponse
- func (*MovieResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MovieResponse) GetDescription() string
- func (x *MovieResponse) GetId() string
- func (x *MovieResponse) GetImage() string
- func (x *MovieResponse) GetName() string
- func (x *MovieResponse) GetReleaseDate() string
- func (*MovieResponse) ProtoMessage()
- func (x *MovieResponse) ProtoReflect() protoreflect.Message
- func (x *MovieResponse) Reset()
- func (x *MovieResponse) String() string
- type MovieServiceClient
- type MovieServiceServer
- type UnimplementedMovieServiceServer
- func (UnimplementedMovieServiceServer) CreateMovie(context.Context, *MovieRequest) (*MovieResponse, error)
- func (UnimplementedMovieServiceServer) DeleteMovie(context.Context, *MovieID) (*Message, error)
- func (UnimplementedMovieServiceServer) GetMovie(context.Context, *MovieID) (*MovieResponse, error)
- func (UnimplementedMovieServiceServer) GetMovies(context.Context, *EmptyRequest) (*MovieListResponse, error)
- func (UnimplementedMovieServiceServer) UpdateMovie(context.Context, *MovieRequest) (*MovieResponse, error)
- type UnsafeMovieServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_proto_proto protoreflect.FileDescriptor
var MovieService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.MovieService", HandlerType: (*MovieServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateMovie", Handler: _MovieService_CreateMovie_Handler, }, { MethodName: "GetMovie", Handler: _MovieService_GetMovie_Handler, }, { MethodName: "GetMovies", Handler: _MovieService_GetMovies_Handler, }, { MethodName: "UpdateMovie", Handler: _MovieService_UpdateMovie_Handler, }, { MethodName: "DeleteMovie", Handler: _MovieService_DeleteMovie_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/proto.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 EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type Message ¶
type Message struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MovieID ¶
type MovieID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MovieID) Descriptor
deprecated
func (*MovieID) ProtoMessage ¶
func (*MovieID) ProtoMessage()
func (*MovieID) ProtoReflect ¶
func (x *MovieID) ProtoReflect() protoreflect.Message
type MovieListResponse ¶
type MovieListResponse struct { Movies []*MovieResponse `protobuf:"bytes,2,rep,name=movies,proto3" json:"movies,omitempty"` // contains filtered or unexported fields }
func (*MovieListResponse) Descriptor
deprecated
func (*MovieListResponse) Descriptor() ([]byte, []int)
Deprecated: Use MovieListResponse.ProtoReflect.Descriptor instead.
func (*MovieListResponse) GetMovies ¶
func (x *MovieListResponse) GetMovies() []*MovieResponse
func (*MovieListResponse) ProtoMessage ¶
func (*MovieListResponse) ProtoMessage()
func (*MovieListResponse) ProtoReflect ¶
func (x *MovieListResponse) ProtoReflect() protoreflect.Message
func (*MovieListResponse) Reset ¶
func (x *MovieListResponse) Reset()
func (*MovieListResponse) String ¶
func (x *MovieListResponse) String() string
type MovieRequest ¶
type MovieRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ReleaseDate string `protobuf:"bytes,4,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*MovieRequest) Descriptor
deprecated
func (*MovieRequest) Descriptor() ([]byte, []int)
Deprecated: Use MovieRequest.ProtoReflect.Descriptor instead.
func (*MovieRequest) GetDescription ¶
func (x *MovieRequest) GetDescription() string
func (*MovieRequest) GetId ¶
func (x *MovieRequest) GetId() string
func (*MovieRequest) GetImage ¶
func (x *MovieRequest) GetImage() string
func (*MovieRequest) GetName ¶
func (x *MovieRequest) GetName() string
func (*MovieRequest) GetReleaseDate ¶
func (x *MovieRequest) GetReleaseDate() string
func (*MovieRequest) ProtoMessage ¶
func (*MovieRequest) ProtoMessage()
func (*MovieRequest) ProtoReflect ¶
func (x *MovieRequest) ProtoReflect() protoreflect.Message
func (*MovieRequest) Reset ¶
func (x *MovieRequest) Reset()
func (*MovieRequest) String ¶
func (x *MovieRequest) String() string
type MovieResponse ¶
type MovieResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ReleaseDate string `protobuf:"bytes,4,opt,name=release_date,json=releaseDate,proto3" json:"release_date,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*MovieResponse) Descriptor
deprecated
func (*MovieResponse) Descriptor() ([]byte, []int)
Deprecated: Use MovieResponse.ProtoReflect.Descriptor instead.
func (*MovieResponse) GetDescription ¶
func (x *MovieResponse) GetDescription() string
func (*MovieResponse) GetId ¶
func (x *MovieResponse) GetId() string
func (*MovieResponse) GetImage ¶
func (x *MovieResponse) GetImage() string
func (*MovieResponse) GetName ¶
func (x *MovieResponse) GetName() string
func (*MovieResponse) GetReleaseDate ¶
func (x *MovieResponse) GetReleaseDate() string
func (*MovieResponse) ProtoMessage ¶
func (*MovieResponse) ProtoMessage()
func (*MovieResponse) ProtoReflect ¶
func (x *MovieResponse) ProtoReflect() protoreflect.Message
func (*MovieResponse) Reset ¶
func (x *MovieResponse) Reset()
func (*MovieResponse) String ¶
func (x *MovieResponse) String() string
type MovieServiceClient ¶
type MovieServiceClient interface { CreateMovie(ctx context.Context, in *MovieRequest, opts ...grpc.CallOption) (*MovieResponse, error) GetMovie(ctx context.Context, in *MovieID, opts ...grpc.CallOption) (*MovieResponse, error) GetMovies(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*MovieListResponse, error) UpdateMovie(ctx context.Context, in *MovieRequest, opts ...grpc.CallOption) (*MovieResponse, error) DeleteMovie(ctx context.Context, in *MovieID, opts ...grpc.CallOption) (*Message, 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, *MovieRequest) (*MovieResponse, error) GetMovie(context.Context, *MovieID) (*MovieResponse, error) GetMovies(context.Context, *EmptyRequest) (*MovieListResponse, error) UpdateMovie(context.Context, *MovieRequest) (*MovieResponse, error) DeleteMovie(context.Context, *MovieID) (*Message, error) // contains filtered or unexported methods }
MovieServiceServer is the server API for MovieService service. All implementations must embed UnimplementedMovieServiceServer for forward compatibility
type UnimplementedMovieServiceServer ¶
type UnimplementedMovieServiceServer struct { }
UnimplementedMovieServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMovieServiceServer) CreateMovie ¶
func (UnimplementedMovieServiceServer) CreateMovie(context.Context, *MovieRequest) (*MovieResponse, error)
func (UnimplementedMovieServiceServer) DeleteMovie ¶
func (UnimplementedMovieServiceServer) GetMovie ¶
func (UnimplementedMovieServiceServer) GetMovie(context.Context, *MovieID) (*MovieResponse, error)
func (UnimplementedMovieServiceServer) GetMovies ¶
func (UnimplementedMovieServiceServer) GetMovies(context.Context, *EmptyRequest) (*MovieListResponse, error)
func (UnimplementedMovieServiceServer) UpdateMovie ¶
func (UnimplementedMovieServiceServer) UpdateMovie(context.Context, *MovieRequest) (*MovieResponse, 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.