Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOssRpcServiceServer(s grpc.ServiceRegistrar, srv OssRpcServiceServer)
- type CallbackParams
- func (*CallbackParams) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackParams) GetPath() string
- func (x *CallbackParams) GetRequestID() string
- func (*CallbackParams) ProtoMessage()
- func (x *CallbackParams) ProtoReflect() protoreflect.Message
- func (x *CallbackParams) Reset()
- func (x *CallbackParams) String() string
- type CallbackResp
- func (*CallbackResp) Descriptor() ([]byte, []int)deprecated
- func (x *CallbackResp) GetCode() int32
- func (x *CallbackResp) GetData() *Data
- func (x *CallbackResp) GetMsg() string
- func (x *CallbackResp) GetPath() string
- func (x *CallbackResp) GetRequestID() string
- func (*CallbackResp) ProtoMessage()
- func (x *CallbackResp) ProtoReflect() protoreflect.Message
- func (x *CallbackResp) Reset()
- func (x *CallbackResp) String() string
- type CheckUploadResultParams
- func (*CheckUploadResultParams) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUploadResultParams) GetRequestID() string
- func (*CheckUploadResultParams) ProtoMessage()
- func (x *CheckUploadResultParams) ProtoReflect() protoreflect.Message
- func (x *CheckUploadResultParams) Reset()
- func (x *CheckUploadResultParams) String() string
- type CheckUploadResultResp
- func (*CheckUploadResultResp) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUploadResultResp) GetCode() int32
- func (x *CheckUploadResultResp) GetData() *Data
- func (x *CheckUploadResultResp) GetMsg() string
- func (x *CheckUploadResultResp) GetPath() string
- func (x *CheckUploadResultResp) GetRequestID() string
- func (*CheckUploadResultResp) ProtoMessage()
- func (x *CheckUploadResultResp) ProtoReflect() protoreflect.Message
- func (x *CheckUploadResultResp) Reset()
- func (x *CheckUploadResultResp) String() string
- type Data
- type GenerateUploadSignParams
- func (*GenerateUploadSignParams) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateUploadSignParams) GetAccessKeyId() string
- func (x *GenerateUploadSignParams) GetAccessKeySecret() string
- func (x *GenerateUploadSignParams) GetCallBack() string
- func (x *GenerateUploadSignParams) GetDomain() string
- func (x *GenerateUploadSignParams) GetEndpoint() string
- func (x *GenerateUploadSignParams) GetFilename() string
- func (x *GenerateUploadSignParams) GetIsCallBack() bool
- func (x *GenerateUploadSignParams) GetPrefix() string
- func (x *GenerateUploadSignParams) GetUploadDir() string
- func (*GenerateUploadSignParams) ProtoMessage()
- func (x *GenerateUploadSignParams) ProtoReflect() protoreflect.Message
- func (x *GenerateUploadSignParams) Reset()
- func (x *GenerateUploadSignParams) String() string
- type GenerateUploadSignParamsResp
- func (*GenerateUploadSignParamsResp) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateUploadSignParamsResp) GetCode() int32
- func (x *GenerateUploadSignParamsResp) GetData() *GenerateUploadSignParamsRespData
- func (x *GenerateUploadSignParamsResp) GetMsg() string
- func (x *GenerateUploadSignParamsResp) GetPath() string
- func (x *GenerateUploadSignParamsResp) GetRequestID() string
- func (*GenerateUploadSignParamsResp) ProtoMessage()
- func (x *GenerateUploadSignParamsResp) ProtoReflect() protoreflect.Message
- func (x *GenerateUploadSignParamsResp) Reset()
- func (x *GenerateUploadSignParamsResp) String() string
- type GenerateUploadSignParamsRespData
- func (*GenerateUploadSignParamsRespData) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateUploadSignParamsRespData) GetCallback() string
- func (x *GenerateUploadSignParamsRespData) GetDomain() string
- func (x *GenerateUploadSignParamsRespData) GetHost() string
- func (x *GenerateUploadSignParamsRespData) GetIsCallback() bool
- func (x *GenerateUploadSignParamsRespData) GetKey() string
- func (x *GenerateUploadSignParamsRespData) GetOSSAccessKeyId() string
- func (x *GenerateUploadSignParamsRespData) GetPolicy() string
- func (x *GenerateUploadSignParamsRespData) GetSignature() string
- func (*GenerateUploadSignParamsRespData) ProtoMessage()
- func (x *GenerateUploadSignParamsRespData) ProtoReflect() protoreflect.Message
- func (x *GenerateUploadSignParamsRespData) Reset()
- func (x *GenerateUploadSignParamsRespData) String() string
- type OssRpcServiceClient
- type OssRpcServiceServer
- type UnimplementedOssRpcServiceServer
- func (UnimplementedOssRpcServiceServer) Callback(context.Context, *CallbackParams) (*CallbackResp, error)
- func (UnimplementedOssRpcServiceServer) CheckUploadResult(context.Context, *CheckUploadResultParams) (*CheckUploadResultResp, error)
- func (UnimplementedOssRpcServiceServer) GenerateUploadSign(context.Context, *GenerateUploadSignParams) (*GenerateUploadSignParamsResp, error)
- type UnsafeOssRpcServiceServer
Constants ¶
const ( OssRpcService_GenerateUploadSign_FullMethodName = "/oss.OssRpcService/GenerateUploadSign" OssRpcService_CheckUploadResult_FullMethodName = "/oss.OssRpcService/CheckUploadResult" OssRpcService_Callback_FullMethodName = "/oss.OssRpcService/Callback" )
Variables ¶
var File_oss_proto protoreflect.FileDescriptor
var OssRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "oss.OssRpcService", HandlerType: (*OssRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateUploadSign", Handler: _OssRpcService_GenerateUploadSign_Handler, }, { MethodName: "CheckUploadResult", Handler: _OssRpcService_CheckUploadResult_Handler, }, { MethodName: "Callback", Handler: _OssRpcService_Callback_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "oss.proto", }
OssRpcService_ServiceDesc is the grpc.ServiceDesc for OssRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOssRpcServiceServer ¶
func RegisterOssRpcServiceServer(s grpc.ServiceRegistrar, srv OssRpcServiceServer)
Types ¶
type CallbackParams ¶
type CallbackParams struct { RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*CallbackParams) Descriptor
deprecated
func (*CallbackParams) Descriptor() ([]byte, []int)
Deprecated: Use CallbackParams.ProtoReflect.Descriptor instead.
func (*CallbackParams) GetPath ¶
func (x *CallbackParams) GetPath() string
func (*CallbackParams) GetRequestID ¶
func (x *CallbackParams) GetRequestID() string
func (*CallbackParams) ProtoMessage ¶
func (*CallbackParams) ProtoMessage()
func (*CallbackParams) ProtoReflect ¶
func (x *CallbackParams) ProtoReflect() protoreflect.Message
func (*CallbackParams) Reset ¶
func (x *CallbackParams) Reset()
func (*CallbackParams) String ¶
func (x *CallbackParams) String() string
type CallbackResp ¶
type CallbackResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *Data `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CallbackResp) Descriptor
deprecated
func (*CallbackResp) Descriptor() ([]byte, []int)
Deprecated: Use CallbackResp.ProtoReflect.Descriptor instead.
func (*CallbackResp) GetCode ¶
func (x *CallbackResp) GetCode() int32
func (*CallbackResp) GetData ¶
func (x *CallbackResp) GetData() *Data
func (*CallbackResp) GetMsg ¶
func (x *CallbackResp) GetMsg() string
func (*CallbackResp) GetPath ¶
func (x *CallbackResp) GetPath() string
func (*CallbackResp) GetRequestID ¶
func (x *CallbackResp) GetRequestID() string
func (*CallbackResp) ProtoMessage ¶
func (*CallbackResp) ProtoMessage()
func (*CallbackResp) ProtoReflect ¶
func (x *CallbackResp) ProtoReflect() protoreflect.Message
func (*CallbackResp) Reset ¶
func (x *CallbackResp) Reset()
func (*CallbackResp) String ¶
func (x *CallbackResp) String() string
type CheckUploadResultParams ¶
type CheckUploadResultParams struct { RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` // contains filtered or unexported fields }
func (*CheckUploadResultParams) Descriptor
deprecated
func (*CheckUploadResultParams) Descriptor() ([]byte, []int)
Deprecated: Use CheckUploadResultParams.ProtoReflect.Descriptor instead.
func (*CheckUploadResultParams) GetRequestID ¶
func (x *CheckUploadResultParams) GetRequestID() string
func (*CheckUploadResultParams) ProtoMessage ¶
func (*CheckUploadResultParams) ProtoMessage()
func (*CheckUploadResultParams) ProtoReflect ¶
func (x *CheckUploadResultParams) ProtoReflect() protoreflect.Message
func (*CheckUploadResultParams) Reset ¶
func (x *CheckUploadResultParams) Reset()
func (*CheckUploadResultParams) String ¶
func (x *CheckUploadResultParams) String() string
type CheckUploadResultResp ¶
type CheckUploadResultResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *Data `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CheckUploadResultResp) Descriptor
deprecated
func (*CheckUploadResultResp) Descriptor() ([]byte, []int)
Deprecated: Use CheckUploadResultResp.ProtoReflect.Descriptor instead.
func (*CheckUploadResultResp) GetCode ¶
func (x *CheckUploadResultResp) GetCode() int32
func (*CheckUploadResultResp) GetData ¶
func (x *CheckUploadResultResp) GetData() *Data
func (*CheckUploadResultResp) GetMsg ¶
func (x *CheckUploadResultResp) GetMsg() string
func (*CheckUploadResultResp) GetPath ¶
func (x *CheckUploadResultResp) GetPath() string
func (*CheckUploadResultResp) GetRequestID ¶
func (x *CheckUploadResultResp) GetRequestID() string
func (*CheckUploadResultResp) ProtoMessage ¶
func (*CheckUploadResultResp) ProtoMessage()
func (*CheckUploadResultResp) ProtoReflect ¶
func (x *CheckUploadResultResp) ProtoReflect() protoreflect.Message
func (*CheckUploadResultResp) Reset ¶
func (x *CheckUploadResultResp) Reset()
func (*CheckUploadResultResp) String ¶
func (x *CheckUploadResultResp) String() string
type Data ¶
type Data struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type GenerateUploadSignParams ¶
type GenerateUploadSignParams struct { AccessKeyId string `protobuf:"bytes,1,opt,name=AccessKeyId,proto3" json:"AccessKeyId,omitempty"` AccessKeySecret string `protobuf:"bytes,2,opt,name=AccessKeySecret,proto3" json:"AccessKeySecret,omitempty"` Endpoint string `protobuf:"bytes,3,opt,name=Endpoint,proto3" json:"Endpoint,omitempty"` Domain string `protobuf:"bytes,4,opt,name=Domain,proto3" json:"Domain,omitempty"` Prefix string `protobuf:"bytes,5,opt,name=Prefix,proto3" json:"Prefix,omitempty"` Filename string `protobuf:"bytes,6,opt,name=Filename,proto3" json:"Filename,omitempty"` // 要上传的文件名 UploadDir string `protobuf:"bytes,7,opt,name=UploadDir,proto3" json:"UploadDir,omitempty"` // 上传到哪个文件夹 IsCallBack bool `protobuf:"varint,8,opt,name=IsCallBack,proto3" json:"IsCallBack,omitempty"` // 是否回调 CallBack string `protobuf:"bytes,9,opt,name=CallBack,proto3" json:"CallBack,omitempty"` // 回调地址 // contains filtered or unexported fields }
func (*GenerateUploadSignParams) Descriptor
deprecated
func (*GenerateUploadSignParams) Descriptor() ([]byte, []int)
Deprecated: Use GenerateUploadSignParams.ProtoReflect.Descriptor instead.
func (*GenerateUploadSignParams) GetAccessKeyId ¶
func (x *GenerateUploadSignParams) GetAccessKeyId() string
func (*GenerateUploadSignParams) GetAccessKeySecret ¶
func (x *GenerateUploadSignParams) GetAccessKeySecret() string
func (*GenerateUploadSignParams) GetCallBack ¶
func (x *GenerateUploadSignParams) GetCallBack() string
func (*GenerateUploadSignParams) GetDomain ¶
func (x *GenerateUploadSignParams) GetDomain() string
func (*GenerateUploadSignParams) GetEndpoint ¶
func (x *GenerateUploadSignParams) GetEndpoint() string
func (*GenerateUploadSignParams) GetFilename ¶
func (x *GenerateUploadSignParams) GetFilename() string
func (*GenerateUploadSignParams) GetIsCallBack ¶
func (x *GenerateUploadSignParams) GetIsCallBack() bool
func (*GenerateUploadSignParams) GetPrefix ¶
func (x *GenerateUploadSignParams) GetPrefix() string
func (*GenerateUploadSignParams) GetUploadDir ¶
func (x *GenerateUploadSignParams) GetUploadDir() string
func (*GenerateUploadSignParams) ProtoMessage ¶
func (*GenerateUploadSignParams) ProtoMessage()
func (*GenerateUploadSignParams) ProtoReflect ¶
func (x *GenerateUploadSignParams) ProtoReflect() protoreflect.Message
func (*GenerateUploadSignParams) Reset ¶
func (x *GenerateUploadSignParams) Reset()
func (*GenerateUploadSignParams) String ¶
func (x *GenerateUploadSignParams) String() string
type GenerateUploadSignParamsResp ¶
type GenerateUploadSignParamsResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *GenerateUploadSignParamsRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GenerateUploadSignParamsResp) Descriptor
deprecated
func (*GenerateUploadSignParamsResp) Descriptor() ([]byte, []int)
Deprecated: Use GenerateUploadSignParamsResp.ProtoReflect.Descriptor instead.
func (*GenerateUploadSignParamsResp) GetCode ¶
func (x *GenerateUploadSignParamsResp) GetCode() int32
func (*GenerateUploadSignParamsResp) GetData ¶
func (x *GenerateUploadSignParamsResp) GetData() *GenerateUploadSignParamsRespData
func (*GenerateUploadSignParamsResp) GetMsg ¶
func (x *GenerateUploadSignParamsResp) GetMsg() string
func (*GenerateUploadSignParamsResp) GetPath ¶
func (x *GenerateUploadSignParamsResp) GetPath() string
func (*GenerateUploadSignParamsResp) GetRequestID ¶
func (x *GenerateUploadSignParamsResp) GetRequestID() string
func (*GenerateUploadSignParamsResp) ProtoMessage ¶
func (*GenerateUploadSignParamsResp) ProtoMessage()
func (*GenerateUploadSignParamsResp) ProtoReflect ¶
func (x *GenerateUploadSignParamsResp) ProtoReflect() protoreflect.Message
func (*GenerateUploadSignParamsResp) Reset ¶
func (x *GenerateUploadSignParamsResp) Reset()
func (*GenerateUploadSignParamsResp) String ¶
func (x *GenerateUploadSignParamsResp) String() string
type GenerateUploadSignParamsRespData ¶
type GenerateUploadSignParamsRespData struct { Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` OSSAccessKeyId string `protobuf:"bytes,2,opt,name=OSSAccessKeyId,proto3" json:"OSSAccessKeyId,omitempty"` Policy string `protobuf:"bytes,3,opt,name=Policy,proto3" json:"Policy,omitempty"` Signature string `protobuf:"bytes,4,opt,name=Signature,proto3" json:"Signature,omitempty"` Callback string `protobuf:"bytes,5,opt,name=Callback,proto3" json:"Callback,omitempty"` IsCallback bool `protobuf:"varint,6,opt,name=IsCallback,proto3" json:"IsCallback,omitempty"` Host string `protobuf:"bytes,7,opt,name=Host,proto3" json:"Host,omitempty"` Domain string `protobuf:"bytes,8,opt,name=Domain,proto3" json:"Domain,omitempty"` // contains filtered or unexported fields }
func (*GenerateUploadSignParamsRespData) Descriptor
deprecated
func (*GenerateUploadSignParamsRespData) Descriptor() ([]byte, []int)
Deprecated: Use GenerateUploadSignParamsRespData.ProtoReflect.Descriptor instead.
func (*GenerateUploadSignParamsRespData) GetCallback ¶
func (x *GenerateUploadSignParamsRespData) GetCallback() string
func (*GenerateUploadSignParamsRespData) GetDomain ¶
func (x *GenerateUploadSignParamsRespData) GetDomain() string
func (*GenerateUploadSignParamsRespData) GetHost ¶
func (x *GenerateUploadSignParamsRespData) GetHost() string
func (*GenerateUploadSignParamsRespData) GetIsCallback ¶
func (x *GenerateUploadSignParamsRespData) GetIsCallback() bool
func (*GenerateUploadSignParamsRespData) GetKey ¶
func (x *GenerateUploadSignParamsRespData) GetKey() string
func (*GenerateUploadSignParamsRespData) GetOSSAccessKeyId ¶
func (x *GenerateUploadSignParamsRespData) GetOSSAccessKeyId() string
func (*GenerateUploadSignParamsRespData) GetPolicy ¶
func (x *GenerateUploadSignParamsRespData) GetPolicy() string
func (*GenerateUploadSignParamsRespData) GetSignature ¶
func (x *GenerateUploadSignParamsRespData) GetSignature() string
func (*GenerateUploadSignParamsRespData) ProtoMessage ¶
func (*GenerateUploadSignParamsRespData) ProtoMessage()
func (*GenerateUploadSignParamsRespData) ProtoReflect ¶
func (x *GenerateUploadSignParamsRespData) ProtoReflect() protoreflect.Message
func (*GenerateUploadSignParamsRespData) Reset ¶
func (x *GenerateUploadSignParamsRespData) Reset()
func (*GenerateUploadSignParamsRespData) String ¶
func (x *GenerateUploadSignParamsRespData) String() string
type OssRpcServiceClient ¶
type OssRpcServiceClient interface { GenerateUploadSign(ctx context.Context, in *GenerateUploadSignParams, opts ...grpc.CallOption) (*GenerateUploadSignParamsResp, error) CheckUploadResult(ctx context.Context, in *CheckUploadResultParams, opts ...grpc.CallOption) (*CheckUploadResultResp, error) Callback(ctx context.Context, in *CallbackParams, opts ...grpc.CallOption) (*CallbackResp, error) }
OssRpcServiceClient is the client API for OssRpcService 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 NewOssRpcServiceClient ¶
func NewOssRpcServiceClient(cc grpc.ClientConnInterface) OssRpcServiceClient
type OssRpcServiceServer ¶
type OssRpcServiceServer interface { GenerateUploadSign(context.Context, *GenerateUploadSignParams) (*GenerateUploadSignParamsResp, error) CheckUploadResult(context.Context, *CheckUploadResultParams) (*CheckUploadResultResp, error) Callback(context.Context, *CallbackParams) (*CallbackResp, error) // contains filtered or unexported methods }
OssRpcServiceServer is the server API for OssRpcService service. All implementations must embed UnimplementedOssRpcServiceServer for forward compatibility
type UnimplementedOssRpcServiceServer ¶
type UnimplementedOssRpcServiceServer struct { }
UnimplementedOssRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOssRpcServiceServer) Callback ¶
func (UnimplementedOssRpcServiceServer) Callback(context.Context, *CallbackParams) (*CallbackResp, error)
func (UnimplementedOssRpcServiceServer) CheckUploadResult ¶
func (UnimplementedOssRpcServiceServer) CheckUploadResult(context.Context, *CheckUploadResultParams) (*CheckUploadResultResp, error)
func (UnimplementedOssRpcServiceServer) GenerateUploadSign ¶
func (UnimplementedOssRpcServiceServer) GenerateUploadSign(context.Context, *GenerateUploadSignParams) (*GenerateUploadSignParamsResp, error)
type UnsafeOssRpcServiceServer ¶
type UnsafeOssRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOssRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OssRpcServiceServer will types in compilation errors.