pb

package
v0.0.0-...-d345bf7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Filecenter_FileUpload_FullMethodName     = "/pb.filecenter/FileUpload"
	Filecenter_FileDownload_FullMethodName   = "/pb.filecenter/FileDownload"
	Filecenter_FileList_FullMethodName       = "/pb.filecenter/FileList"
	Filecenter_FileNameUpdate_FullMethodName = "/pb.filecenter/FileNameUpdate"
	Filecenter_FileCreate_FullMethodName     = "/pb.filecenter/FileCreate"
	Filecenter_FileDeletion_FullMethodName   = "/pb.filecenter/FileDeletion"
	Filecenter_FileMove_FullMethodName       = "/pb.filecenter/FileMove"
	Filecenter_FileShare_FullMethodName      = "/pb.filecenter/FileShare"
	Filecenter_FileShareSave_FullMethodName  = "/pb.filecenter/FileShareSave"
	Filecenter_FileDetails_FullMethodName    = "/pb.filecenter/FileDetails"
	Filecenter_UploadPicture_FullMethodName  = "/pb.filecenter/UploadPicture"
)

Variables

View Source
var File_filecenter_proto protoreflect.FileDescriptor
View Source
var Filecenter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.filecenter",
	HandlerType: (*FilecenterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FileUpload",
			Handler:    _Filecenter_FileUpload_Handler,
		},
		{
			MethodName: "FileDownload",
			Handler:    _Filecenter_FileDownload_Handler,
		},
		{
			MethodName: "FileList",
			Handler:    _Filecenter_FileList_Handler,
		},
		{
			MethodName: "FileNameUpdate",
			Handler:    _Filecenter_FileNameUpdate_Handler,
		},
		{
			MethodName: "FileCreate",
			Handler:    _Filecenter_FileCreate_Handler,
		},
		{
			MethodName: "FileDeletion",
			Handler:    _Filecenter_FileDeletion_Handler,
		},
		{
			MethodName: "FileMove",
			Handler:    _Filecenter_FileMove_Handler,
		},
		{
			MethodName: "FileShare",
			Handler:    _Filecenter_FileShare_Handler,
		},
		{
			MethodName: "FileShareSave",
			Handler:    _Filecenter_FileShareSave_Handler,
		},
		{
			MethodName: "FileDetails",
			Handler:    _Filecenter_FileDetails_Handler,
		},
		{
			MethodName: "UploadPicture",
			Handler:    _Filecenter_UploadPicture_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "filecenter.proto",
}

Filecenter_ServiceDesc is the grpc.ServiceDesc for Filecenter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFilecenterServer

func RegisterFilecenterServer(s grpc.ServiceRegistrar, srv FilecenterServer)

Types

type File

type File struct {
	Id        int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	CreatedAt int64  `protobuf:"varint,2,opt,name=Created_at,json=CreatedAt,proto3" json:"Created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,3,opt,name=Updated_at,json=UpdatedAt,proto3" json:"Updated_at,omitempty"`
	DeletedAt int64  `protobuf:"varint,4,opt,name=Deleted_at,json=DeletedAt,proto3" json:"Deleted_at,omitempty"`
	Name      string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"`
	Type      string `protobuf:"bytes,6,opt,name=Type,proto3" json:"Type,omitempty"`
	Path      string `protobuf:"bytes,7,opt,name=Path,proto3" json:"Path,omitempty"`
	Size      string `protobuf:"bytes,8,opt,name=Size,proto3" json:"Size,omitempty"`
	ShareLink string `protobuf:"bytes,9,opt,name=ShareLink,proto3" json:"ShareLink,omitempty"`
	ParentId  int64  `protobuf:"varint,10,opt,name=ParentId,proto3" json:"ParentId,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

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

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetCreatedAt

func (x *File) GetCreatedAt() int64

func (*File) GetDeletedAt

func (x *File) GetDeletedAt() int64

func (*File) GetId

func (x *File) GetId() int64

func (*File) GetName

func (x *File) GetName() string

func (*File) GetParentId

func (x *File) GetParentId() int64

func (*File) GetPath

func (x *File) GetPath() string
func (x *File) GetShareLink() string

func (*File) GetSize

func (x *File) GetSize() string

func (*File) GetType

func (x *File) GetType() string

func (*File) GetUpdatedAt

func (x *File) GetUpdatedAt() int64

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 FileCreateReq

type FileCreateReq struct {
	UserId   int64  `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	ParentId int64  `protobuf:"varint,2,opt,name=ParentId,proto3" json:"ParentId,omitempty"`
	Name     string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileCreateReq) Descriptor deprecated

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

Deprecated: Use FileCreateReq.ProtoReflect.Descriptor instead.

func (*FileCreateReq) GetName

func (x *FileCreateReq) GetName() string

func (*FileCreateReq) GetParentId

func (x *FileCreateReq) GetParentId() int64

func (*FileCreateReq) GetUserId

func (x *FileCreateReq) GetUserId() int64

func (*FileCreateReq) ProtoMessage

func (*FileCreateReq) ProtoMessage()

func (*FileCreateReq) ProtoReflect

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

func (*FileCreateReq) Reset

func (x *FileCreateReq) Reset()

func (*FileCreateReq) String

func (x *FileCreateReq) String() string

type FileCreateResp

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

func (*FileCreateResp) Descriptor deprecated

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

Deprecated: Use FileCreateResp.ProtoReflect.Descriptor instead.

func (*FileCreateResp) GetError

func (x *FileCreateResp) GetError() string

func (*FileCreateResp) ProtoMessage

func (*FileCreateResp) ProtoMessage()

func (*FileCreateResp) ProtoReflect

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

func (*FileCreateResp) Reset

func (x *FileCreateResp) Reset()

func (*FileCreateResp) String

func (x *FileCreateResp) String() string

type FileDeletionReq

type FileDeletionReq struct {
	List []int64 `protobuf:"varint,1,rep,packed,name=List,proto3" json:"List,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDeletionReq) Descriptor deprecated

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

Deprecated: Use FileDeletionReq.ProtoReflect.Descriptor instead.

func (*FileDeletionReq) GetList

func (x *FileDeletionReq) GetList() []int64

func (*FileDeletionReq) ProtoMessage

func (*FileDeletionReq) ProtoMessage()

func (*FileDeletionReq) ProtoReflect

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

func (*FileDeletionReq) Reset

func (x *FileDeletionReq) Reset()

func (*FileDeletionReq) String

func (x *FileDeletionReq) String() string

type FileDeletionResp

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

func (*FileDeletionResp) Descriptor deprecated

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

Deprecated: Use FileDeletionResp.ProtoReflect.Descriptor instead.

func (*FileDeletionResp) GetError

func (x *FileDeletionResp) GetError() string

func (*FileDeletionResp) ProtoMessage

func (*FileDeletionResp) ProtoMessage()

func (*FileDeletionResp) ProtoReflect

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

func (*FileDeletionResp) Reset

func (x *FileDeletionResp) Reset()

func (*FileDeletionResp) String

func (x *FileDeletionResp) String() string

type FileDetailsReq

type FileDetailsReq struct {
	Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDetailsReq) Descriptor deprecated

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

Deprecated: Use FileDetailsReq.ProtoReflect.Descriptor instead.

func (*FileDetailsReq) GetId

func (x *FileDetailsReq) GetId() int64

func (*FileDetailsReq) ProtoMessage

func (*FileDetailsReq) ProtoMessage()

func (*FileDetailsReq) ProtoReflect

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

func (*FileDetailsReq) Reset

func (x *FileDetailsReq) Reset()

func (*FileDetailsReq) String

func (x *FileDetailsReq) String() string

type FileDetailsResp

type FileDetailsResp struct {
	Name  string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Type  string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Path  string `protobuf:"bytes,3,opt,name=Path,proto3" json:"Path,omitempty"`
	Size  string `protobuf:"bytes,4,opt,name=Size,proto3" json:"Size,omitempty"`
	Time  string `protobuf:"bytes,5,opt,name=Time,proto3" json:"Time,omitempty"`
	Error string `protobuf:"bytes,6,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDetailsResp) Descriptor deprecated

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

Deprecated: Use FileDetailsResp.ProtoReflect.Descriptor instead.

func (*FileDetailsResp) GetError

func (x *FileDetailsResp) GetError() string

func (*FileDetailsResp) GetName

func (x *FileDetailsResp) GetName() string

func (*FileDetailsResp) GetPath

func (x *FileDetailsResp) GetPath() string

func (*FileDetailsResp) GetSize

func (x *FileDetailsResp) GetSize() string

func (*FileDetailsResp) GetTime

func (x *FileDetailsResp) GetTime() string

func (*FileDetailsResp) GetType

func (x *FileDetailsResp) GetType() string

func (*FileDetailsResp) ProtoMessage

func (*FileDetailsResp) ProtoMessage()

func (*FileDetailsResp) ProtoReflect

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

func (*FileDetailsResp) Reset

func (x *FileDetailsResp) Reset()

func (*FileDetailsResp) String

func (x *FileDetailsResp) String() string

type FileDownloadReq

type FileDownloadReq struct {
	Id   int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDownloadReq) Descriptor deprecated

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

Deprecated: Use FileDownloadReq.ProtoReflect.Descriptor instead.

func (*FileDownloadReq) GetId

func (x *FileDownloadReq) GetId() int64

func (*FileDownloadReq) GetName

func (x *FileDownloadReq) GetName() string

func (*FileDownloadReq) GetType

func (x *FileDownloadReq) GetType() string

func (*FileDownloadReq) ProtoMessage

func (*FileDownloadReq) ProtoMessage()

func (*FileDownloadReq) ProtoReflect

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

func (*FileDownloadReq) Reset

func (x *FileDownloadReq) Reset()

func (*FileDownloadReq) String

func (x *FileDownloadReq) String() string

type FileDownloadResp

type FileDownloadResp struct {
	Flag  string `protobuf:"bytes,1,opt,name=flag,proto3" json:"flag,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*FileDownloadResp) Descriptor deprecated

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

Deprecated: Use FileDownloadResp.ProtoReflect.Descriptor instead.

func (*FileDownloadResp) GetError

func (x *FileDownloadResp) GetError() string

func (*FileDownloadResp) GetFlag

func (x *FileDownloadResp) GetFlag() string

func (*FileDownloadResp) ProtoMessage

func (*FileDownloadResp) ProtoMessage()

func (*FileDownloadResp) ProtoReflect

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

func (*FileDownloadResp) Reset

func (x *FileDownloadResp) Reset()

func (*FileDownloadResp) String

func (x *FileDownloadResp) String() string

type FileIn

type FileIn struct {
	Name      string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Type      string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Path      string `protobuf:"bytes,3,opt,name=Path,proto3" json:"Path,omitempty"`
	Size      string `protobuf:"bytes,4,opt,name=Size,proto3" json:"Size,omitempty"`
	ShareLink string `protobuf:"bytes,5,opt,name=ShareLink,proto3" json:"ShareLink,omitempty"`
	UpdatedAt int64  `protobuf:"varint,6,opt,name=Updated_at,json=UpdatedAt,proto3" json:"Updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*FileIn) Descriptor deprecated

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

Deprecated: Use FileIn.ProtoReflect.Descriptor instead.

func (*FileIn) GetName

func (x *FileIn) GetName() string

func (*FileIn) GetPath

func (x *FileIn) GetPath() string
func (x *FileIn) GetShareLink() string

func (*FileIn) GetSize

func (x *FileIn) GetSize() string

func (*FileIn) GetType

func (x *FileIn) GetType() string

func (*FileIn) GetUpdatedAt

func (x *FileIn) GetUpdatedAt() int64

func (*FileIn) ProtoMessage

func (*FileIn) ProtoMessage()

func (*FileIn) ProtoReflect

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

func (*FileIn) Reset

func (x *FileIn) Reset()

func (*FileIn) String

func (x *FileIn) String() string

type FileListReq

type FileListReq struct {
	Id    int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Page  int64  `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"`
	Size  int64  `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
	Field string `protobuf:"bytes,4,opt,name=Field,proto3" json:"Field,omitempty"`
	ASC   bool   `protobuf:"varint,5,opt,name=ASC,proto3" json:"ASC,omitempty"`
	// contains filtered or unexported fields
}

func (*FileListReq) Descriptor deprecated

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

Deprecated: Use FileListReq.ProtoReflect.Descriptor instead.

func (*FileListReq) GetASC

func (x *FileListReq) GetASC() bool

func (*FileListReq) GetField

func (x *FileListReq) GetField() string

func (*FileListReq) GetId

func (x *FileListReq) GetId() int64

func (*FileListReq) GetPage

func (x *FileListReq) GetPage() int64

func (*FileListReq) GetSize

func (x *FileListReq) GetSize() int64

func (*FileListReq) ProtoMessage

func (*FileListReq) ProtoMessage()

func (*FileListReq) ProtoReflect

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

func (*FileListReq) Reset

func (x *FileListReq) Reset()

func (*FileListReq) String

func (x *FileListReq) String() string

type FileListResp

type FileListResp struct {
	List  []*FileIn `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"`
	Count int64     `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	Error string    `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*FileListResp) Descriptor deprecated

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

Deprecated: Use FileListResp.ProtoReflect.Descriptor instead.

func (*FileListResp) GetCount

func (x *FileListResp) GetCount() int64

func (*FileListResp) GetError

func (x *FileListResp) GetError() string

func (*FileListResp) GetList

func (x *FileListResp) GetList() []*FileIn

func (*FileListResp) ProtoMessage

func (*FileListResp) ProtoMessage()

func (*FileListResp) ProtoReflect

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

func (*FileListResp) Reset

func (x *FileListResp) Reset()

func (*FileListResp) String

func (x *FileListResp) String() string

type FileMoveReq

type FileMoveReq struct {
	LastParentId int64 `protobuf:"varint,1,opt,name=LastParentId,proto3" json:"LastParentId,omitempty"`
	PreParentId  int64 `protobuf:"varint,2,opt,name=PreParentId,proto3" json:"PreParentId,omitempty"`
	Id           int64 `protobuf:"varint,3,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileMoveReq) Descriptor deprecated

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

Deprecated: Use FileMoveReq.ProtoReflect.Descriptor instead.

func (*FileMoveReq) GetId

func (x *FileMoveReq) GetId() int64

func (*FileMoveReq) GetLastParentId

func (x *FileMoveReq) GetLastParentId() int64

func (*FileMoveReq) GetPreParentId

func (x *FileMoveReq) GetPreParentId() int64

func (*FileMoveReq) ProtoMessage

func (*FileMoveReq) ProtoMessage()

func (*FileMoveReq) ProtoReflect

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

func (*FileMoveReq) Reset

func (x *FileMoveReq) Reset()

func (*FileMoveReq) String

func (x *FileMoveReq) String() string

type FileMoveResp

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

func (*FileMoveResp) Descriptor deprecated

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

Deprecated: Use FileMoveResp.ProtoReflect.Descriptor instead.

func (*FileMoveResp) GetError

func (x *FileMoveResp) GetError() string

func (*FileMoveResp) ProtoMessage

func (*FileMoveResp) ProtoMessage()

func (*FileMoveResp) ProtoReflect

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

func (*FileMoveResp) Reset

func (x *FileMoveResp) Reset()

func (*FileMoveResp) String

func (x *FileMoveResp) String() string

type FileNameUpdateReq

type FileNameUpdateReq struct {
	Id   int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileNameUpdateReq) Descriptor deprecated

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

Deprecated: Use FileNameUpdateReq.ProtoReflect.Descriptor instead.

func (*FileNameUpdateReq) GetId

func (x *FileNameUpdateReq) GetId() int64

func (*FileNameUpdateReq) GetName

func (x *FileNameUpdateReq) GetName() string

func (*FileNameUpdateReq) ProtoMessage

func (*FileNameUpdateReq) ProtoMessage()

func (*FileNameUpdateReq) ProtoReflect

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

func (*FileNameUpdateReq) Reset

func (x *FileNameUpdateReq) Reset()

func (*FileNameUpdateReq) String

func (x *FileNameUpdateReq) String() string

type FileNameUpdateResp

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

func (*FileNameUpdateResp) Descriptor deprecated

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

Deprecated: Use FileNameUpdateResp.ProtoReflect.Descriptor instead.

func (*FileNameUpdateResp) GetError

func (x *FileNameUpdateResp) GetError() string

func (*FileNameUpdateResp) ProtoMessage

func (*FileNameUpdateResp) ProtoMessage()

func (*FileNameUpdateResp) ProtoReflect

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

func (*FileNameUpdateResp) Reset

func (x *FileNameUpdateResp) Reset()

func (*FileNameUpdateResp) String

func (x *FileNameUpdateResp) String() string

type FilePrefix

type FilePrefix struct {
	ParentId int64  `protobuf:"varint,1,opt,name=ParentId,proto3" json:"ParentId,omitempty"`
	Id       int64  `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Type     string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"`
	// contains filtered or unexported fields
}

func (*FilePrefix) Descriptor deprecated

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

Deprecated: Use FilePrefix.ProtoReflect.Descriptor instead.

func (*FilePrefix) GetId

func (x *FilePrefix) GetId() int64

func (*FilePrefix) GetParentId

func (x *FilePrefix) GetParentId() int64

func (*FilePrefix) GetType

func (x *FilePrefix) GetType() string

func (*FilePrefix) ProtoMessage

func (*FilePrefix) ProtoMessage()

func (*FilePrefix) ProtoReflect

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

func (*FilePrefix) Reset

func (x *FilePrefix) Reset()

func (*FilePrefix) String

func (x *FilePrefix) String() string

type FileShareReq

type FileShareReq struct {
	Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*FileShareReq) Descriptor deprecated

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

Deprecated: Use FileShareReq.ProtoReflect.Descriptor instead.

func (*FileShareReq) GetId

func (x *FileShareReq) GetId() int64

func (*FileShareReq) ProtoMessage

func (*FileShareReq) ProtoMessage()

func (*FileShareReq) ProtoReflect

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

func (*FileShareReq) Reset

func (x *FileShareReq) Reset()

func (*FileShareReq) String

func (x *FileShareReq) String() string

type FileShareResp

type FileShareResp struct {
	ShareLink string `protobuf:"bytes,1,opt,name=ShareLink,proto3" json:"ShareLink,omitempty"`
	Error     string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*FileShareResp) Descriptor deprecated

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

Deprecated: Use FileShareResp.ProtoReflect.Descriptor instead.

func (*FileShareResp) GetError

func (x *FileShareResp) GetError() string
func (x *FileShareResp) GetShareLink() string

func (*FileShareResp) ProtoMessage

func (*FileShareResp) ProtoMessage()

func (*FileShareResp) ProtoReflect

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

func (*FileShareResp) Reset

func (x *FileShareResp) Reset()

func (*FileShareResp) String

func (x *FileShareResp) String() string

type FileShareSaveReq

type FileShareSaveReq struct {
	ParentId  int64  `protobuf:"varint,1,opt,name=ParentId,proto3" json:"ParentId,omitempty"`
	ShareLink string `protobuf:"bytes,2,opt,name=ShareLink,proto3" json:"ShareLink,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	// contains filtered or unexported fields
}

func (*FileShareSaveReq) Descriptor deprecated

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

Deprecated: Use FileShareSaveReq.ProtoReflect.Descriptor instead.

func (*FileShareSaveReq) GetName

func (x *FileShareSaveReq) GetName() string

func (*FileShareSaveReq) GetParentId

func (x *FileShareSaveReq) GetParentId() int64
func (x *FileShareSaveReq) GetShareLink() string

func (*FileShareSaveReq) ProtoMessage

func (*FileShareSaveReq) ProtoMessage()

func (*FileShareSaveReq) ProtoReflect

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

func (*FileShareSaveReq) Reset

func (x *FileShareSaveReq) Reset()

func (*FileShareSaveReq) String

func (x *FileShareSaveReq) String() string

type FileShareSaveResp

type FileShareSaveResp struct {
	Id    int64  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*FileShareSaveResp) Descriptor deprecated

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

Deprecated: Use FileShareSaveResp.ProtoReflect.Descriptor instead.

func (*FileShareSaveResp) GetError

func (x *FileShareSaveResp) GetError() string

func (*FileShareSaveResp) GetId

func (x *FileShareSaveResp) GetId() int64

func (*FileShareSaveResp) ProtoMessage

func (*FileShareSaveResp) ProtoMessage()

func (*FileShareSaveResp) ProtoReflect

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

func (*FileShareSaveResp) Reset

func (x *FileShareSaveResp) Reset()

func (*FileShareSaveResp) String

func (x *FileShareSaveResp) String() string

type FileUploadReq

type FileUploadReq struct {
	Name       string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Type       string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	SourcePath string `protobuf:"bytes,3,opt,name=SourcePath,proto3" json:"SourcePath,omitempty"`
	// contains filtered or unexported fields
}

func (*FileUploadReq) Descriptor deprecated

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

Deprecated: Use FileUploadReq.ProtoReflect.Descriptor instead.

func (*FileUploadReq) GetName

func (x *FileUploadReq) GetName() string

func (*FileUploadReq) GetSourcePath

func (x *FileUploadReq) GetSourcePath() string

func (*FileUploadReq) GetType

func (x *FileUploadReq) GetType() string

func (*FileUploadReq) ProtoMessage

func (*FileUploadReq) ProtoMessage()

func (*FileUploadReq) ProtoReflect

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

func (*FileUploadReq) Reset

func (x *FileUploadReq) Reset()

func (*FileUploadReq) String

func (x *FileUploadReq) String() string

type FileUploadResp

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

func (*FileUploadResp) Descriptor deprecated

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

Deprecated: Use FileUploadResp.ProtoReflect.Descriptor instead.

func (*FileUploadResp) GetError

func (x *FileUploadResp) GetError() string

func (*FileUploadResp) ProtoMessage

func (*FileUploadResp) ProtoMessage()

func (*FileUploadResp) ProtoReflect

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

func (*FileUploadResp) Reset

func (x *FileUploadResp) Reset()

func (*FileUploadResp) String

func (x *FileUploadResp) String() string

type FilecenterClient

type FilecenterClient interface {
	FileUpload(ctx context.Context, in *FileUploadReq, opts ...grpc.CallOption) (*FileUploadResp, error)
	FileDownload(ctx context.Context, in *FileDownloadReq, opts ...grpc.CallOption) (*FileDownloadResp, error)
	FileList(ctx context.Context, in *FileListReq, opts ...grpc.CallOption) (*FileListResp, error)
	FileNameUpdate(ctx context.Context, in *FileNameUpdateReq, opts ...grpc.CallOption) (*FileNameUpdateResp, error)
	FileCreate(ctx context.Context, in *FileCreateReq, opts ...grpc.CallOption) (*FileCreateResp, error)
	FileDeletion(ctx context.Context, in *FileDeletionReq, opts ...grpc.CallOption) (*FileDeletionResp, error)
	FileMove(ctx context.Context, in *FileMoveReq, opts ...grpc.CallOption) (*FileMoveResp, error)
	FileShare(ctx context.Context, in *FileShareReq, opts ...grpc.CallOption) (*FileShareResp, error)
	FileShareSave(ctx context.Context, in *FileShareSaveReq, opts ...grpc.CallOption) (*FileShareSaveResp, error)
	FileDetails(ctx context.Context, in *FileDetailsReq, opts ...grpc.CallOption) (*FileDetailsResp, error)
	UploadPicture(ctx context.Context, in *UploadPictureReq, opts ...grpc.CallOption) (*UploadPictureResp, error)
}

FilecenterClient is the client API for Filecenter 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 NewFilecenterClient

func NewFilecenterClient(cc grpc.ClientConnInterface) FilecenterClient

type FilecenterServer

FilecenterServer is the server API for Filecenter service. All implementations must embed UnimplementedFilecenterServer for forward compatibility

type UnimplementedFilecenterServer

type UnimplementedFilecenterServer struct {
}

UnimplementedFilecenterServer must be embedded to have forward compatible implementations.

func (UnimplementedFilecenterServer) FileCreate

func (UnimplementedFilecenterServer) FileDeletion

func (UnimplementedFilecenterServer) FileDetails

func (UnimplementedFilecenterServer) FileDownload

func (UnimplementedFilecenterServer) FileList

func (UnimplementedFilecenterServer) FileMove

func (UnimplementedFilecenterServer) FileNameUpdate

func (UnimplementedFilecenterServer) FileShare

func (UnimplementedFilecenterServer) FileShareSave

func (UnimplementedFilecenterServer) FileUpload

func (UnimplementedFilecenterServer) UploadPicture

type UnsafeFilecenterServer

type UnsafeFilecenterServer interface {
	// contains filtered or unexported methods
}

UnsafeFilecenterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FilecenterServer will result in compilation errors.

type UploadPictureReq

type UploadPictureReq struct {
	Md5     string `protobuf:"bytes,1,opt,name=Md5,proto3" json:"Md5,omitempty"`         // md5值
	Id      int64  `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"`          // 用户Id
	Picture []byte `protobuf:"bytes,3,opt,name=Picture,proto3" json:"Picture,omitempty"` // 头像字节数组
	// contains filtered or unexported fields
}

func (*UploadPictureReq) Descriptor deprecated

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

Deprecated: Use UploadPictureReq.ProtoReflect.Descriptor instead.

func (*UploadPictureReq) GetId

func (x *UploadPictureReq) GetId() int64

func (*UploadPictureReq) GetMd5

func (x *UploadPictureReq) GetMd5() string

func (*UploadPictureReq) GetPicture

func (x *UploadPictureReq) GetPicture() []byte

func (*UploadPictureReq) ProtoMessage

func (*UploadPictureReq) ProtoMessage()

func (*UploadPictureReq) ProtoReflect

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

func (*UploadPictureReq) Reset

func (x *UploadPictureReq) Reset()

func (*UploadPictureReq) String

func (x *UploadPictureReq) String() string

type UploadPictureResp

type UploadPictureResp struct {
	URL   string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadPictureResp) Descriptor deprecated

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

Deprecated: Use UploadPictureResp.ProtoReflect.Descriptor instead.

func (*UploadPictureResp) GetError

func (x *UploadPictureResp) GetError() string

func (*UploadPictureResp) GetURL

func (x *UploadPictureResp) GetURL() string

func (*UploadPictureResp) ProtoMessage

func (*UploadPictureResp) ProtoMessage()

func (*UploadPictureResp) ProtoReflect

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

func (*UploadPictureResp) Reset

func (x *UploadPictureResp) Reset()

func (*UploadPictureResp) String

func (x *UploadPictureResp) String() string

Jump to

Keyboard shortcuts

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