__

package
v0.0.0-...-7d26c01 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_proto_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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

Deprecated: Use MovieID.ProtoReflect.Descriptor instead.

func (*MovieID) GetId

func (x *MovieID) GetId() string

func (*MovieID) ProtoMessage

func (*MovieID) ProtoMessage()

func (*MovieID) ProtoReflect

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

func (*MovieID) Reset

func (x *MovieID) Reset()

func (*MovieID) String

func (x *MovieID) String() string

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.

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) DeleteMovie

func (UnimplementedMovieServiceServer) GetMovie

func (UnimplementedMovieServiceServer) GetMovies

func (UnimplementedMovieServiceServer) UpdateMovie

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.

Jump to

Keyboard shortcuts

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