Documentation ¶
Overview ¶
Package metadata is a generated protocol buffer package.
It is generated from these files:
metadata.proto
It has these top-level messages:
Void RmReq MvReq HomeReq CpReq MkdirReq StatReq Metadata
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMetaServer ¶
func RegisterMetaServer(s *grpc.Server, srv MetaServer)
Types ¶
type CpReq ¶
type CpReq struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` Src string `protobuf:"bytes,2,opt,name=src" json:"src,omitempty"` Dst string `protobuf:"bytes,3,opt,name=dst" json:"dst,omitempty"` }
func (*CpReq) ProtoMessage ¶
func (*CpReq) ProtoMessage()
type HomeReq ¶
type HomeReq struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"`
}
func (*HomeReq) ProtoMessage ¶
func (*HomeReq) ProtoMessage()
type MetaClient ¶
type MetaClient interface { Home(ctx context.Context, in *HomeReq, opts ...grpc.CallOption) (*Void, error) Mkdir(ctx context.Context, in *MkdirReq, opts ...grpc.CallOption) (*Void, error) Stat(ctx context.Context, in *StatReq, opts ...grpc.CallOption) (*Metadata, error) Cp(ctx context.Context, in *CpReq, opts ...grpc.CallOption) (*Void, error) Mv(ctx context.Context, in *MvReq, opts ...grpc.CallOption) (*Void, error) Rm(ctx context.Context, in *RmReq, opts ...grpc.CallOption) (*Void, error) }
func NewMetaClient ¶
func NewMetaClient(cc *grpc.ClientConn) MetaClient
type MetaServer ¶
type MetaServer interface { Home(context.Context, *HomeReq) (*Void, error) Mkdir(context.Context, *MkdirReq) (*Void, error) Stat(context.Context, *StatReq) (*Metadata, error) Cp(context.Context, *CpReq) (*Void, error) Mv(context.Context, *MvReq) (*Void, error) Rm(context.Context, *RmReq) (*Void, error) }
type Metadata ¶
type Metadata struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` IsContainer bool `protobuf:"varint,4,opt,name=is_container" json:"is_container,omitempty"` MimeType string `protobuf:"bytes,5,opt,name=mime_type" json:"mime_type,omitempty"` Checksum string `protobuf:"bytes,6,opt,name=checksum" json:"checksum,omitempty"` Modified uint32 `protobuf:"varint,7,opt,name=modified" json:"modified,omitempty"` Etag string `protobuf:"bytes,8,opt,name=etag" json:"etag,omitempty"` Permissions uint32 `protobuf:"varint,9,opt,name=permissions" json:"permissions,omitempty"` Children []*Metadata `protobuf:"bytes,10,rep,name=children" json:"children,omitempty"` }
func (*Metadata) GetChildren ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
type MkdirReq ¶
type MkdirReq struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func (*MkdirReq) ProtoMessage ¶
func (*MkdirReq) ProtoMessage()
type MvReq ¶
type MvReq struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` Src string `protobuf:"bytes,2,opt,name=src" json:"src,omitempty"` Dst string `protobuf:"bytes,3,opt,name=dst" json:"dst,omitempty"` }
func (*MvReq) ProtoMessage ¶
func (*MvReq) ProtoMessage()
type RmReq ¶
type RmReq struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func (*RmReq) ProtoMessage ¶
func (*RmReq) ProtoMessage()
type StatReq ¶
type StatReq struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` Children bool `protobuf:"varint,3,opt,name=children" json:"children,omitempty"` }
func (*StatReq) ProtoMessage ¶
func (*StatReq) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.