Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadTicket ¶
type Error ¶
func UnknownError ¶
type MessagePool ¶
type MessagePool struct {
// contains filtered or unexported fields
}
func NewMessagePool ¶
func NewMessagePool() *MessagePool
func (*MessagePool) Push ¶
func (mp *MessagePool) Push(protocol string, msg interface{}) error
type OtClient ¶
type OtClient struct {
// contains filtered or unexported fields
}
func NewOtClient ¶
type OtServer ¶
type OtServer struct {
// contains filtered or unexported fields
}
OtServer type
func NewOtServer ¶
func NewOtServer(node OtServerNode) *OtServer
type OtServerNode ¶
type PreClient ¶
type PreClient struct {
// contains filtered or unexported fields
}
PreClient type
func NewPreClient ¶
type PreServer ¶
type PreServer struct {
// contains filtered or unexported fields
}
PreServer type
func NewPreServer ¶
func NewPreServer(node PreServerNode) *PreServer
type PreServerNode ¶
type StorageClient ¶
type StorageClient struct {
// contains filtered or unexported fields
}
StorageClient type
func NewStorageClient ¶
func NewStorageClient(node BaseNode) *StorageClient
func (*StorageClient) SendDownloadRequest ¶
func (p *StorageClient) SendDownloadRequest(ctx context.Context, peerID peer.ID, ticket *DownloadTicket) (string, error)
func (*StorageClient) SendUploadRequest ¶
func (p *StorageClient) SendUploadRequest(ctx context.Context, peerID peer.ID, ticket *UploadTicket) (string, error)
type StorageServer ¶
type StorageServer struct {
// contains filtered or unexported fields
}
StorageServer type
func NewStorageServer ¶
func NewStorageServer(node StorageServerNode) *StorageServer
type StorageServerNode ¶
type StorageServerNode interface { BaseNode OnUploadRequest(ticket *UploadTicket) (string, Error) OnDownloadRequest(ticket *DownloadTicket) (string, Error) }
Click to show internal directories.
Click to hide internal directories.