video_catalog

package
v0.0.0-...-32a2b0a Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_proto_video_catalog_video_catalog_proto protoreflect.FileDescriptor
View Source
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) FindById

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetImage

func (x *User) GetImage() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetDescription

func (x *Video) GetDescription() string

func (*Video) GetDuration

func (x *Video) GetDuration() int32

func (*Video) GetId

func (x *Video) GetId() int32

func (*Video) GetPublishedAt

func (x *Video) GetPublishedAt() string

func (*Video) GetResolution

func (x *Video) GetResolution() string

func (*Video) GetThumbnailUrl

func (x *Video) GetThumbnailUrl() string

func (*Video) GetTitle

func (x *Video) GetTitle() string

func (*Video) GetUser

func (x *Video) GetUser() *User

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

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

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

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.

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

Jump to

Keyboard shortcuts

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