Documentation
¶
Index ¶
- Variables
- func RegisterWebssServer(s grpc.ServiceRegistrar, srv WebssServer)
- type FName
- func (*FName) Descriptor() ([]byte, []int)deprecated
- func (x *FName) GetAdd() string
- func (x *FName) GetName() string
- func (x *FName) GetRes() string
- func (x *FName) GetSuffix() string
- func (*FName) ProtoMessage()
- func (x *FName) ProtoReflect() protoreflect.Message
- func (x *FName) Reset()
- func (x *FName) String() string
- type FNames
- type File
- type Files
- type ID
- type Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetEtag() string
- func (x *Info) GetLast() string
- func (x *Info) GetName() string
- func (x *Info) GetSize() int64
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type Life
- type Lifes
- type NSuffix
- type Sign
- type SignUrl
- type SignUrls
- type Signs
- type Tag
- type UnimplementedWebssServer
- func (UnimplementedWebssServer) DelBucketLife(context.Context, *Lifes) (*WEmpty, error)
- func (UnimplementedWebssServer) DeleteFiles(context.Context, *Files) (*WEmpty, error)
- func (UnimplementedWebssServer) GetFileInfo(context.Context, *File) (*Info, error)
- func (UnimplementedWebssServer) OriginalUrl(context.Context, *FName) (*SignUrl, error)
- func (UnimplementedWebssServer) OriginalUrls(context.Context, *FNames) (*SignUrls, error)
- func (UnimplementedWebssServer) SetBucketLife(context.Context, *Life) (*WEmpty, error)
- func (UnimplementedWebssServer) SetFileLife(context.Context, *Tag) (*WEmpty, error)
- func (UnimplementedWebssServer) SignFileUrl(context.Context, *Sign) (*SignUrl, error)
- func (UnimplementedWebssServer) SignFileUrls(context.Context, *Signs) (*SignUrls, error)
- type UnsafeWebssServer
- type WEmpty
- type WebssClient
- type WebssServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_webss_proto protoreflect.FileDescriptor
var Webss_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Webss", HandlerType: (*WebssServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DeleteFiles", Handler: _Webss_DeleteFiles_Handler, }, { MethodName: "SetBucketLife", Handler: _Webss_SetBucketLife_Handler, }, { MethodName: "DelBucketLife", Handler: _Webss_DelBucketLife_Handler, }, { MethodName: "SetFileLife", Handler: _Webss_SetFileLife_Handler, }, { MethodName: "SignFileUrl", Handler: _Webss_SignFileUrl_Handler, }, { MethodName: "SignFileUrls", Handler: _Webss_SignFileUrls_Handler, }, { MethodName: "OriginalUrl", Handler: _Webss_OriginalUrl_Handler, }, { MethodName: "OriginalUrls", Handler: _Webss_OriginalUrls_Handler, }, { MethodName: "GetFileInfo", Handler: _Webss_GetFileInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/webss.proto", }
Webss_ServiceDesc is the grpc.ServiceDesc for Webss service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebssServer ¶
func RegisterWebssServer(s grpc.ServiceRegistrar, srv WebssServer)
Types ¶
type FName ¶
type FName struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` Add string `protobuf:"bytes,2,opt,name=add,proto3" json:"add,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Suffix string `protobuf:"bytes,4,opt,name=suffix,proto3" json:"suffix,omitempty"` // contains filtered or unexported fields }
Original uploaded file name
func (*FName) Descriptor
deprecated
func (*FName) ProtoMessage ¶
func (*FName) ProtoMessage()
func (*FName) ProtoReflect ¶
func (x *FName) ProtoReflect() protoreflect.Message
type FNames ¶
type FNames struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` Add string `protobuf:"bytes,2,opt,name=add,proto3" json:"add,omitempty"` Files []*NSuffix `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
Multiple original file names
func (*FNames) Descriptor
deprecated
func (*FNames) ProtoMessage ¶
func (*FNames) ProtoMessage()
func (*FNames) ProtoReflect ¶
func (x *FNames) ProtoReflect() protoreflect.Message
type File ¶
type File struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Object file path releative bucket
func (*File) Descriptor
deprecated
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type Files ¶
type Files struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Files []string `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
Multiple object files of indicate bucket
func (*Files) Descriptor
deprecated
func (*Files) ProtoMessage ¶
func (*Files) ProtoMessage()
func (*Files) ProtoReflect ¶
func (x *Files) ProtoReflect() protoreflect.Message
type ID ¶
type ID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
Unique id to indicate lifecycle
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type Info ¶
type Info struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` Last string `protobuf:"bytes,3,opt,name=last,proto3" json:"last,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
Object file infos
func (*Info) Descriptor
deprecated
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type Life ¶
type Life struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Lifecycle status
func (*Life) Descriptor
deprecated
func (*Life) ProtoMessage ¶
func (*Life) ProtoMessage()
func (*Life) ProtoReflect ¶
func (x *Life) ProtoReflect() protoreflect.Message
type Lifes ¶
type Lifes struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // contains filtered or unexported fields }
Lifesycle ids for delete
func (*Lifes) Descriptor
deprecated
func (*Lifes) ProtoMessage ¶
func (*Lifes) ProtoMessage()
func (*Lifes) ProtoReflect ¶
func (x *Lifes) ProtoReflect() protoreflect.Message
type NSuffix ¶
type NSuffix struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Suffix string `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"` // contains filtered or unexported fields }
Original uploaded file name and suffix
func (*NSuffix) Descriptor
deprecated
func (*NSuffix) ProtoMessage ¶
func (*NSuffix) ProtoMessage()
func (*NSuffix) ProtoReflect ¶
func (x *NSuffix) ProtoReflect() protoreflect.Message
type Sign ¶
type Sign struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` Add string `protobuf:"bytes,2,opt,name=add,proto3" json:"add,omitempty"` Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3" json:"suffix,omitempty"` // contains filtered or unexported fields }
Sign datas to get upload sign url
func (*Sign) Descriptor
deprecated
func (*Sign) ProtoMessage ¶
func (*Sign) ProtoMessage()
func (*Sign) ProtoReflect ¶
func (x *Sign) ProtoReflect() protoreflect.Message
type SignUrl ¶
type SignUrl struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
Sign url to upload
func (*SignUrl) Descriptor
deprecated
func (*SignUrl) ProtoMessage ¶
func (*SignUrl) ProtoMessage()
func (*SignUrl) ProtoReflect ¶
func (x *SignUrl) ProtoReflect() protoreflect.Message
type SignUrls ¶
type SignUrls struct { Urls []*SignUrl `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` // contains filtered or unexported fields }
Multiple sign urls to upload
func (*SignUrls) Descriptor
deprecated
func (*SignUrls) ProtoMessage ¶
func (*SignUrls) ProtoMessage()
func (*SignUrls) ProtoReflect ¶
func (x *SignUrls) ProtoReflect() protoreflect.Message
type Signs ¶
type Signs struct { Res string `protobuf:"bytes,1,opt,name=res,proto3" json:"res,omitempty"` Add string `protobuf:"bytes,2,opt,name=add,proto3" json:"add,omitempty"` Suffixes []string `protobuf:"bytes,3,rep,name=suffixes,proto3" json:"suffixes,omitempty"` // contains filtered or unexported fields }
Multiple sign urls to upload
func (*Signs) Descriptor
deprecated
func (*Signs) GetSuffixes ¶
func (*Signs) ProtoMessage ¶
func (*Signs) ProtoMessage()
func (*Signs) ProtoReflect ¶
func (x *Signs) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Paths []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Object file tag infos
func (*Tag) Descriptor
deprecated
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type UnimplementedWebssServer ¶
type UnimplementedWebssServer struct { }
UnimplementedWebssServer must be embedded to have forward compatible implementations.
func (UnimplementedWebssServer) DelBucketLife ¶
func (UnimplementedWebssServer) DeleteFiles ¶
func (UnimplementedWebssServer) GetFileInfo ¶
func (UnimplementedWebssServer) OriginalUrl ¶
func (UnimplementedWebssServer) OriginalUrls ¶
func (UnimplementedWebssServer) SetBucketLife ¶
func (UnimplementedWebssServer) SetFileLife ¶
func (UnimplementedWebssServer) SignFileUrl ¶
func (UnimplementedWebssServer) SignFileUrls ¶
type UnsafeWebssServer ¶
type UnsafeWebssServer interface {
// contains filtered or unexported methods
}
UnsafeWebssServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebssServer will result in compilation errors.
type WEmpty ¶
type WEmpty struct {
// contains filtered or unexported fields
}
Empty response for Webss
func (*WEmpty) Descriptor
deprecated
func (*WEmpty) ProtoMessage ¶
func (*WEmpty) ProtoMessage()
func (*WEmpty) ProtoReflect ¶
func (x *WEmpty) ProtoReflect() protoreflect.Message
type WebssClient ¶
type WebssClient interface { DeleteFiles(ctx context.Context, in *Files, opts ...grpc.CallOption) (*WEmpty, error) SetBucketLife(ctx context.Context, in *Life, opts ...grpc.CallOption) (*WEmpty, error) DelBucketLife(ctx context.Context, in *Lifes, opts ...grpc.CallOption) (*WEmpty, error) SetFileLife(ctx context.Context, in *Tag, opts ...grpc.CallOption) (*WEmpty, error) SignFileUrl(ctx context.Context, in *Sign, opts ...grpc.CallOption) (*SignUrl, error) SignFileUrls(ctx context.Context, in *Signs, opts ...grpc.CallOption) (*SignUrls, error) OriginalUrl(ctx context.Context, in *FName, opts ...grpc.CallOption) (*SignUrl, error) OriginalUrls(ctx context.Context, in *FNames, opts ...grpc.CallOption) (*SignUrls, error) GetFileInfo(ctx context.Context, in *File, opts ...grpc.CallOption) (*Info, error) }
WebssClient is the client API for Webss 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 NewWebssClient ¶
func NewWebssClient(cc grpc.ClientConnInterface) WebssClient
type WebssServer ¶
type WebssServer interface { DeleteFiles(context.Context, *Files) (*WEmpty, error) SetBucketLife(context.Context, *Life) (*WEmpty, error) DelBucketLife(context.Context, *Lifes) (*WEmpty, error) SetFileLife(context.Context, *Tag) (*WEmpty, error) SignFileUrl(context.Context, *Sign) (*SignUrl, error) SignFileUrls(context.Context, *Signs) (*SignUrls, error) OriginalUrl(context.Context, *FName) (*SignUrl, error) OriginalUrls(context.Context, *FNames) (*SignUrls, error) GetFileInfo(context.Context, *File) (*Info, error) // contains filtered or unexported methods }
WebssServer is the server API for Webss service. All implementations must embed UnimplementedWebssServer for forward compatibility