data

package
v0.0.0-...-25cadc1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package data is a generated protocol buffer package.

It is generated from these files:

github.com/bottos-project/magiccube/service/data/proto/data.proto

It has these top-level messages:

AllRequest
Slice
Url
Node
Ip
Hash
FileCheckRequest
FileCheckResponse
GetFileUploadURLRequest
GetFileUploadURLResponse
GetFileSliceUploadURLRequest
GetFileSliceUploadURLResponse
GetFileStorageNodeRequest
GetFileStorageNodeResponse
PutFileRequest
PutFileResponse
GetUploadProgressRequest
GetUploadProgressResponse
DownloadFileRequest
DownloadFileResponse
ComposeFileRequest
ComposeFileResponse
GetFileStorageURLRequest
GetFileStorageURLResponse
GetStorageIPRequest
GetStorageIPResponse
GetFileDownloadURLRequest
GetFileDownloadURLResponse
GetFileSliceDownloadURLRequest
GetFileSliceDownloadURLResponse

Package data is a generated protocol buffer package.

It is generated from these files:

github.com/bottos-project/magiccube/service/data/proto/data.proto

It has these top-level messages:

AllRequest
Slice
Url
Node
Ip
Hash
FileCheckRequest
FileCheckResponse
GetFileUploadURLRequest
GetFileUploadURLResponse
GetFileSliceUploadURLRequest
GetFileSliceUploadURLResponse
GetFileStorageNodeRequest
GetFileStorageNodeResponse
PutFileRequest
PutFileResponse
GetUploadProgressRequest
GetUploadProgressResponse
DownloadFileRequest
DownloadFileResponse
ComposeFileRequest
ComposeFileResponse
GetFileStorageURLRequest
GetFileStorageURLResponse
GetStorageIPRequest
GetStorageIPResponse
GetFileDownloadURLRequest
GetFileDownloadURLResponse
GetFileSliceDownloadURLRequest
GetFileSliceDownloadURLResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDataHandler

func RegisterDataHandler(s server.Server, hdlr DataHandler, opts ...server.HandlerOption)

Types

type AllRequest

type AllRequest struct {
}

func (*AllRequest) Descriptor

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

func (*AllRequest) ProtoMessage

func (*AllRequest) ProtoMessage()

func (*AllRequest) Reset

func (m *AllRequest) Reset()

func (*AllRequest) String

func (m *AllRequest) String() string

type ComposeFileRequest

type ComposeFileRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
	Ip       []*Ip  `protobuf:"bytes,3,rep,name=ip" json:"ip"`
}

func (*ComposeFileRequest) Descriptor

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

func (*ComposeFileRequest) GetGuid

func (m *ComposeFileRequest) GetGuid() string

func (*ComposeFileRequest) GetIp

func (m *ComposeFileRequest) GetIp() []*Ip

func (*ComposeFileRequest) GetUsername

func (m *ComposeFileRequest) GetUsername() string

func (*ComposeFileRequest) ProtoMessage

func (*ComposeFileRequest) ProtoMessage()

func (*ComposeFileRequest) Reset

func (m *ComposeFileRequest) Reset()

func (*ComposeFileRequest) String

func (m *ComposeFileRequest) String() string

type ComposeFileResponse

type ComposeFileResponse struct {
}

func (*ComposeFileResponse) Descriptor

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

func (*ComposeFileResponse) ProtoMessage

func (*ComposeFileResponse) ProtoMessage()

func (*ComposeFileResponse) Reset

func (m *ComposeFileResponse) Reset()

func (*ComposeFileResponse) String

func (m *ComposeFileResponse) String() string

type Data

type Data struct {
	DataHandler
}

func (*Data) ComposeFile

func (h *Data) ComposeFile(ctx context.Context, in *ComposeFileRequest, out *ComposeFileResponse) error

func (*Data) DownloadFile

func (h *Data) DownloadFile(ctx context.Context, in *DownloadFileRequest, out *DownloadFileResponse) error

func (*Data) FileCheck

func (h *Data) FileCheck(ctx context.Context, in *FileCheckRequest, out *FileCheckResponse) error

func (*Data) GetFileDownloadURL

func (h *Data) GetFileDownloadURL(ctx context.Context, in *GetFileDownloadURLRequest, out *GetFileDownloadURLResponse) error

func (*Data) GetFileSliceUploadURL

func (h *Data) GetFileSliceUploadURL(ctx context.Context, in *GetFileSliceUploadURLRequest, out *GetFileSliceUploadURLResponse) error

func (*Data) GetFileStorageNode

func (h *Data) GetFileStorageNode(ctx context.Context, in *GetFileStorageNodeRequest, out *GetFileStorageNodeResponse) error

func (*Data) GetFileStorageURL

func (h *Data) GetFileStorageURL(ctx context.Context, in *GetFileStorageURLRequest, out *GetFileStorageURLResponse) error

func (*Data) GetFileUploadURL

func (h *Data) GetFileUploadURL(ctx context.Context, in *GetFileUploadURLRequest, out *GetFileUploadURLResponse) error

func (*Data) GetStorageIP

func (h *Data) GetStorageIP(ctx context.Context, in *GetStorageIPRequest, out *GetStorageIPResponse) error

func (*Data) GetUploadProgress

func (h *Data) GetUploadProgress(ctx context.Context, in *GetUploadProgressRequest, out *GetUploadProgressResponse) error

func (*Data) PutFile

func (h *Data) PutFile(ctx context.Context, in *PutFileRequest, out *PutFileResponse) error

type DataClient

type DataClient interface {
	FileCheck(ctx context.Context, in *FileCheckRequest, opts ...client.CallOption) (*FileCheckResponse, error)
	GetFileUploadURL(ctx context.Context, in *GetFileUploadURLRequest, opts ...client.CallOption) (*GetFileUploadURLResponse, error)
	GetFileSliceUploadURL(ctx context.Context, in *GetFileSliceUploadURLRequest, opts ...client.CallOption) (*GetFileSliceUploadURLResponse, error)
	GetUploadProgress(ctx context.Context, in *GetUploadProgressRequest, opts ...client.CallOption) (*GetUploadProgressResponse, error)
	GetFileStorageNode(ctx context.Context, in *GetFileStorageNodeRequest, opts ...client.CallOption) (*GetFileStorageNodeResponse, error)
	PutFile(ctx context.Context, in *PutFileRequest, opts ...client.CallOption) (*PutFileResponse, error)
	GetFileStorageURL(ctx context.Context, in *GetFileStorageURLRequest, opts ...client.CallOption) (*GetFileStorageURLResponse, error)
	DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...client.CallOption) (*DownloadFileResponse, error)
	ComposeFile(ctx context.Context, in *ComposeFileRequest, opts ...client.CallOption) (*ComposeFileResponse, error)
	GetStorageIP(ctx context.Context, in *GetStorageIPRequest, opts ...client.CallOption) (*GetStorageIPResponse, error)
	GetFileDownloadURL(ctx context.Context, in *GetFileDownloadURLRequest, opts ...client.CallOption) (*GetFileDownloadURLResponse, error)
	GetFileSliceDownloadURL(ctx context.Context, in *GetFileSliceDownloadURLRequest, opts ...client.CallOption) (*GetFileSliceDownloadURLResponse, error)
}

func NewDataClient

func NewDataClient(serviceName string, c client.Client) DataClient

type DownloadFileRequest

type DownloadFileRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
	Url      string `protobuf:"bytes,3,opt,name=url" json:"url"`
}

func (*DownloadFileRequest) Descriptor

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

func (*DownloadFileRequest) GetGuid

func (m *DownloadFileRequest) GetGuid() string

func (*DownloadFileRequest) GetUrl

func (m *DownloadFileRequest) GetUrl() string

func (*DownloadFileRequest) GetUsername

func (m *DownloadFileRequest) GetUsername() string

func (*DownloadFileRequest) ProtoMessage

func (*DownloadFileRequest) ProtoMessage()

func (*DownloadFileRequest) Reset

func (m *DownloadFileRequest) Reset()

func (*DownloadFileRequest) String

func (m *DownloadFileRequest) String() string

type DownloadFileResponse

type DownloadFileResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
}

func (*DownloadFileResponse) Descriptor

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

func (*DownloadFileResponse) GetMessage

func (m *DownloadFileResponse) GetMessage() string

func (*DownloadFileResponse) GetResult

func (m *DownloadFileResponse) GetResult() uint64

func (*DownloadFileResponse) ProtoMessage

func (*DownloadFileResponse) ProtoMessage()

func (*DownloadFileResponse) Reset

func (m *DownloadFileResponse) Reset()

func (*DownloadFileResponse) String

func (m *DownloadFileResponse) String() string

type FileCheckRequest

type FileCheckRequest struct {
	Hash []*Hash `protobuf:"bytes,1,rep,name=hash" json:"hash"`
}

func (*FileCheckRequest) Descriptor

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

func (*FileCheckRequest) GetHash

func (m *FileCheckRequest) GetHash() []*Hash

func (*FileCheckRequest) ProtoMessage

func (*FileCheckRequest) ProtoMessage()

func (*FileCheckRequest) Reset

func (m *FileCheckRequest) Reset()

func (*FileCheckRequest) String

func (m *FileCheckRequest) String() string

type FileCheckResponse

type FileCheckResponse struct {
	Result         uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message        string `protobuf:"bytes,2,opt,name=message" json:"message"`
	MerkleRootHash string `protobuf:"bytes,3,opt,name=merkle_root_hash,json=merkleRootHash" json:"merkle_root_hash"`
	IsExist        uint64 `protobuf:"varint,4,opt,name=is_exist,json=isExist" json:"is_exist"`
}

func (*FileCheckResponse) Descriptor

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

func (*FileCheckResponse) GetIsExist

func (m *FileCheckResponse) GetIsExist() uint64

func (*FileCheckResponse) GetMerkleRootHash

func (m *FileCheckResponse) GetMerkleRootHash() string

func (*FileCheckResponse) GetMessage

func (m *FileCheckResponse) GetMessage() string

func (*FileCheckResponse) GetResult

func (m *FileCheckResponse) GetResult() uint64

func (*FileCheckResponse) ProtoMessage

func (*FileCheckResponse) ProtoMessage()

func (*FileCheckResponse) Reset

func (m *FileCheckResponse) Reset()

func (*FileCheckResponse) String

func (m *FileCheckResponse) String() string

type GetFileDownloadURLRequest

type GetFileDownloadURLRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
	Ip       []*Ip  `protobuf:"bytes,3,rep,name=ip" json:"ip"`
}

func (*GetFileDownloadURLRequest) Descriptor

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

func (*GetFileDownloadURLRequest) GetGuid

func (m *GetFileDownloadURLRequest) GetGuid() string

func (*GetFileDownloadURLRequest) GetIp

func (m *GetFileDownloadURLRequest) GetIp() []*Ip

func (*GetFileDownloadURLRequest) GetUsername

func (m *GetFileDownloadURLRequest) GetUsername() string

func (*GetFileDownloadURLRequest) ProtoMessage

func (*GetFileDownloadURLRequest) ProtoMessage()

func (*GetFileDownloadURLRequest) Reset

func (m *GetFileDownloadURLRequest) Reset()

func (*GetFileDownloadURLRequest) String

func (m *GetFileDownloadURLRequest) String() string

type GetFileDownloadURLResponse

type GetFileDownloadURLResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Url     string `protobuf:"bytes,3,opt,name=url" json:"url"`
}

func (*GetFileDownloadURLResponse) Descriptor

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

func (*GetFileDownloadURLResponse) GetMessage

func (m *GetFileDownloadURLResponse) GetMessage() string

func (*GetFileDownloadURLResponse) GetResult

func (m *GetFileDownloadURLResponse) GetResult() uint64

func (*GetFileDownloadURLResponse) GetUrl

func (m *GetFileDownloadURLResponse) GetUrl() string

func (*GetFileDownloadURLResponse) ProtoMessage

func (*GetFileDownloadURLResponse) ProtoMessage()

func (*GetFileDownloadURLResponse) Reset

func (m *GetFileDownloadURLResponse) Reset()

func (*GetFileDownloadURLResponse) String

func (m *GetFileDownloadURLResponse) String() string

type GetFileSliceDownloadURLRequest

type GetFileSliceDownloadURLRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
	Ip       []*Ip  `protobuf:"bytes,3,rep,name=ip" json:"ip"`
}

func (*GetFileSliceDownloadURLRequest) Descriptor

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

func (*GetFileSliceDownloadURLRequest) GetGuid

func (*GetFileSliceDownloadURLRequest) GetIp

func (m *GetFileSliceDownloadURLRequest) GetIp() []*Ip

func (*GetFileSliceDownloadURLRequest) GetUsername

func (m *GetFileSliceDownloadURLRequest) GetUsername() string

func (*GetFileSliceDownloadURLRequest) ProtoMessage

func (*GetFileSliceDownloadURLRequest) ProtoMessage()

func (*GetFileSliceDownloadURLRequest) Reset

func (m *GetFileSliceDownloadURLRequest) Reset()

func (*GetFileSliceDownloadURLRequest) String

type GetFileSliceDownloadURLResponse

type GetFileSliceDownloadURLResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Url     []*Url `protobuf:"bytes,3,rep,name=url" json:"url"`
}

func (*GetFileSliceDownloadURLResponse) Descriptor

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

func (*GetFileSliceDownloadURLResponse) GetMessage

func (m *GetFileSliceDownloadURLResponse) GetMessage() string

func (*GetFileSliceDownloadURLResponse) GetResult

func (m *GetFileSliceDownloadURLResponse) GetResult() uint64

func (*GetFileSliceDownloadURLResponse) GetUrl

func (m *GetFileSliceDownloadURLResponse) GetUrl() []*Url

func (*GetFileSliceDownloadURLResponse) ProtoMessage

func (*GetFileSliceDownloadURLResponse) ProtoMessage()

func (*GetFileSliceDownloadURLResponse) Reset

func (*GetFileSliceDownloadURLResponse) String

type GetFileSliceUploadURLRequest

type GetFileSliceUploadURLRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
}

func (*GetFileSliceUploadURLRequest) Descriptor

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

func (*GetFileSliceUploadURLRequest) GetGuid

func (m *GetFileSliceUploadURLRequest) GetGuid() string

func (*GetFileSliceUploadURLRequest) GetUsername

func (m *GetFileSliceUploadURLRequest) GetUsername() string

func (*GetFileSliceUploadURLRequest) ProtoMessage

func (*GetFileSliceUploadURLRequest) ProtoMessage()

func (*GetFileSliceUploadURLRequest) Reset

func (m *GetFileSliceUploadURLRequest) Reset()

func (*GetFileSliceUploadURLRequest) String

type GetFileSliceUploadURLResponse

type GetFileSliceUploadURLResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Url     string `protobuf:"bytes,3,opt,name=url" json:"url"`
}

func (*GetFileSliceUploadURLResponse) Descriptor

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

func (*GetFileSliceUploadURLResponse) GetMessage

func (m *GetFileSliceUploadURLResponse) GetMessage() string

func (*GetFileSliceUploadURLResponse) GetResult

func (m *GetFileSliceUploadURLResponse) GetResult() uint64

func (*GetFileSliceUploadURLResponse) GetUrl

func (*GetFileSliceUploadURLResponse) ProtoMessage

func (*GetFileSliceUploadURLResponse) ProtoMessage()

func (*GetFileSliceUploadURLResponse) Reset

func (m *GetFileSliceUploadURLResponse) Reset()

func (*GetFileSliceUploadURLResponse) String

type GetFileStorageNodeRequest

type GetFileStorageNodeRequest struct {
	Username string   `protobuf:"bytes,1,opt,name=username" json:"username"`
	Slice    []*Slice `protobuf:"bytes,2,rep,name=slice" json:"slice"`
}

func (*GetFileStorageNodeRequest) Descriptor

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

func (*GetFileStorageNodeRequest) GetSlice

func (m *GetFileStorageNodeRequest) GetSlice() []*Slice

func (*GetFileStorageNodeRequest) GetUsername

func (m *GetFileStorageNodeRequest) GetUsername() string

func (*GetFileStorageNodeRequest) ProtoMessage

func (*GetFileStorageNodeRequest) ProtoMessage()

func (*GetFileStorageNodeRequest) Reset

func (m *GetFileStorageNodeRequest) Reset()

func (*GetFileStorageNodeRequest) String

func (m *GetFileStorageNodeRequest) String() string

type GetFileStorageNodeResponse

type GetFileStorageNodeResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Ip      []*Ip  `protobuf:"bytes,3,rep,name=ip" json:"ip"`
}

func (*GetFileStorageNodeResponse) Descriptor

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

func (*GetFileStorageNodeResponse) GetIp

func (m *GetFileStorageNodeResponse) GetIp() []*Ip

func (*GetFileStorageNodeResponse) GetMessage

func (m *GetFileStorageNodeResponse) GetMessage() string

func (*GetFileStorageNodeResponse) GetResult

func (m *GetFileStorageNodeResponse) GetResult() uint64

func (*GetFileStorageNodeResponse) ProtoMessage

func (*GetFileStorageNodeResponse) ProtoMessage()

func (*GetFileStorageNodeResponse) Reset

func (m *GetFileStorageNodeResponse) Reset()

func (*GetFileStorageNodeResponse) String

func (m *GetFileStorageNodeResponse) String() string

type GetFileStorageURLRequest

type GetFileStorageURLRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
}

func (*GetFileStorageURLRequest) Descriptor

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

func (*GetFileStorageURLRequest) GetGuid

func (m *GetFileStorageURLRequest) GetGuid() string

func (*GetFileStorageURLRequest) GetUsername

func (m *GetFileStorageURLRequest) GetUsername() string

func (*GetFileStorageURLRequest) ProtoMessage

func (*GetFileStorageURLRequest) ProtoMessage()

func (*GetFileStorageURLRequest) Reset

func (m *GetFileStorageURLRequest) Reset()

func (*GetFileStorageURLRequest) String

func (m *GetFileStorageURLRequest) String() string

type GetFileStorageURLResponse

type GetFileStorageURLResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Url     string `protobuf:"bytes,3,opt,name=url" json:"url"`
}

func (*GetFileStorageURLResponse) Descriptor

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

func (*GetFileStorageURLResponse) GetMessage

func (m *GetFileStorageURLResponse) GetMessage() string

func (*GetFileStorageURLResponse) GetResult

func (m *GetFileStorageURLResponse) GetResult() uint64

func (*GetFileStorageURLResponse) GetUrl

func (m *GetFileStorageURLResponse) GetUrl() string

func (*GetFileStorageURLResponse) ProtoMessage

func (*GetFileStorageURLResponse) ProtoMessage()

func (*GetFileStorageURLResponse) Reset

func (m *GetFileStorageURLResponse) Reset()

func (*GetFileStorageURLResponse) String

func (m *GetFileStorageURLResponse) String() string

type GetFileUploadURLRequest

type GetFileUploadURLRequest struct {
	Username string   `protobuf:"bytes,1,opt,name=username" json:"username"`
	Slice    []*Slice `protobuf:"bytes,2,rep,name=slice" json:"slice"`
}

func (*GetFileUploadURLRequest) Descriptor

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

func (*GetFileUploadURLRequest) GetSlice

func (m *GetFileUploadURLRequest) GetSlice() []*Slice

func (*GetFileUploadURLRequest) GetUsername

func (m *GetFileUploadURLRequest) GetUsername() string

func (*GetFileUploadURLRequest) ProtoMessage

func (*GetFileUploadURLRequest) ProtoMessage()

func (*GetFileUploadURLRequest) Reset

func (m *GetFileUploadURLRequest) Reset()

func (*GetFileUploadURLRequest) String

func (m *GetFileUploadURLRequest) String() string

type GetFileUploadURLResponse

type GetFileUploadURLResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
	Url     []*Url `protobuf:"bytes,3,rep,name=url" json:"url"`
}

func (*GetFileUploadURLResponse) Descriptor

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

func (*GetFileUploadURLResponse) GetMessage

func (m *GetFileUploadURLResponse) GetMessage() string

func (*GetFileUploadURLResponse) GetResult

func (m *GetFileUploadURLResponse) GetResult() uint64

func (*GetFileUploadURLResponse) GetUrl

func (m *GetFileUploadURLResponse) GetUrl() []*Url

func (*GetFileUploadURLResponse) ProtoMessage

func (*GetFileUploadURLResponse) ProtoMessage()

func (*GetFileUploadURLResponse) Reset

func (m *GetFileUploadURLResponse) Reset()

func (*GetFileUploadURLResponse) String

func (m *GetFileUploadURLResponse) String() string

type GetStorageIPRequest

type GetStorageIPRequest struct {
	Guid string `protobuf:"bytes,1,opt,name=guid" json:"guid"`
}

func (*GetStorageIPRequest) Descriptor

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

func (*GetStorageIPRequest) GetGuid

func (m *GetStorageIPRequest) GetGuid() string

func (*GetStorageIPRequest) ProtoMessage

func (*GetStorageIPRequest) ProtoMessage()

func (*GetStorageIPRequest) Reset

func (m *GetStorageIPRequest) Reset()

func (*GetStorageIPRequest) String

func (m *GetStorageIPRequest) String() string

type GetStorageIPResponse

type GetStorageIPResponse struct {
	Result      uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message     string `protobuf:"bytes,2,opt,name=message" json:"message"`
	StorageAddr string `protobuf:"bytes,3,opt,name=storage_addr,json=storageAddr" json:"storage_addr"`
	FileName    string `protobuf:"bytes,4,opt,name=file_name,json=fileName" json:"file_name"`
}

func (*GetStorageIPResponse) Descriptor

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

func (*GetStorageIPResponse) GetFileName

func (m *GetStorageIPResponse) GetFileName() string

func (*GetStorageIPResponse) GetMessage

func (m *GetStorageIPResponse) GetMessage() string

func (*GetStorageIPResponse) GetResult

func (m *GetStorageIPResponse) GetResult() uint64

func (*GetStorageIPResponse) GetStorageAddr

func (m *GetStorageIPResponse) GetStorageAddr() string

func (*GetStorageIPResponse) ProtoMessage

func (*GetStorageIPResponse) ProtoMessage()

func (*GetStorageIPResponse) Reset

func (m *GetStorageIPResponse) Reset()

func (*GetStorageIPResponse) String

func (m *GetStorageIPResponse) String() string

type GetUploadProgressRequest

type GetUploadProgressRequest struct {
	Username string   `protobuf:"bytes,1,opt,name=username" json:"username"`
	Slice    []*Slice `protobuf:"bytes,2,rep,name=slice" json:"slice"`
}

func (*GetUploadProgressRequest) Descriptor

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

func (*GetUploadProgressRequest) GetSlice

func (m *GetUploadProgressRequest) GetSlice() []*Slice

func (*GetUploadProgressRequest) GetUsername

func (m *GetUploadProgressRequest) GetUsername() string

func (*GetUploadProgressRequest) ProtoMessage

func (*GetUploadProgressRequest) ProtoMessage()

func (*GetUploadProgressRequest) Reset

func (m *GetUploadProgressRequest) Reset()

func (*GetUploadProgressRequest) String

func (m *GetUploadProgressRequest) String() string

type GetUploadProgressResponse

type GetUploadProgressResponse struct {
	Result            uint64   `protobuf:"varint,1,opt,name=result" json:"result"`
	Message           string   `protobuf:"bytes,2,opt,name=message" json:"message"`
	ProgressDone      uint64   `protobuf:"varint,3,opt,name=progress_done,json=progressDone" json:"progress_done"`
	Progressing       uint64   `protobuf:"varint,4,opt,name=progressing" json:"progressing"`
	SliceProgressDone []*Slice `protobuf:"bytes,5,rep,name=slice_progress_done,json=sliceProgressDone" json:"slice_progress_done"`
	SliceProgressing  []*Slice `protobuf:"bytes,6,rep,name=slice_progressing,json=sliceProgressing" json:"slice_progressing"`
}

func (*GetUploadProgressResponse) Descriptor

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

func (*GetUploadProgressResponse) GetMessage

func (m *GetUploadProgressResponse) GetMessage() string

func (*GetUploadProgressResponse) GetProgressDone

func (m *GetUploadProgressResponse) GetProgressDone() uint64

func (*GetUploadProgressResponse) GetProgressing

func (m *GetUploadProgressResponse) GetProgressing() uint64

func (*GetUploadProgressResponse) GetResult

func (m *GetUploadProgressResponse) GetResult() uint64

func (*GetUploadProgressResponse) GetSliceProgressDone

func (m *GetUploadProgressResponse) GetSliceProgressDone() []*Slice

func (*GetUploadProgressResponse) GetSliceProgressing

func (m *GetUploadProgressResponse) GetSliceProgressing() []*Slice

func (*GetUploadProgressResponse) ProtoMessage

func (*GetUploadProgressResponse) ProtoMessage()

func (*GetUploadProgressResponse) Reset

func (m *GetUploadProgressResponse) Reset()

func (*GetUploadProgressResponse) String

func (m *GetUploadProgressResponse) String() string

type Hash

type Hash struct {
	Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash"`
}

func (*Hash) Descriptor

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

func (*Hash) GetHash

func (m *Hash) GetHash() string

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

type Ip

type Ip struct {
	Sguid   string `protobuf:"bytes,1,opt,name=sguid" json:"sguid"`
	SnodeIp string `protobuf:"bytes,2,opt,name=snode_ip,json=snodeIp" json:"snode_ip"`
}

func (*Ip) Descriptor

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

func (*Ip) GetSguid

func (m *Ip) GetSguid() string

func (*Ip) GetSnodeIp

func (m *Ip) GetSnodeIp() string

func (*Ip) ProtoMessage

func (*Ip) ProtoMessage()

func (*Ip) Reset

func (m *Ip) Reset()

func (*Ip) String

func (m *Ip) String() string

type Node

type Node struct {
	NodeID      string `protobuf:"bytes,1,opt,name=nodeID" json:"nodeID"`
	NodeIP      string `protobuf:"bytes,2,opt,name=nodeIP" json:"nodeIP"`
	NodePort    string `protobuf:"bytes,3,opt,name=node_port,json=nodePort" json:"node_port"`
	NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress" json:"node_address"`
	SeedIP      string `protobuf:"bytes,5,opt,name=seedIP" json:"seedIP"`
	SlaveIP     string `protobuf:"bytes,6,opt,name=slaveIP" json:"slaveIP"`
}

func (*Node) Descriptor

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

func (*Node) GetNodeAddress

func (m *Node) GetNodeAddress() string

func (*Node) GetNodeID

func (m *Node) GetNodeID() string

func (*Node) GetNodeIP

func (m *Node) GetNodeIP() string

func (*Node) GetNodePort

func (m *Node) GetNodePort() string

func (*Node) GetSeedIP

func (m *Node) GetSeedIP() string

func (*Node) GetSlaveIP

func (m *Node) GetSlaveIP() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type PutFileRequest

type PutFileRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username"`
	Guid     string `protobuf:"bytes,2,opt,name=guid" json:"guid"`
	Url      string `protobuf:"bytes,3,opt,name=url" json:"url"`
}

func (*PutFileRequest) Descriptor

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

func (*PutFileRequest) GetGuid

func (m *PutFileRequest) GetGuid() string

func (*PutFileRequest) GetUrl

func (m *PutFileRequest) GetUrl() string

func (*PutFileRequest) GetUsername

func (m *PutFileRequest) GetUsername() string

func (*PutFileRequest) ProtoMessage

func (*PutFileRequest) ProtoMessage()

func (*PutFileRequest) Reset

func (m *PutFileRequest) Reset()

func (*PutFileRequest) String

func (m *PutFileRequest) String() string

type PutFileResponse

type PutFileResponse struct {
	Result  uint64 `protobuf:"varint,1,opt,name=result" json:"result"`
	Message string `protobuf:"bytes,2,opt,name=message" json:"message"`
}

func (*PutFileResponse) Descriptor

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

func (*PutFileResponse) GetMessage

func (m *PutFileResponse) GetMessage() string

func (*PutFileResponse) GetResult

func (m *PutFileResponse) GetResult() uint64

func (*PutFileResponse) ProtoMessage

func (*PutFileResponse) ProtoMessage()

func (*PutFileResponse) Reset

func (m *PutFileResponse) Reset()

func (*PutFileResponse) String

func (m *PutFileResponse) String() string

type Slice

type Slice struct {
	Sguid string `protobuf:"bytes,1,opt,name=sguid" json:"sguid"`
}

func (*Slice) Descriptor

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

func (*Slice) GetSguid

func (m *Slice) GetSguid() string

func (*Slice) ProtoMessage

func (*Slice) ProtoMessage()

func (*Slice) Reset

func (m *Slice) Reset()

func (*Slice) String

func (m *Slice) String() string

type Url

type Url struct {
	Sguid string `protobuf:"bytes,1,opt,name=sguid" json:"sguid"`
	Surl  string `protobuf:"bytes,2,opt,name=surl" json:"surl"`
}

func (*Url) Descriptor

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

func (*Url) GetSguid

func (m *Url) GetSguid() string

func (*Url) GetSurl

func (m *Url) GetSurl() string

func (*Url) ProtoMessage

func (*Url) ProtoMessage()

func (*Url) Reset

func (m *Url) Reset()

func (*Url) String

func (m *Url) String() string

Jump to

Keyboard shortcuts

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