upload

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_upload_upload_proto protoreflect.FileDescriptor

Functions

func AppendUploadHttpRoute

func AppendUploadHttpRoute(router *http1.ServeMux, service UploadService, opts ...server.Option) *http1.ServeMux

Types

type Response

type Response struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UploadEmbedRequest

type UploadEmbedRequest struct {
	Body *httpbody.HttpBody `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadEmbedRequest) Descriptor deprecated

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

Deprecated: Use UploadEmbedRequest.ProtoReflect.Descriptor instead.

func (*UploadEmbedRequest) GetBody

func (x *UploadEmbedRequest) GetBody() *httpbody.HttpBody

func (*UploadEmbedRequest) ProtoMessage

func (*UploadEmbedRequest) ProtoMessage()

func (*UploadEmbedRequest) ProtoReflect

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

func (*UploadEmbedRequest) Reset

func (x *UploadEmbedRequest) Reset()

func (*UploadEmbedRequest) String

func (x *UploadEmbedRequest) String() string

type UploadService

type UploadService interface {
	Upload(ctx context.Context, req *httpbody.HttpBody) (*Response, error)
	UploadEmbed(ctx context.Context, req *UploadEmbedRequest) (*Response, error)
	UploadForRPC(ctx context.Context, req *http.HttpRequest) (*Response, error)
}

func NewUploadHttpClient

func NewUploadHttpClient(target string, opts ...client.Option) UploadService

Jump to

Keyboard shortcuts

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