services_common

package
v0.0.0-...-ff4890a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUploadServiceServer

func RegisterUploadServiceServer(s *grpc.Server, srv UploadServiceServer)

Types

type UnimplementedUploadServiceServer

type UnimplementedUploadServiceServer struct {
}

UnimplementedUploadServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUploadServiceServer) UploadFile

type UploadReq

type UploadReq struct {
	FileName             string   `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	Content              []byte   `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Bucket               string   `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UploadReq) Descriptor

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

func (*UploadReq) GetBucket

func (m *UploadReq) GetBucket() string

func (*UploadReq) GetContent

func (m *UploadReq) GetContent() []byte

func (*UploadReq) GetFileName

func (m *UploadReq) GetFileName() string

func (*UploadReq) ProtoMessage

func (*UploadReq) ProtoMessage()

func (*UploadReq) Reset

func (m *UploadReq) Reset()

func (*UploadReq) String

func (m *UploadReq) String() string

func (*UploadReq) XXX_DiscardUnknown

func (m *UploadReq) XXX_DiscardUnknown()

func (*UploadReq) XXX_Marshal

func (m *UploadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadReq) XXX_Merge

func (m *UploadReq) XXX_Merge(src proto.Message)

func (*UploadReq) XXX_Size

func (m *UploadReq) XXX_Size() int

func (*UploadReq) XXX_Unmarshal

func (m *UploadReq) XXX_Unmarshal(b []byte) error

type UploadResp

type UploadResp struct {
	Url                  string   `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UploadResp) Descriptor

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

func (*UploadResp) GetUrl

func (m *UploadResp) GetUrl() string

func (*UploadResp) ProtoMessage

func (*UploadResp) ProtoMessage()

func (*UploadResp) Reset

func (m *UploadResp) Reset()

func (*UploadResp) String

func (m *UploadResp) String() string

func (*UploadResp) XXX_DiscardUnknown

func (m *UploadResp) XXX_DiscardUnknown()

func (*UploadResp) XXX_Marshal

func (m *UploadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UploadResp) XXX_Merge

func (m *UploadResp) XXX_Merge(src proto.Message)

func (*UploadResp) XXX_Size

func (m *UploadResp) XXX_Size() int

func (*UploadResp) XXX_Unmarshal

func (m *UploadResp) XXX_Unmarshal(b []byte) error

type UploadServiceClient

type UploadServiceClient interface {
	UploadFile(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (*UploadResp, error)
}

UploadServiceClient is the client API for UploadService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUploadServiceClient

func NewUploadServiceClient(cc *grpc.ClientConn) UploadServiceClient

type UploadServiceServer

type UploadServiceServer interface {
	UploadFile(context.Context, *UploadReq) (*UploadResp, error)
}

UploadServiceServer is the server API for UploadService service.

Jump to

Keyboard shortcuts

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