media

package
v0.0.0-...-588a488 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_media_media_proto protoreflect.FileDescriptor
View Source
var MediaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "media.MediaService",
	HandlerType: (*MediaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMedia",
			Handler:    _MediaService_GetMedia_Handler,
		},
		{
			MethodName: "BulkGetMedia",
			Handler:    _MediaService_BulkGetMedia_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "media/media.proto",
}

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

Functions

func RegisterMediaServiceServer

func RegisterMediaServiceServer(s grpc.ServiceRegistrar, srv MediaServiceServer)

Types

type BulkGetMediaRequest

type BulkGetMediaRequest struct {
	MediaIds  []string `protobuf:"bytes,1,rep,name=media_ids,json=mediaIds,proto3" json:"media_ids,omitempty"`
	UserId    string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	MediaType []string `protobuf:"bytes,3,rep,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkGetMediaRequest) Descriptor deprecated

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

Deprecated: Use BulkGetMediaRequest.ProtoReflect.Descriptor instead.

func (*BulkGetMediaRequest) GetMediaIds

func (x *BulkGetMediaRequest) GetMediaIds() []string

func (*BulkGetMediaRequest) GetMediaType

func (x *BulkGetMediaRequest) GetMediaType() []string

func (*BulkGetMediaRequest) GetUserId

func (x *BulkGetMediaRequest) GetUserId() string

func (*BulkGetMediaRequest) ProtoMessage

func (*BulkGetMediaRequest) ProtoMessage()

func (*BulkGetMediaRequest) ProtoReflect

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

func (*BulkGetMediaRequest) Reset

func (x *BulkGetMediaRequest) Reset()

func (*BulkGetMediaRequest) String

func (x *BulkGetMediaRequest) String() string

type BulkGetMediaResponse

type BulkGetMediaResponse struct {
	Medias []*Media `protobuf:"bytes,1,rep,name=medias,proto3" json:"medias,omitempty"`
	// contains filtered or unexported fields
}

func (*BulkGetMediaResponse) Descriptor deprecated

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

Deprecated: Use BulkGetMediaResponse.ProtoReflect.Descriptor instead.

func (*BulkGetMediaResponse) GetMedias

func (x *BulkGetMediaResponse) GetMedias() []*Media

func (*BulkGetMediaResponse) ProtoMessage

func (*BulkGetMediaResponse) ProtoMessage()

func (*BulkGetMediaResponse) ProtoReflect

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

func (*BulkGetMediaResponse) Reset

func (x *BulkGetMediaResponse) Reset()

func (*BulkGetMediaResponse) String

func (x *BulkGetMediaResponse) String() string

type GetMediaRequest

type GetMediaRequest struct {
	MediaId string `protobuf:"bytes,1,opt,name=media_id,json=mediaId,proto3" json:"media_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMediaRequest) Descriptor deprecated

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

Deprecated: Use GetMediaRequest.ProtoReflect.Descriptor instead.

func (*GetMediaRequest) GetMediaId

func (x *GetMediaRequest) GetMediaId() string

func (*GetMediaRequest) ProtoMessage

func (*GetMediaRequest) ProtoMessage()

func (*GetMediaRequest) ProtoReflect

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

func (*GetMediaRequest) Reset

func (x *GetMediaRequest) Reset()

func (*GetMediaRequest) String

func (x *GetMediaRequest) String() string

type GetMediaResponse

type GetMediaResponse struct {
	Media *Media `protobuf:"bytes,1,opt,name=media,proto3" json:"media,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMediaResponse) Descriptor deprecated

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

Deprecated: Use GetMediaResponse.ProtoReflect.Descriptor instead.

func (*GetMediaResponse) GetMedia

func (x *GetMediaResponse) GetMedia() *Media

func (*GetMediaResponse) ProtoMessage

func (*GetMediaResponse) ProtoMessage()

func (*GetMediaResponse) ProtoReflect

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

func (*GetMediaResponse) Reset

func (x *GetMediaResponse) Reset()

func (*GetMediaResponse) String

func (x *GetMediaResponse) String() string

type Media

type Media struct {
	PhotoUrl string `protobuf:"bytes,1,opt,name=photo_url,json=photoUrl,proto3" json:"photo_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Media) Descriptor deprecated

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

Deprecated: Use Media.ProtoReflect.Descriptor instead.

func (*Media) GetPhotoUrl

func (x *Media) GetPhotoUrl() string

func (*Media) ProtoMessage

func (*Media) ProtoMessage()

func (*Media) ProtoReflect

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

func (*Media) Reset

func (x *Media) Reset()

func (*Media) String

func (x *Media) String() string

type MediaServiceClient

type MediaServiceClient interface {
	GetMedia(ctx context.Context, in *GetMediaRequest, opts ...grpc.CallOption) (*GetMediaResponse, error)
	BulkGetMedia(ctx context.Context, in *BulkGetMediaRequest, opts ...grpc.CallOption) (*BulkGetMediaResponse, error)
}

MediaServiceClient is the client API for MediaService 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 MediaServiceServer

type MediaServiceServer interface {
	GetMedia(context.Context, *GetMediaRequest) (*GetMediaResponse, error)
	BulkGetMedia(context.Context, *BulkGetMediaRequest) (*BulkGetMediaResponse, error)
	// contains filtered or unexported methods
}

MediaServiceServer is the server API for MediaService service. All implementations must embed UnimplementedMediaServiceServer for forward compatibility

type UnimplementedMediaServiceServer

type UnimplementedMediaServiceServer struct {
}

UnimplementedMediaServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMediaServiceServer) BulkGetMedia

func (UnimplementedMediaServiceServer) GetMedia

type UnsafeMediaServiceServer

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

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

Jump to

Keyboard shortcuts

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