Documentation
¶
Index ¶
- func AccountRepoExists(baseRepoPath string, accountAddress string) bool
- func InitRepo(config *InitConfig) error
- func LogDebug(msg []byte)
- func MigrateRepo(config *MigrateConfig) error
- func NewWallet(wordCount int) (string, error)
- func NewWalletFromHuaweiOpenId(huaweiOpenId string) (string, error)
- func RepoExists(repoPath string) bool
- func WalletAccountAt(mnemonic string, index int, passphrase string) ([]byte, error)
- type Callback
- type DataCallback
- type DataCallbackWithTime
- type Event
- type HlogHandler
- type InitConfig
- type IpfsAddDataCallback
- type IpfsCompareCallback
- type IpfsListPathCallback
- type Messenger
- type MigrateConfig
- type Mobile
- func (m *Mobile) AcceptExternalInvite(id string, key string) (string, error)
- func (m *Mobile) AcceptInvite(id string) (string, error)
- func (m *Mobile) AcceptInviteViaNotification(id string) (string, error)
- func (m *Mobile) AccountContact() ([]byte, error)
- func (m *Mobile) AccountThread() ([]byte, error)
- func (m *Mobile) AddComment(blockId string, body string) (string, error)
- func (m *Mobile) AddContact(contact []byte) error
- func (m *Mobile) AddData(data string, threadId string, caption string, cb ProtoCallback)
- func (m *Mobile) AddExternalInvite(threadId string) ([]byte, error)
- func (m *Mobile) AddFiles(paths string, threadId string, caption string, cb ProtoCallback)
- func (m *Mobile) AddFlag(blockId string) (string, error)
- func (m *Mobile) AddHlog(str string)
- func (m *Mobile) AddIgnore(blockId string) (string, error)
- func (m *Mobile) AddInvite(threadId string, address string) error
- func (m *Mobile) AddLike(blockId string) (string, error)
- func (m *Mobile) AddMessage(threadId string, body string) (string, error)
- func (m *Mobile) AddOrUpdateThread(thrd []byte) error
- func (m *Mobile) AddPicture(paths string, threadId string, caption string, cb ProtoCallback)
- func (m *Mobile) AddSchema(node []byte) ([]byte, error)
- func (m *Mobile) AddSimpleFile(path string, threadId string, cb ProtoCallback)
- func (m *Mobile) AddSimpleFolder(path string, threadId string, cb ProtoCallback)
- func (m *Mobile) AddSimplePicture(path string, threadId string, cb ProtoCallback)
- func (m *Mobile) AddSyncFile(file []byte) error
- func (m *Mobile) AddThread(config []byte) ([]byte, error)
- func (m *Mobile) AddVideo(video []byte) error
- func (m *Mobile) AddVideoChunk(vchunk []byte) error
- func (m *Mobile) Address() string
- func (m *Mobile) Avatar() (string, error)
- func (m *Mobile) BigFileAtSimpleFile(feed []byte, cb PathCallbackWithTime)
- func (m *Mobile) BigFileAtStream(feed []byte, cid []byte, cb PathCallback)
- func (m *Mobile) CafeRequestNotPending(id string) error
- func (m *Mobile) CafeRequestPending(id string) error
- func (m *Mobile) CafeRequests(limit int) ([]byte, error)
- func (m *Mobile) CafeSession(id string) ([]byte, error)
- func (m *Mobile) CafeSessions() ([]byte, error)
- func (m *Mobile) CheckCafeMessages(cb Callback)
- func (m *Mobile) ChunksByVideoId(id string) ([]byte, error)
- func (m *Mobile) CloseStream(threadId string, streamId string) error
- func (m *Mobile) CompleteCafeRequest(id string) error
- func (m *Mobile) ConnectShadowTCP(ip string, port int) bool
- func (m *Mobile) ConnectShadowTCP_Async(ip string, port int, cb Callback)
- func (m *Mobile) ConnectedAddresses() ([]byte, error)
- func (m *Mobile) Contact(address string) ([]byte, error)
- func (m *Mobile) ContactThreads(address string) ([]byte, error)
- func (m *Mobile) Contacts() ([]byte, error)
- func (m *Mobile) CountUnreadNotifications() int
- func (m *Mobile) DataAtFeedSimpleFile(feed []byte, cb DataCallbackWithTime)
- func (m *Mobile) DataAtFeedSimpleFolder(feed []byte, cb PathCallbackWithTime)
- func (m *Mobile) DataAtPath(pth string, cb DataCallback)
- func (m *Mobile) DataAtStreamFile(feed []byte, cid []byte, cb DataCallback)
- func (m *Mobile) Decrypt(input []byte) ([]byte, error)
- func (m *Mobile) DeregisterCafe(id string, cb Callback)
- func (m *Mobile) DiscoverContacts(options []byte) (*SearchHandle, error)
- func (m *Mobile) Encrypt(input []byte) ([]byte, error)
- func (m *Mobile) FailCafeRequest(id string, reason string) error
- func (m *Mobile) Feed(req []byte) ([]byte, error)
- func (m *Mobile) File(blockId string) ([]byte, error)
- func (m *Mobile) FileAsStream_Text(thread string, sf []byte, file_type int) ([]byte, error)
- func (m *Mobile) FileContent(hash string, cb DataCallback)
- func (m *Mobile) Files(threadId string, offset string, limit int) ([]byte, error)
- func (m *Mobile) GetLog(handler HlogHandler)
- func (m *Mobile) GetLogSize(handler HlogHandler, size int)
- func (m *Mobile) GetMaxWorkers() int
- func (m *Mobile) GetRecord(key string) (string, error)
- func (m *Mobile) GetStreamDuration(streamId string) int64
- func (m *Mobile) GetStreamMode() int
- func (m *Mobile) GetSwarmAddress(pid string) (string, error)
- func (m *Mobile) GetVideo(id string) ([]byte, error)
- func (m *Mobile) GetVideoChunk(id string, chunk string) ([]byte, error)
- func (m *Mobile) GetVideoChunkByIndex(id string, index int64) ([]byte, error)
- func (m *Mobile) GitSummary() string
- func (m *Mobile) IgnoreInvite(id string) error
- func (m *Mobile) IgnoreInviteViaNotification(id string) error
- func (m *Mobile) ImageFileContentForMinWidth(pth string, minWidth int, cb DataCallback)
- func (m *Mobile) Invites() ([]byte, error)
- func (m *Mobile) IpfsAddData(data []byte, pin bool, hashOnly bool, cb IpfsAddDataCallback)
- func (m *Mobile) IpfsComparePath(pth1 string, pth2 string, cb IpfsCompareCallback)
- func (m *Mobile) IpfsListCids(pth string, cb IpfsListPathCallback)
- func (m *Mobile) IsAdminByAddress(threadId string, peerAddr string) (bool, error)
- func (m *Mobile) IsAdminById(threadId string, peerId string) (bool, error)
- func (m *Mobile) IsStreamFinished(streamId string) bool
- func (m *Mobile) ListSyncFile(address string, fileType int32) ([]byte, error)
- func (m *Mobile) Messages(offset string, limit int, threadId string) ([]byte, error)
- func (m *Mobile) Name() (string, error)
- func (m *Mobile) Notifications(offset string, limit int) ([]byte, error)
- func (m *Mobile) ObjectAtPath(pth string) ([]byte, error)
- func (m *Mobile) Online() bool
- func (m *Mobile) PeerId() (string, error)
- func (m *Mobile) PeerUser(peer string) ([]byte, error)
- func (m *Mobile) Profile() ([]byte, error)
- func (m *Mobile) PublishPeer(cb Callback)
- func (m *Mobile) PublishPeerToCafe(id string, cb Callback)
- func (m *Mobile) PublishSyncFile(file []byte) error
- func (m *Mobile) PublishVideo(video []byte, store bool) error
- func (m *Mobile) PublishVideoChunk(vchunk []byte) error
- func (m *Mobile) ReadAllNotifications() error
- func (m *Mobile) ReadNotification(id string) error
- func (m *Mobile) RefreshCafeSession(id string, cb ProtoCallback)
- func (m *Mobile) RegisterCafe(id string, token string, cb Callback)
- func (m *Mobile) RemoveContact(address string) error
- func (m *Mobile) RemoveRecordReport(key string) error
- func (m *Mobile) RemoveThread(id string) (string, error)
- func (m *Mobile) RemoveVideo(id string) error
- func (m *Mobile) RenameThread(id string, name string) error
- func (m *Mobile) SearchContacts(query []byte, options []byte) (*SearchHandle, error)
- func (m *Mobile) SearchSyncFiles(query []byte, options []byte) (*SearchHandle, error)
- func (m *Mobile) SearchThreadSnapshots(query []byte, options []byte) (*SearchHandle, error)
- func (m *Mobile) SearchVideo(query []byte, options []byte) (*SearchHandle, error)
- func (m *Mobile) SearchVideoChunks(query []byte, options []byte) (*SearchHandle, error)
- func (m *Mobile) Seed() string
- func (m *Mobile) SendRecordReport(key string, peerId string) error
- func (m *Mobile) SendRecordReportPb(report *pb.RecordReport, peerId string) error
- func (m *Mobile) SetAvatar(pth string, cb ProtoCallback)
- func (m *Mobile) SetLogLevel(level []byte) error
- func (m *Mobile) SetMaxWorkers(n int)
- func (m *Mobile) SetName(username string) error
- func (m *Mobile) SetStreamMode(mode int)
- func (m *Mobile) SetStreamSpeedInterval(intv int64)
- func (m *Mobile) Shadow() string
- func (m *Mobile) ShareFiles(data string, threadId string, caption string, cb ProtoCallback)
- func (m *Mobile) Sign(input []byte) ([]byte, error)
- func (m *Mobile) SnapshotThreads() error
- func (m *Mobile) Start() error
- func (m *Mobile) StartRecord(key string) error
- func (m *Mobile) StartRecordReport(key string) error
- func (m *Mobile) StartStream(thread string, stream []byte) error
- func (m *Mobile) StartStream_Text(thread string, stream []byte) error
- func (m *Mobile) Stop(cb Callback)
- func (m *Mobile) StopRecord(key string) error
- func (m *Mobile) StopRecordReport(key string) error
- func (m *Mobile) StreamAddFile(streamid string, f []byte) error
- func (m *Mobile) StreamGetStatus(streamId string) string
- func (m *Mobile) SubscribeStream(config string) error
- func (m *Mobile) Summary() ([]byte, error)
- func (m *Mobile) SwarmConnect(address string) (string, error)
- func (m *Mobile) SyncAccount(options []byte) (*SearchHandle, error)
- func (m *Mobile) SyncFile(file []byte) error
- func (m *Mobile) Thread(id string) ([]byte, error)
- func (m *Mobile) ThreadAddAdmin(threadId string, peerId string) error
- func (m *Mobile) ThreadAddStream(threadId string, streamId string) error
- func (m *Mobile) ThreadAddVideo(thread string, video string) error
- func (m *Mobile) ThreadAdmins(id string) ([]byte, error)
- func (m *Mobile) ThreadNonAdmins(id string) ([]byte, error)
- func (m *Mobile) ThreadPeers(id string) ([]byte, error)
- func (m *Mobile) ThreadRemovePeer(threadId string, peerId string) error
- func (m *Mobile) Threads() ([]byte, error)
- func (m *Mobile) TryConnectShadowByRelay(shadowId string)
- func (m *Mobile) UnsubscribeStream(streamid string) error
- func (m *Mobile) UpdateCafeRequestProgress(id string, transferred int64, total int64) error
- func (m *Mobile) Verify(input []byte, sig []byte) error
- func (m *Mobile) Version() string
- func (m *Mobile) WaitAdd(delta int, src string)
- func (m *Mobile) WaitDone(src string)
- func (m *Mobile) WriteCafeRequest(group string, cb ProtoCallback)
- func (m *Mobile) WriteTreeCSV(streamId string, outPath string) error
- type PathCallback
- type PathCallbackWithTime
- type ProtoCallback
- type ReedSolomon
- func (m *ReedSolomon) DecodePb(data []byte) ([]byte, error)
- func (m *ReedSolomon) EncodeBytes(data []byte, shardNumber int, parityNumber int, cb ShardCallback)
- func (m *ReedSolomon) EncodeBytesToPb(data []byte, shardNumber int, parityNumber int) ([]byte, error)
- func (m *ReedSolomon) OpenLog()
- func (m *ReedSolomon) PrepareCodec(shardNumber int, parityNumber int) error
- type RunConfig
- type SearchHandle
- type ShardCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountRepoExists ¶
AccountRepoExists return whether or not the repo at repoPath exists
func NewWalletFromHuaweiOpenId ¶
NewWalletFromHuaweiOpenId creates a brand new wallet using huawei open id and returns its recovery phrase
func RepoExists ¶
RepoExists return whether or not the repo at repoPath exists
Types ¶
type DataCallback ¶
DataCallback is used for asyc methods that deliver raw data
type DataCallbackWithTime ¶
type Event ¶
Event is sent by Messenger to the bridge (data is a protobuf, name is the string value of a pb.MobileEvent_Type)
type HlogHandler ¶
type HlogHandler interface { HandleLog(str string) LogEnd() }
HlogHandler is implemented in application layer
type InitConfig ¶
type InitConfig struct { Seed string RepoPath string BaseRepoPath string LogToDisk bool Debug bool IsPrivate bool }
InitConfig is used to setup a textile node
func (InitConfig) Repo ¶
func (conf InitConfig) Repo() (string, error)
Repo returns the actual location of the configured repo
func (InitConfig) RepoExists ¶
func (conf InitConfig) RepoExists() (bool, error)
RepoExists return whether or not the configured repo already exists
type IpfsAddDataCallback ¶
IpfsAddDataCallback is used for asyc methods that add raw data to ipfs
type IpfsCompareCallback ¶
type IpfsCompareCallback interface { // n1: number of cids in first path // n2: number of cids in second path // same: number of same cids Call(n1 int, n2 int, same int, AminusB int, BminusA int, err error) }
Used by mobile.IpfsComparePath
type IpfsListPathCallback ¶
Used by mobild.IpfsListCids
type Messenger ¶
type Messenger interface {
Notify(event *Event)
}
Messenger is a push mechanism to the bridge
type MigrateConfig ¶
type MigrateConfig struct {
RepoPath string
}
MigrateConfig is used to define options during a major migration
type Mobile ¶
type Mobile struct { RepoPath string // contains filtered or unexported fields }
Mobile is the name of the framework (must match package name)
func NewTextile ¶
Create a gomobile compatible wrapper around Textile
func (*Mobile) AcceptExternalInvite ¶
AcceptExternalInvite calls core AcceptExternalInvite
func (*Mobile) AcceptInvite ¶
AcceptInvite calls core AcceptInvite
func (*Mobile) AcceptInviteViaNotification ¶
AcceptInviteViaNotification call core AcceptInviteViaNotification
func (*Mobile) AccountContact ¶
AccountContact calls core AccountContact
func (*Mobile) AccountThread ¶
AccountThread calls core AccountThread
func (*Mobile) AddComment ¶
AddComment adds a comment targeted at the given block
func (*Mobile) AddContact ¶
AddContact calls core AddContact
func (*Mobile) AddData ¶
func (m *Mobile) AddData(data string, threadId string, caption string, cb ProtoCallback)
AddData adds raw data to a thread
func (*Mobile) AddExternalInvite ¶
AddExternalInvite generates a new external invite link to a thread
func (*Mobile) AddFiles ¶
func (m *Mobile) AddFiles(paths string, threadId string, caption string, cb ProtoCallback)
AddFiles builds a directory from paths (comma separated) and adds it to the thread Note: paths can be file system paths, IPFS hashes, or an existing file hash that may need decryption.
func (*Mobile) AddIgnore ¶
AddIgnore adds an ignore targeted at the given block and unpins any associated target data
func (*Mobile) AddMessage ¶
AddMessage adds a message to a thread
func (*Mobile) AddOrUpdateThread ¶
AddOrUpdateThread calls core AddOrUpdateThread
func (*Mobile) AddPicture ¶
func (m *Mobile) AddPicture(paths string, threadId string, caption string, cb ProtoCallback)
func (*Mobile) AddSimpleFile ¶
func (m *Mobile) AddSimpleFile(path string, threadId string, cb ProtoCallback)
AddSimpleFile aims to simplify the add file process The process is supposed to be really simple:
- Add file to ipfs and get the corresponding file cid.
- Add cid to thread. DO NOT BUILD IPLD NODE FOR IT.
- Get the file through ipfs.get(cid) when receive a simplefile thread block.
Note:
- No encryption
- The time used for each step would be kept and sent by record_service.
func (*Mobile) AddSimpleFolder ¶
func (m *Mobile) AddSimpleFolder(path string, threadId string, cb ProtoCallback)
func (*Mobile) AddSimplePicture ¶
func (m *Mobile) AddSimplePicture(path string, threadId string, cb ProtoCallback)
func (*Mobile) AddSyncFile ¶
func (*Mobile) AddVideoChunk ¶
func (*Mobile) BigFileAtSimpleFile ¶
func (m *Mobile) BigFileAtSimpleFile(feed []byte, cb PathCallbackWithTime)
func (*Mobile) BigFileAtStream ¶
func (m *Mobile) BigFileAtStream(feed []byte, cid []byte, cb PathCallback)
func (*Mobile) CafeRequestNotPending ¶
CafeRequestNotPending marks a request as not pending (new)
func (*Mobile) CafeRequestPending ¶
CafeRequestPending marks a request as pending
func (*Mobile) CafeRequests ¶
CafeRequests paginates new requests
func (*Mobile) CafeSession ¶
CafeSession calls core CafeSession
func (*Mobile) CafeSessions ¶
CafeSessions calls core CafeSessions
func (*Mobile) CheckCafeMessages ¶
CheckCafeMessages is the async flavor of checkCafeMessages
func (*Mobile) CompleteCafeRequest ¶
CompleteCafeRequest marks a request as complete
func (*Mobile) ConnectShadowTCP ¶
ConnectShadowTCP connect with shadow peer through tcp directly. It would not through any error. Only return connect success or not.
func (*Mobile) ConnectShadowTCP_Async ¶
Async version of ConnectShadowTCP
func (*Mobile) ConnectedAddresses ¶
func (*Mobile) ContactThreads ¶
ContactThreads calls core ContactThreads
func (*Mobile) CountUnreadNotifications ¶
CountUnreadNotifications calls core CountUnreadNotifications
func (*Mobile) DataAtFeedSimpleFile ¶
func (m *Mobile) DataAtFeedSimpleFile(feed []byte, cb DataCallbackWithTime)
func (*Mobile) DataAtFeedSimpleFolder ¶
func (m *Mobile) DataAtFeedSimpleFolder(feed []byte, cb PathCallbackWithTime)
func (*Mobile) DataAtPath ¶
func (m *Mobile) DataAtPath(pth string, cb DataCallback)
DataAtPath is the async version of dataAtPath
func (*Mobile) DataAtStreamFile ¶
func (m *Mobile) DataAtStreamFile(feed []byte, cid []byte, cb DataCallback)
func (*Mobile) DeregisterCafe ¶
DeegisterCafe is the async flavor of deregisterCafe
func (*Mobile) DiscoverContacts ¶
func (m *Mobile) DiscoverContacts(options []byte) (*SearchHandle, error)
DiscoverContacts calls core DiscoverContacts
func (*Mobile) FailCafeRequest ¶
FailCafeRequest deletes a request
func (*Mobile) FileAsStream_Text ¶
func (*Mobile) FileContent ¶
func (m *Mobile) FileContent(hash string, cb DataCallback)
FileContent is the async version of fileContent
func (*Mobile) GetLog ¶
func (m *Mobile) GetLog(handler HlogHandler)
func (*Mobile) GetLogSize ¶
func (m *Mobile) GetLogSize(handler HlogHandler, size int)
* Get size lines logs.
func (*Mobile) GetMaxWorkers ¶
func (*Mobile) GetStreamDuration ¶
func (*Mobile) GetStreamMode ¶
func (*Mobile) GetVideoChunk ¶
func (*Mobile) GetVideoChunkByIndex ¶
func (*Mobile) GitSummary ¶
GitSummary returns common GitSummary
func (*Mobile) IgnoreInvite ¶
IgnoreInvite calls core IgnoreInvite
func (*Mobile) IgnoreInviteViaNotification ¶
IgnoreInviteViaNotification call core IgnoreInviteViaNotification
func (*Mobile) ImageFileContentForMinWidth ¶
func (m *Mobile) ImageFileContentForMinWidth(pth string, minWidth int, cb DataCallback)
ImageFileContentForMinWidth is the async version of imageFileContentForMinWidth
func (*Mobile) IpfsAddData ¶
func (m *Mobile) IpfsAddData(data []byte, pin bool, hashOnly bool, cb IpfsAddDataCallback)
IpfsAddData is the async version of ipfsAddData
func (*Mobile) IpfsComparePath ¶
func (m *Mobile) IpfsComparePath(pth1 string, pth2 string, cb IpfsCompareCallback)
func (*Mobile) IpfsListCids ¶
func (m *Mobile) IpfsListCids(pth string, cb IpfsListPathCallback)
func (*Mobile) IsAdminByAddress ¶
IsAdminByAddress calls core IsAdminByAddress
func (*Mobile) IsAdminById ¶
IsAdminById calls core IsAdminById
func (*Mobile) IsStreamFinished ¶
func (*Mobile) ListSyncFile ¶
func (*Mobile) Notifications ¶
Notifications call core Notifications
func (*Mobile) PublishPeerToCafe ¶
func (*Mobile) PublishSyncFile ¶
func (*Mobile) PublishVideoChunk ¶
func (*Mobile) ReadAllNotifications ¶
ReadAllNotifications calls core ReadAllNotifications
func (*Mobile) ReadNotification ¶
ReadNotification calls core ReadNotification
func (*Mobile) RefreshCafeSession ¶
func (m *Mobile) RefreshCafeSession(id string, cb ProtoCallback)
RefreshCafeSession is the async flavor of refreshCafeSession
func (*Mobile) RegisterCafe ¶
RegisterCafe is the async flavor of registerCafe
func (*Mobile) RemoveContact ¶
RemoveContact calls core RemoveContact
func (*Mobile) RemoveRecordReport ¶
func (*Mobile) RemoveThread ¶
RemoveThread call core RemoveThread
func (*Mobile) RemoveVideo ¶
func (*Mobile) RenameThread ¶
RenameThread call core RenameThread
func (*Mobile) SearchContacts ¶
func (m *Mobile) SearchContacts(query []byte, options []byte) (*SearchHandle, error)
SearchContacts calls core SearchContacts
func (*Mobile) SearchSyncFiles ¶
func (m *Mobile) SearchSyncFiles(query []byte, options []byte) (*SearchHandle, error)
func (*Mobile) SearchThreadSnapshots ¶
func (m *Mobile) SearchThreadSnapshots(query []byte, options []byte) (*SearchHandle, error)
SearchThreadSnapshots calls core SearchThreadSnapshots
func (*Mobile) SearchVideo ¶
func (m *Mobile) SearchVideo(query []byte, options []byte) (*SearchHandle, error)
func (*Mobile) SearchVideoChunks ¶
func (m *Mobile) SearchVideoChunks(query []byte, options []byte) (*SearchHandle, error)
func (*Mobile) SendRecordReport ¶
func (*Mobile) SendRecordReportPb ¶
func (m *Mobile) SendRecordReportPb(report *pb.RecordReport, peerId string) error
func (*Mobile) SetAvatar ¶
func (m *Mobile) SetAvatar(pth string, cb ProtoCallback)
SetAvatar adds the image at pth to the account thread and calls core SetAvatar
func (*Mobile) SetLogLevel ¶
SetLogLevel calls core SetLogLevel
func (*Mobile) SetMaxWorkers ¶
func (*Mobile) SetStreamMode ¶
func (*Mobile) SetStreamSpeedInterval ¶
func (*Mobile) ShareFiles ¶
func (m *Mobile) ShareFiles(data string, threadId string, caption string, cb ProtoCallback)
ShareFiles adds an existing file DAG to a thread via its top level hash (data)
func (*Mobile) SnapshotThreads ¶
SnapshotThreads calls core SnapshotThreads
func (*Mobile) StartRecord ¶
func (*Mobile) StartRecordReport ¶
func (*Mobile) StartStream_Text ¶
func (*Mobile) StopRecord ¶
func (*Mobile) StopRecordReport ¶
func (*Mobile) StreamGetStatus ¶
func (*Mobile) SubscribeStream ¶
func (*Mobile) SwarmConnect ¶
SwarmConnect opens a new direct connection to a peer using an IPFS multiaddr
func (*Mobile) SyncAccount ¶
func (m *Mobile) SyncAccount(options []byte) (*SearchHandle, error)
SyncAccount calls core SyncAccount
func (*Mobile) ThreadAddAdmin ¶
ThreadAddAdmin calls core ThreadAddAdmin
func (*Mobile) ThreadAddStream ¶
func (*Mobile) ThreadAdmins ¶
ThreadPeers calls core ThreadPeers
func (*Mobile) ThreadNonAdmins ¶
ThreadPeers calls core ThreadPeers
func (*Mobile) ThreadPeers ¶
ThreadPeers calls core ThreadPeers
func (*Mobile) ThreadRemovePeer ¶
RemovePeer calls core RemovePeer
func (*Mobile) TryConnectShadowByRelay ¶
func (*Mobile) UnsubscribeStream ¶
func (*Mobile) UpdateCafeRequestProgress ¶
UpdateCafeRequestProgress updates the request with progress info
func (*Mobile) WriteCafeRequest ¶
func (m *Mobile) WriteCafeRequest(group string, cb ProtoCallback)
WriteCafeRequest is the async version of writeCafeRequest
type PathCallback ¶
type PathCallbackWithTime ¶
type ProtoCallback ¶
ProtoCallback is used for asyc methods that deliver a protobuf message
type ReedSolomon ¶
type ReedSolomon struct {
// contains filtered or unexported fields
}
func NewEmptyReedSolomon ¶
func NewEmptyReedSolomon() *ReedSolomon
func NewReedSolomon ¶
func NewReedSolomon(shardNumber int, parityNumber int) *ReedSolomon
func (*ReedSolomon) EncodeBytes ¶
func (m *ReedSolomon) EncodeBytes(data []byte, shardNumber int, parityNumber int, cb ShardCallback)
func (*ReedSolomon) EncodeBytesToPb ¶
func (*ReedSolomon) OpenLog ¶
func (m *ReedSolomon) OpenLog()
func (*ReedSolomon) PrepareCodec ¶
func (m *ReedSolomon) PrepareCodec(shardNumber int, parityNumber int) error
type RunConfig ¶
type RunConfig struct { RepoPath string Debug bool CafeOutboxHandler core.CafeOutboxHandler }
RunConfig is used to define run options for a mobile node
type SearchHandle ¶
type SearchHandle struct { Id string // contains filtered or unexported fields }
SearchHandle is used to cancel an async search request
type ShardCallback ¶
ShardPbCallback is used to get the shards from shardlist. Note that the meaning of data is according to caller.
Source Files
¶
- account.go
- cafes.go
- comments.go
- contacts.go
- feed.go
- files.go
- flags.go
- ignores.go
- invites.go
- ipfs.go
- likes.go
- logs.go
- messages.go
- mobile.go
- notifications.go
- peers.go
- profile.go
- record.go
- reedsolomon.go
- schemas.go
- search.go
- shadow.go
- simple_file.go
- stream.go
- sync_file.go
- test_utils.go
- threads.go
- video.go