proto

package
v0.0.0-...-22a6110 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use FName.ProtoReflect.Descriptor instead.

func (*FName) GetAdd

func (x *FName) GetAdd() string

func (*FName) GetName

func (x *FName) GetName() string

func (*FName) GetRes

func (x *FName) GetRes() string

func (*FName) GetSuffix

func (x *FName) GetSuffix() string

func (*FName) ProtoMessage

func (*FName) ProtoMessage()

func (*FName) ProtoReflect

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

func (*FName) Reset

func (x *FName) Reset()

func (*FName) String

func (x *FName) String() string

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

Deprecated: Use FNames.ProtoReflect.Descriptor instead.

func (*FNames) GetAdd

func (x *FNames) GetAdd() string

func (*FNames) GetFiles

func (x *FNames) GetFiles() []*NSuffix

func (*FNames) GetRes

func (x *FNames) GetRes() string

func (*FNames) ProtoMessage

func (*FNames) ProtoMessage()

func (*FNames) ProtoReflect

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

func (*FNames) Reset

func (x *FNames) Reset()

func (*FNames) String

func (x *FNames) String() string

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

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

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

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

Deprecated: Use Files.ProtoReflect.Descriptor instead.

func (*Files) GetBucket

func (x *Files) GetBucket() string

func (*Files) GetFiles

func (x *Files) GetFiles() []string

func (*Files) ProtoMessage

func (*Files) ProtoMessage()

func (*Files) ProtoReflect

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

func (*Files) Reset

func (x *Files) Reset()

func (*Files) String

func (x *Files) String() string

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetId

func (x *ID) GetId() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

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

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetEtag

func (x *Info) GetEtag() string

func (*Info) GetLast

func (x *Info) GetLast() string

func (*Info) GetName

func (x *Info) GetName() string

func (*Info) GetSize

func (x *Info) GetSize() int64

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

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

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

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

Deprecated: Use Life.ProtoReflect.Descriptor instead.

func (*Life) GetBucket

func (x *Life) GetBucket() string

func (*Life) GetId

func (x *Life) GetId() string

func (*Life) GetStatus

func (x *Life) GetStatus() string

func (*Life) ProtoMessage

func (*Life) ProtoMessage()

func (*Life) ProtoReflect

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

func (*Life) Reset

func (x *Life) Reset()

func (*Life) String

func (x *Life) String() string

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

Deprecated: Use Lifes.ProtoReflect.Descriptor instead.

func (*Lifes) GetBucket

func (x *Lifes) GetBucket() string

func (*Lifes) GetIds

func (x *Lifes) GetIds() []string

func (*Lifes) ProtoMessage

func (*Lifes) ProtoMessage()

func (*Lifes) ProtoReflect

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

func (*Lifes) Reset

func (x *Lifes) Reset()

func (*Lifes) String

func (x *Lifes) String() string

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

Deprecated: Use NSuffix.ProtoReflect.Descriptor instead.

func (*NSuffix) GetName

func (x *NSuffix) GetName() string

func (*NSuffix) GetSuffix

func (x *NSuffix) GetSuffix() string

func (*NSuffix) ProtoMessage

func (*NSuffix) ProtoMessage()

func (*NSuffix) ProtoReflect

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

func (*NSuffix) Reset

func (x *NSuffix) Reset()

func (*NSuffix) String

func (x *NSuffix) String() string

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

Deprecated: Use Sign.ProtoReflect.Descriptor instead.

func (*Sign) GetAdd

func (x *Sign) GetAdd() string

func (*Sign) GetRes

func (x *Sign) GetRes() string

func (*Sign) GetSuffix

func (x *Sign) GetSuffix() string

func (*Sign) ProtoMessage

func (*Sign) ProtoMessage()

func (*Sign) ProtoReflect

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

func (*Sign) Reset

func (x *Sign) Reset()

func (*Sign) String

func (x *Sign) String() string

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

Deprecated: Use SignUrl.ProtoReflect.Descriptor instead.

func (*SignUrl) GetPath

func (x *SignUrl) GetPath() string

func (*SignUrl) GetUrl

func (x *SignUrl) GetUrl() string

func (*SignUrl) ProtoMessage

func (*SignUrl) ProtoMessage()

func (*SignUrl) ProtoReflect

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

func (*SignUrl) Reset

func (x *SignUrl) Reset()

func (*SignUrl) String

func (x *SignUrl) String() string

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

Deprecated: Use SignUrls.ProtoReflect.Descriptor instead.

func (*SignUrls) GetUrls

func (x *SignUrls) GetUrls() []*SignUrl

func (*SignUrls) ProtoMessage

func (*SignUrls) ProtoMessage()

func (*SignUrls) ProtoReflect

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

func (*SignUrls) Reset

func (x *SignUrls) Reset()

func (*SignUrls) String

func (x *SignUrls) String() string

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

Deprecated: Use Signs.ProtoReflect.Descriptor instead.

func (*Signs) GetAdd

func (x *Signs) GetAdd() string

func (*Signs) GetRes

func (x *Signs) GetRes() string

func (*Signs) GetSuffixes

func (x *Signs) GetSuffixes() []string

func (*Signs) ProtoMessage

func (*Signs) ProtoMessage()

func (*Signs) ProtoReflect

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

func (*Signs) Reset

func (x *Signs) Reset()

func (*Signs) String

func (x *Signs) String() string

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetBucket

func (x *Tag) GetBucket() string

func (*Tag) GetPaths

func (x *Tag) GetPaths() []string

func (*Tag) GetStatus

func (x *Tag) GetStatus() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

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

Deprecated: Use WEmpty.ProtoReflect.Descriptor instead.

func (*WEmpty) ProtoMessage

func (*WEmpty) ProtoMessage()

func (*WEmpty) ProtoReflect

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

func (*WEmpty) Reset

func (x *WEmpty) Reset()

func (*WEmpty) String

func (x *WEmpty) String() string

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

Jump to

Keyboard shortcuts

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