Documentation
¶
Index ¶
- Variables
- func RegisterVideoCatalogServiceServer(s grpc.ServiceRegistrar, srv VideoCatalogServiceServer)
- type FindAllRequest
- type FindAllResponse
- func (*FindAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindAllResponse) GetData() *FindAllResponseData
- func (x *FindAllResponse) GetMessage() string
- func (*FindAllResponse) ProtoMessage()
- func (x *FindAllResponse) ProtoReflect() protoreflect.Message
- func (x *FindAllResponse) Reset()
- func (x *FindAllResponse) String() string
- type FindAllResponseData
- func (*FindAllResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *FindAllResponseData) GetVideos() []*Video
- func (*FindAllResponseData) ProtoMessage()
- func (x *FindAllResponseData) ProtoReflect() protoreflect.Message
- func (x *FindAllResponseData) Reset()
- func (x *FindAllResponseData) String() string
- type FindByIdRequest
- type FindByIdResponse
- func (*FindByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindByIdResponse) GetData() *FindByIdResponseData
- func (x *FindByIdResponse) GetMessage() string
- func (*FindByIdResponse) ProtoMessage()
- func (x *FindByIdResponse) ProtoReflect() protoreflect.Message
- func (x *FindByIdResponse) Reset()
- func (x *FindByIdResponse) String() string
- type FindByIdResponseData
- func (*FindByIdResponseData) Descriptor() ([]byte, []int)deprecated
- func (x *FindByIdResponseData) GetManifestUrl() string
- func (x *FindByIdResponseData) GetVideo() *Video
- func (*FindByIdResponseData) ProtoMessage()
- func (x *FindByIdResponseData) ProtoReflect() protoreflect.Message
- func (x *FindByIdResponseData) Reset()
- func (x *FindByIdResponseData) String() string
- type UnimplementedVideoCatalogServiceServer
- type UnsafeVideoCatalogServiceServer
- type User
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetDescription() string
- func (x *Video) GetDuration() int32
- func (x *Video) GetId() int32
- func (x *Video) GetPublishedAt() string
- func (x *Video) GetResolution() string
- func (x *Video) GetThumbnailUrl() string
- func (x *Video) GetTitle() string
- func (x *Video) GetUser() *User
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
- type VideoCatalogServiceClient
- type VideoCatalogServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_internal_proto_video_catalog_video_catalog_proto protoreflect.FileDescriptor
var VideoCatalogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "videocatalog.VideoCatalogService", HandlerType: (*VideoCatalogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FindAll", Handler: _VideoCatalogService_FindAll_Handler, }, { MethodName: "FindById", Handler: _VideoCatalogService_FindById_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/proto/video_catalog/video_catalog.proto", }
VideoCatalogService_ServiceDesc is the grpc.ServiceDesc for VideoCatalogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVideoCatalogServiceServer ¶
func RegisterVideoCatalogServiceServer(s grpc.ServiceRegistrar, srv VideoCatalogServiceServer)
Types ¶
type FindAllRequest ¶
type FindAllRequest struct {
// contains filtered or unexported fields
}
func (*FindAllRequest) Descriptor
deprecated
func (*FindAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindAllRequest.ProtoReflect.Descriptor instead.
func (*FindAllRequest) ProtoMessage ¶
func (*FindAllRequest) ProtoMessage()
func (*FindAllRequest) ProtoReflect ¶
func (x *FindAllRequest) ProtoReflect() protoreflect.Message
func (*FindAllRequest) Reset ¶
func (x *FindAllRequest) Reset()
func (*FindAllRequest) String ¶
func (x *FindAllRequest) String() string
type FindAllResponse ¶
type FindAllResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *FindAllResponseData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindAllResponse) Descriptor
deprecated
func (*FindAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindAllResponse.ProtoReflect.Descriptor instead.
func (*FindAllResponse) GetData ¶
func (x *FindAllResponse) GetData() *FindAllResponseData
func (*FindAllResponse) GetMessage ¶
func (x *FindAllResponse) GetMessage() string
func (*FindAllResponse) ProtoMessage ¶
func (*FindAllResponse) ProtoMessage()
func (*FindAllResponse) ProtoReflect ¶
func (x *FindAllResponse) ProtoReflect() protoreflect.Message
func (*FindAllResponse) Reset ¶
func (x *FindAllResponse) Reset()
func (*FindAllResponse) String ¶
func (x *FindAllResponse) String() string
type FindAllResponseData ¶
type FindAllResponseData struct { Videos []*Video `protobuf:"bytes,1,rep,name=videos,proto3" json:"videos,omitempty"` // contains filtered or unexported fields }
func (*FindAllResponseData) Descriptor
deprecated
func (*FindAllResponseData) Descriptor() ([]byte, []int)
Deprecated: Use FindAllResponseData.ProtoReflect.Descriptor instead.
func (*FindAllResponseData) GetVideos ¶
func (x *FindAllResponseData) GetVideos() []*Video
func (*FindAllResponseData) ProtoMessage ¶
func (*FindAllResponseData) ProtoMessage()
func (*FindAllResponseData) ProtoReflect ¶
func (x *FindAllResponseData) ProtoReflect() protoreflect.Message
func (*FindAllResponseData) Reset ¶
func (x *FindAllResponseData) Reset()
func (*FindAllResponseData) String ¶
func (x *FindAllResponseData) String() string
type FindByIdRequest ¶
type FindByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindByIdRequest) Descriptor
deprecated
func (*FindByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdRequest.ProtoReflect.Descriptor instead.
func (*FindByIdRequest) GetId ¶
func (x *FindByIdRequest) GetId() int32
func (*FindByIdRequest) ProtoMessage ¶
func (*FindByIdRequest) ProtoMessage()
func (*FindByIdRequest) ProtoReflect ¶
func (x *FindByIdRequest) ProtoReflect() protoreflect.Message
func (*FindByIdRequest) Reset ¶
func (x *FindByIdRequest) Reset()
func (*FindByIdRequest) String ¶
func (x *FindByIdRequest) String() string
type FindByIdResponse ¶
type FindByIdResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *FindByIdResponseData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*FindByIdResponse) Descriptor
deprecated
func (*FindByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdResponse.ProtoReflect.Descriptor instead.
func (*FindByIdResponse) GetData ¶
func (x *FindByIdResponse) GetData() *FindByIdResponseData
func (*FindByIdResponse) GetMessage ¶
func (x *FindByIdResponse) GetMessage() string
func (*FindByIdResponse) ProtoMessage ¶
func (*FindByIdResponse) ProtoMessage()
func (*FindByIdResponse) ProtoReflect ¶
func (x *FindByIdResponse) ProtoReflect() protoreflect.Message
func (*FindByIdResponse) Reset ¶
func (x *FindByIdResponse) Reset()
func (*FindByIdResponse) String ¶
func (x *FindByIdResponse) String() string
type FindByIdResponseData ¶
type FindByIdResponseData struct { Video *Video `protobuf:"bytes,1,opt,name=video,proto3" json:"video,omitempty"` ManifestUrl string `protobuf:"bytes,2,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"` // contains filtered or unexported fields }
func (*FindByIdResponseData) Descriptor
deprecated
func (*FindByIdResponseData) Descriptor() ([]byte, []int)
Deprecated: Use FindByIdResponseData.ProtoReflect.Descriptor instead.
func (*FindByIdResponseData) GetManifestUrl ¶
func (x *FindByIdResponseData) GetManifestUrl() string
func (*FindByIdResponseData) GetVideo ¶
func (x *FindByIdResponseData) GetVideo() *Video
func (*FindByIdResponseData) ProtoMessage ¶
func (*FindByIdResponseData) ProtoMessage()
func (*FindByIdResponseData) ProtoReflect ¶
func (x *FindByIdResponseData) ProtoReflect() protoreflect.Message
func (*FindByIdResponseData) Reset ¶
func (x *FindByIdResponseData) Reset()
func (*FindByIdResponseData) String ¶
func (x *FindByIdResponseData) String() string
type UnimplementedVideoCatalogServiceServer ¶
type UnimplementedVideoCatalogServiceServer struct { }
UnimplementedVideoCatalogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVideoCatalogServiceServer) FindAll ¶
func (UnimplementedVideoCatalogServiceServer) FindAll(context.Context, *FindAllRequest) (*FindAllResponse, error)
func (UnimplementedVideoCatalogServiceServer) FindById ¶
func (UnimplementedVideoCatalogServiceServer) FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error)
type UnsafeVideoCatalogServiceServer ¶
type UnsafeVideoCatalogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVideoCatalogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VideoCatalogServiceServer will result in compilation errors.
type User ¶
type User struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Image *string `protobuf:"bytes,4,opt,name=image,proto3,oneof" json:"image,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type Video ¶
type Video struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ThumbnailUrl string `protobuf:"bytes,4,opt,name=thumbnail_url,json=thumbnailUrl,proto3" json:"thumbnail_url,omitempty"` PublishedAt string `protobuf:"bytes,5,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"` Duration int32 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` Resolution string `protobuf:"bytes,7,opt,name=resolution,proto3" json:"resolution,omitempty"` User *User `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*Video) Descriptor
deprecated
func (*Video) GetDescription ¶
func (*Video) GetDuration ¶
func (*Video) GetPublishedAt ¶
func (*Video) GetResolution ¶
func (*Video) GetThumbnailUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
type VideoCatalogServiceClient ¶
type VideoCatalogServiceClient interface { FindAll(ctx context.Context, in *FindAllRequest, opts ...grpc.CallOption) (*FindAllResponse, error) FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*FindByIdResponse, error) }
VideoCatalogServiceClient is the client API for VideoCatalogService 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 NewVideoCatalogServiceClient ¶
func NewVideoCatalogServiceClient(cc grpc.ClientConnInterface) VideoCatalogServiceClient
type VideoCatalogServiceServer ¶
type VideoCatalogServiceServer interface { FindAll(context.Context, *FindAllRequest) (*FindAllResponse, error) FindById(context.Context, *FindByIdRequest) (*FindByIdResponse, error) // contains filtered or unexported methods }
VideoCatalogServiceServer is the server API for VideoCatalogService service. All implementations must embed UnimplementedVideoCatalogServiceServer for forward compatibility