s3file

package
v0.0.0-...-9a2e67b Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_s3file_proto protoreflect.FileDescriptor
View Source
var S3Gateway_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aveplen.s3file.S3Gateway",
	HandlerType: (*S3GatewayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PutImageObject",
			Handler:    _S3Gateway_PutImageObject_Handler,
		},
		{
			MethodName: "GetImageObject",
			Handler:    _S3Gateway_GetImageObject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "s3file.proto",
}

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

Functions

func RegisterS3GatewayServer

func RegisterS3GatewayServer(s grpc.ServiceRegistrar, srv S3GatewayServer)

Types

type GetImageObjectRequest

type GetImageObjectRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetImageObjectRequest) Descriptor deprecated

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

Deprecated: Use GetImageObjectRequest.ProtoReflect.Descriptor instead.

func (*GetImageObjectRequest) GetId

func (x *GetImageObjectRequest) GetId() uint64

func (*GetImageObjectRequest) ProtoMessage

func (*GetImageObjectRequest) ProtoMessage()

func (*GetImageObjectRequest) ProtoReflect

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

func (*GetImageObjectRequest) Reset

func (x *GetImageObjectRequest) Reset()

func (*GetImageObjectRequest) String

func (x *GetImageObjectRequest) String() string

type ImageObject

type ImageObject struct {
	Id       uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageObject) Descriptor deprecated

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

Deprecated: Use ImageObject.ProtoReflect.Descriptor instead.

func (*ImageObject) GetContents

func (x *ImageObject) GetContents() []byte

func (*ImageObject) GetId

func (x *ImageObject) GetId() uint64

func (*ImageObject) ProtoMessage

func (*ImageObject) ProtoMessage()

func (*ImageObject) ProtoReflect

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

func (*ImageObject) Reset

func (x *ImageObject) Reset()

func (*ImageObject) String

func (x *ImageObject) String() string

type S3GatewayClient

type S3GatewayClient interface {
	PutImageObject(ctx context.Context, in *ImageObject, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetImageObject(ctx context.Context, in *GetImageObjectRequest, opts ...grpc.CallOption) (*ImageObject, error)
}

S3GatewayClient is the client API for S3Gateway 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 NewS3GatewayClient

func NewS3GatewayClient(cc grpc.ClientConnInterface) S3GatewayClient

type S3GatewayServer

type S3GatewayServer interface {
	PutImageObject(context.Context, *ImageObject) (*emptypb.Empty, error)
	GetImageObject(context.Context, *GetImageObjectRequest) (*ImageObject, error)
	// contains filtered or unexported methods
}

S3GatewayServer is the server API for S3Gateway service. All implementations must embed UnimplementedS3GatewayServer for forward compatibility

type UnimplementedS3GatewayServer

type UnimplementedS3GatewayServer struct {
}

UnimplementedS3GatewayServer must be embedded to have forward compatible implementations.

func (UnimplementedS3GatewayServer) GetImageObject

func (UnimplementedS3GatewayServer) PutImageObject

type UnsafeS3GatewayServer

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

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

Jump to

Keyboard shortcuts

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