Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterImageServer(s grpc.ServiceRegistrar, srv ImageServer)
- type Echo
- type ImageClient
- type ImageServer
- type UnimplementedImageServer
- type UnsafeImageServer
- type UploadReq
- func (*UploadReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadReq) GetData() []byte
- func (x *UploadReq) GetFileName() string
- func (x *UploadReq) GetFolder() string
- func (*UploadReq) ProtoMessage()
- func (x *UploadReq) ProtoReflect() protoreflect.Message
- func (x *UploadReq) Reset()
- func (x *UploadReq) String() string
- type UploadResp
- type Variant
Constants ¶
const ( Image_Ping_FullMethodName = "/within.website.x.xedn.uplodr.Image/Ping" Image_Upload_FullMethodName = "/within.website.x.xedn.uplodr.Image/Upload" )
Variables ¶
var File_uplodr_proto protoreflect.FileDescriptor
var Image_ServiceDesc = grpc.ServiceDesc{ ServiceName: "within.website.x.xedn.uplodr.Image", HandlerType: (*ImageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Image_Ping_Handler, }, { MethodName: "Upload", Handler: _Image_Upload_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "uplodr.proto", }
Image_ServiceDesc is the grpc.ServiceDesc for Image service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterImageServer ¶
func RegisterImageServer(s grpc.ServiceRegistrar, srv ImageServer)
Types ¶
type Echo ¶
type Echo struct { Nonce string `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*Echo) Descriptor
deprecated
func (*Echo) ProtoMessage ¶
func (*Echo) ProtoMessage()
func (*Echo) ProtoReflect ¶
func (x *Echo) ProtoReflect() protoreflect.Message
type ImageClient ¶
type ImageClient interface { Ping(ctx context.Context, in *Echo, opts ...grpc.CallOption) (*Echo, error) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*UploadResp, error) }
ImageClient is the client API for Image 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 NewImageClient ¶
func NewImageClient(cc grpc.ClientConnInterface) ImageClient
type ImageServer ¶
type ImageServer interface { Ping(context.Context, *Echo) (*Echo, error) Upload(context.Context, *UploadReq) (*UploadResp, error) // contains filtered or unexported methods }
ImageServer is the server API for Image service. All implementations must embed UnimplementedImageServer for forward compatibility
type UnimplementedImageServer ¶
type UnimplementedImageServer struct { }
UnimplementedImageServer must be embedded to have forward compatible implementations.
func (UnimplementedImageServer) Upload ¶
func (UnimplementedImageServer) Upload(context.Context, *UploadReq) (*UploadResp, error)
type UnsafeImageServer ¶
type UnsafeImageServer interface {
// contains filtered or unexported methods
}
UnsafeImageServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ImageServer will result in compilation errors.
type UploadReq ¶
type UploadReq struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Folder string `protobuf:"bytes,3,opt,name=folder,proto3" json:"folder,omitempty"` // contains filtered or unexported fields }
func (*UploadReq) Descriptor
deprecated
func (*UploadReq) GetFileName ¶
func (*UploadReq) ProtoMessage ¶
func (*UploadReq) ProtoMessage()
func (*UploadReq) ProtoReflect ¶
func (x *UploadReq) ProtoReflect() protoreflect.Message
type UploadResp ¶
type UploadResp struct { Variants []*Variant `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` // contains filtered or unexported fields }
func (*UploadResp) Descriptor
deprecated
func (*UploadResp) Descriptor() ([]byte, []int)
Deprecated: Use UploadResp.ProtoReflect.Descriptor instead.
func (*UploadResp) GetVariants ¶
func (x *UploadResp) GetVariants() []*Variant
func (*UploadResp) ProtoMessage ¶
func (*UploadResp) ProtoMessage()
func (*UploadResp) ProtoReflect ¶
func (x *UploadResp) ProtoReflect() protoreflect.Message
func (*UploadResp) Reset ¶
func (x *UploadResp) Reset()
func (*UploadResp) String ¶
func (x *UploadResp) String() string
type Variant ¶
type Variant struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` // contains filtered or unexported fields }
func (*Variant) Descriptor
deprecated
func (*Variant) GetMimeType ¶
func (*Variant) ProtoMessage ¶
func (*Variant) ProtoMessage()
func (*Variant) ProtoReflect ¶
func (x *Variant) ProtoReflect() protoreflect.Message