pb

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Servicesideapi_GetVideosByStatus_FullMethodName = "/videoapi.servicesideapi/GetVideosByStatus"
	Servicesideapi_UpdateVideo_FullMethodName       = "/videoapi.servicesideapi/UpdateVideo"
	Servicesideapi_UpdateVideoStatus_FullMethodName = "/videoapi.servicesideapi/UpdateVideoStatus"
	Servicesideapi_NotifyPartUpload_FullMethodName  = "/videoapi.servicesideapi/NotifyPartUpload"
)

Variables

View Source
var File_internal_api_video_grpc_protobuf_service_proto protoreflect.FileDescriptor
View Source
var Servicesideapi_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "videoapi.servicesideapi",
	HandlerType: (*ServicesideapiServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetVideosByStatus",
			Handler:    _Servicesideapi_GetVideosByStatus_Handler,
		},
		{
			MethodName: "UpdateVideo",
			Handler:    _Servicesideapi_UpdateVideo_Handler,
		},
		{
			MethodName: "UpdateVideoStatus",
			Handler:    _Servicesideapi_UpdateVideoStatus_Handler,
		},
		{
			MethodName: "NotifyPartUpload",
			Handler:    _Servicesideapi_NotifyPartUpload_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/api/video/grpc/protobuf/service.proto",
}

Servicesideapi_ServiceDesc is the grpc.ServiceDesc for Servicesideapi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServicesideapiServer

func RegisterServicesideapiServer(s grpc.ServiceRegistrar, srv ServicesideapiServer)

Types

type GetByStatusRequest

type GetByStatusRequest struct {
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByStatusRequest) Descriptor deprecated

func (*GetByStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetByStatusRequest.ProtoReflect.Descriptor instead.

func (*GetByStatusRequest) GetStatus

func (x *GetByStatusRequest) GetStatus() int32

func (*GetByStatusRequest) ProtoMessage

func (*GetByStatusRequest) ProtoMessage()

func (*GetByStatusRequest) ProtoReflect

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

func (*GetByStatusRequest) Reset

func (x *GetByStatusRequest) Reset()

func (*GetByStatusRequest) String

func (x *GetByStatusRequest) String() string

type NotifyPartUploadRequest

type NotifyPartUploadRequest struct {
	VideoId  string `protobuf:"bytes,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"`
	Num      uint32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"`
	Checksum string `protobuf:"bytes,4,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyPartUploadRequest) Descriptor deprecated

func (*NotifyPartUploadRequest) Descriptor() ([]byte, []int)

Deprecated: Use NotifyPartUploadRequest.ProtoReflect.Descriptor instead.

func (*NotifyPartUploadRequest) GetChecksum

func (x *NotifyPartUploadRequest) GetChecksum() string

func (*NotifyPartUploadRequest) GetNum

func (x *NotifyPartUploadRequest) GetNum() uint32

func (*NotifyPartUploadRequest) GetVideoId

func (x *NotifyPartUploadRequest) GetVideoId() string

func (*NotifyPartUploadRequest) ProtoMessage

func (*NotifyPartUploadRequest) ProtoMessage()

func (*NotifyPartUploadRequest) ProtoReflect

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

func (*NotifyPartUploadRequest) Reset

func (x *NotifyPartUploadRequest) Reset()

func (*NotifyPartUploadRequest) String

func (x *NotifyPartUploadRequest) String() string

type NotifyPartUploadResponse

type NotifyPartUploadResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyPartUploadResponse) Descriptor deprecated

func (*NotifyPartUploadResponse) Descriptor() ([]byte, []int)

Deprecated: Use NotifyPartUploadResponse.ProtoReflect.Descriptor instead.

func (*NotifyPartUploadResponse) ProtoMessage

func (*NotifyPartUploadResponse) ProtoMessage()

func (*NotifyPartUploadResponse) ProtoReflect

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

func (*NotifyPartUploadResponse) Reset

func (x *NotifyPartUploadResponse) Reset()

func (*NotifyPartUploadResponse) String

func (x *NotifyPartUploadResponse) String() string

type Part

type Part struct {
	Num      uint32 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Size     uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*Part) Descriptor deprecated

func (*Part) Descriptor() ([]byte, []int)

Deprecated: Use Part.ProtoReflect.Descriptor instead.

func (*Part) GetChecksum

func (x *Part) GetChecksum() string

func (*Part) GetNum

func (x *Part) GetNum() uint32

func (*Part) GetSize

func (x *Part) GetSize() uint64

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) ProtoReflect

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

func (*Part) Reset

func (x *Part) Reset()

func (*Part) String

func (x *Part) String() string

type ServicesideapiClient

type ServicesideapiClient interface {
	GetVideosByStatus(ctx context.Context, in *GetByStatusRequest, opts ...grpc.CallOption) (*VideoListResponse, error)
	UpdateVideo(ctx context.Context, in *UpdateVideoRequest, opts ...grpc.CallOption) (*UpdateVideoResponse, error)
	UpdateVideoStatus(ctx context.Context, in *UpdateVideoStatusRequest, opts ...grpc.CallOption) (*UpdateVideoStatusResponse, error)
	NotifyPartUpload(ctx context.Context, in *NotifyPartUploadRequest, opts ...grpc.CallOption) (*NotifyPartUploadResponse, error)
}

ServicesideapiClient is the client API for Servicesideapi 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 ServicesideapiServer

type ServicesideapiServer interface {
	GetVideosByStatus(context.Context, *GetByStatusRequest) (*VideoListResponse, error)
	UpdateVideo(context.Context, *UpdateVideoRequest) (*UpdateVideoResponse, error)
	UpdateVideoStatus(context.Context, *UpdateVideoStatusRequest) (*UpdateVideoStatusResponse, error)
	NotifyPartUpload(context.Context, *NotifyPartUploadRequest) (*NotifyPartUploadResponse, error)
	// contains filtered or unexported methods
}

ServicesideapiServer is the server API for Servicesideapi service. All implementations must embed UnimplementedServicesideapiServer for forward compatibility

type UnimplementedServicesideapiServer

type UnimplementedServicesideapiServer struct {
}

UnimplementedServicesideapiServer must be embedded to have forward compatible implementations.

func (UnimplementedServicesideapiServer) GetVideosByStatus

func (UnimplementedServicesideapiServer) NotifyPartUpload

func (UnimplementedServicesideapiServer) UpdateVideo

func (UnimplementedServicesideapiServer) UpdateVideoStatus

type UnsafeServicesideapiServer

type UnsafeServicesideapiServer interface {
	// contains filtered or unexported methods
}

UnsafeServicesideapiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServicesideapiServer will result in compilation errors.

type UpdateVideoRequest

type UpdateVideoRequest struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Location     string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	Status       int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	PlaybackMeta []byte `protobuf:"bytes,4,opt,name=playback_meta,json=playbackMeta,proto3" json:"playback_meta,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVideoRequest) Descriptor deprecated

func (*UpdateVideoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVideoRequest.ProtoReflect.Descriptor instead.

func (*UpdateVideoRequest) GetId

func (x *UpdateVideoRequest) GetId() string

func (*UpdateVideoRequest) GetLocation

func (x *UpdateVideoRequest) GetLocation() string

func (*UpdateVideoRequest) GetPlaybackMeta

func (x *UpdateVideoRequest) GetPlaybackMeta() []byte

func (*UpdateVideoRequest) GetStatus

func (x *UpdateVideoRequest) GetStatus() int32

func (*UpdateVideoRequest) ProtoMessage

func (*UpdateVideoRequest) ProtoMessage()

func (*UpdateVideoRequest) ProtoReflect

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

func (*UpdateVideoRequest) Reset

func (x *UpdateVideoRequest) Reset()

func (*UpdateVideoRequest) String

func (x *UpdateVideoRequest) String() string

type UpdateVideoResponse

type UpdateVideoResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateVideoResponse) Descriptor deprecated

func (*UpdateVideoResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVideoResponse.ProtoReflect.Descriptor instead.

func (*UpdateVideoResponse) ProtoMessage

func (*UpdateVideoResponse) ProtoMessage()

func (*UpdateVideoResponse) ProtoReflect

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

func (*UpdateVideoResponse) Reset

func (x *UpdateVideoResponse) Reset()

func (*UpdateVideoResponse) String

func (x *UpdateVideoResponse) String() string

type UpdateVideoStatusRequest

type UpdateVideoStatusRequest struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status int32  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVideoStatusRequest) Descriptor deprecated

func (*UpdateVideoStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVideoStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateVideoStatusRequest) GetId

func (x *UpdateVideoStatusRequest) GetId() string

func (*UpdateVideoStatusRequest) GetStatus

func (x *UpdateVideoStatusRequest) GetStatus() int32

func (*UpdateVideoStatusRequest) ProtoMessage

func (*UpdateVideoStatusRequest) ProtoMessage()

func (*UpdateVideoStatusRequest) ProtoReflect

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

func (*UpdateVideoStatusRequest) Reset

func (x *UpdateVideoStatusRequest) Reset()

func (*UpdateVideoStatusRequest) String

func (x *UpdateVideoStatusRequest) String() string

type UpdateVideoStatusResponse

type UpdateVideoStatusResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateVideoStatusResponse) Descriptor deprecated

func (*UpdateVideoStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVideoStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateVideoStatusResponse) ProtoMessage

func (*UpdateVideoStatusResponse) ProtoMessage()

func (*UpdateVideoStatusResponse) ProtoReflect

func (*UpdateVideoStatusResponse) Reset

func (x *UpdateVideoStatusResponse) Reset()

func (*UpdateVideoStatusResponse) String

func (x *UpdateVideoStatusResponse) String() string

type Video

type Video struct {
	Id        string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status    int32   `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt uint64  `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Size      uint64  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	Location  string  `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	Parts     []*Part `protobuf:"bytes,6,rep,name=parts,proto3" json:"parts,omitempty"`
	// contains filtered or unexported fields
}

func (*Video) Descriptor deprecated

func (*Video) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetCreatedAt

func (x *Video) GetCreatedAt() uint64

func (*Video) GetId

func (x *Video) GetId() string

func (*Video) GetLocation

func (x *Video) GetLocation() string

func (*Video) GetParts

func (x *Video) GetParts() []*Part

func (*Video) GetSize

func (x *Video) GetSize() uint64

func (*Video) GetStatus

func (x *Video) GetStatus() int32

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 VideoListResponse

type VideoListResponse struct {
	Videos []*Video `protobuf:"bytes,1,rep,name=videos,proto3" json:"videos,omitempty"`
	// contains filtered or unexported fields
}

func (*VideoListResponse) Descriptor deprecated

func (*VideoListResponse) Descriptor() ([]byte, []int)

Deprecated: Use VideoListResponse.ProtoReflect.Descriptor instead.

func (*VideoListResponse) GetVideos

func (x *VideoListResponse) GetVideos() []*Video

func (*VideoListResponse) ProtoMessage

func (*VideoListResponse) ProtoMessage()

func (*VideoListResponse) ProtoReflect

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

func (*VideoListResponse) Reset

func (x *VideoListResponse) Reset()

func (*VideoListResponse) String

func (x *VideoListResponse) String() string

Jump to

Keyboard shortcuts

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