pb

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image_Ping_FullMethodName   = "/within.website.x.xedn.uplodr.Image/Ping"
	Image_Upload_FullMethodName = "/within.website.x.xedn.uplodr.Image/Upload"
)

Variables

View Source
var File_uplodr_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Echo.ProtoReflect.Descriptor instead.

func (*Echo) GetNonce

func (x *Echo) GetNonce() string

func (*Echo) ProtoMessage

func (*Echo) ProtoMessage()

func (*Echo) ProtoReflect

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

func (*Echo) Reset

func (x *Echo) Reset()

func (*Echo) String

func (x *Echo) String() string

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.golang.ir/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) Ping

func (UnimplementedImageServer) Upload

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

Deprecated: Use UploadReq.ProtoReflect.Descriptor instead.

func (*UploadReq) GetData

func (x *UploadReq) GetData() []byte

func (*UploadReq) GetFileName

func (x *UploadReq) GetFileName() string

func (*UploadReq) GetFolder

func (x *UploadReq) GetFolder() string

func (*UploadReq) ProtoMessage

func (*UploadReq) ProtoMessage()

func (*UploadReq) ProtoReflect

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

func (*UploadReq) Reset

func (x *UploadReq) Reset()

func (*UploadReq) String

func (x *UploadReq) String() string

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

Deprecated: Use Variant.ProtoReflect.Descriptor instead.

func (*Variant) GetMimeType

func (x *Variant) GetMimeType() string

func (*Variant) GetUrl

func (x *Variant) GetUrl() string

func (*Variant) ProtoMessage

func (*Variant) ProtoMessage()

func (*Variant) ProtoReflect

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

func (*Variant) Reset

func (x *Variant) Reset()

func (*Variant) String

func (x *Variant) String() string

Jump to

Keyboard shortcuts

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