Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aclindsa/asink
/ functions
Functions
126 in github.com/aclindsa/asink
⨍
Functions
126
◇
Types & classes
32
↓ 22 callers
Method
Close
()
asink/storage_local.go:55
↓ 17 callers
Method
Error
()
asink/process_events.go:34
↓ 6 callers
Function
ProcessLocalEvent_Upper
(globals *AsinkGlobals, event *asink.Event)
asink/process_events.go:133
↓ 5 callers
Method
Write
(p []byte)
asink/storage_local.go:51
↓ 4 callers
Method
IsUpdate
()
events.go:43
↓ 4 callers
Function
LockPath
locks the path to ensure nothing else inside asink is mucking with that file. 'local' determines the precedence of the lock - all local lock requester
asink/path_map.go:100
↓ 4 callers
Function
ProcessRemoteEvent
(globals *AsinkGlobals, event *asink.Event)
asink/process_events.go:337
↓ 4 callers
Function
UnlockPath
unlocks the path, storing the updated event back to the database
asink/path_map.go:107
↓ 3 callers
Function
HashPassword
(pw string)
asinkd/users.go:27
↓ 3 callers
Function
StatOnline
()
asink/status.go:70
↓ 3 callers
Function
StatStartLocalUpdate
()
asink/status.go:40
↓ 3 callers
Function
StatStopDownload
()
asink/status.go:61
↓ 3 callers
Function
StatStopLocalUpdate
()
asink/status.go:43
↓ 3 callers
Method
String
()
asinkd/user_admin.go:38
↓ 3 callers
Function
getEvents
(w http.ResponseWriter, r *http.Request, user *User, nextEvent uint64)
asinkd/server.go:90
↓ 2 callers
Function
AuthenticatedRequest
(method, url, bodyType string, body io.Reader, username, password string)
asink/net.go:35
↓ 2 callers
Method
DatabaseGetUser
(username string)
asinkd/database.go:213
↓ 2 callers
Function
ErrorWasExit
(err error)
asink/process_events.go:58
↓ 2 callers
Method
IsDelete
()
events.go:47
↓ 2 callers
Method
IsSameEvent
(e2 *Event)
events.go:51
↓ 2 callers
Function
ProcessLocalEvent
(globals *AsinkGlobals, event *asink.Event)
asink/process_events.go:100
↓ 2 callers
Function
ProcessLocalEvent_Lower
(globals *AsinkGlobals, event *asink.Event)
asink/process_events.go:234
↓ 2 callers
Method
Set
(value string)
asinkd/user_admin.go:28
↓ 2 callers
Function
StatOffline
()
asink/status.go:77
↓ 2 callers
Function
getSocketFromArgs
(args []string)
asink/client.go:155
↓ 2 callers
Function
handleConflict
handle a conflict by copying the loser event to another file
asink/process_events.go:78
↓ 2 callers
Function
processLocalEvent_Lower
(globals *AsinkGlobals, event *asink.Event, latestLocal *asink.Event)
asink/process_events.go:253
↓ 2 callers
Function
processLocalEvent_Upper
(globals *AsinkGlobals, event *asink.Event, latestLocal *asink.Event, absolutePath string)
asink/process_events.go:160
↓ 1 callers
Function
AuthenticateUser
(r *http.Request)
asinkd/server.go:215
↓ 1 callers
Function
AuthenticatedGet
(url string, username, password string)
asink/net.go:47
↓ 1 callers
Function
AuthenticatedPost
(url, bodyType string, body io.Reader, username, password string)
asink/net.go:50
↓ 1 callers
Function
CopyReaderToTmp
(src io.Reader, tmpdir string)
util/util.go:53
↓ 1 callers
Method
DatabaseAddEvent
(e *asink.Event)
asink/database.go:59
↓ 1 callers
Method
DatabaseAddEvents
(u *User, events []*asink.Event)
asinkd/database.go:71
↓ 1 callers
Method
DatabaseAddUser
(u *User)
asinkd/database.go:128
↓ 1 callers
Method
DatabaseDeleteUser
(u *User)
asinkd/database.go:233
↓ 1 callers
Method
DatabaseGetAllFiles
Sends events down resultsChan for all files currently tracked in the database. nil will be sent to signify there are no more events. If an error occur
asink/database.go:173
↓ 1 callers
Method
DatabaseLatestEventForPath
returns nil if no such event exists
asink/database.go:129
↓ 1 callers
Method
DatabaseLatestRemoteEvent
returns nil if no such event exists
asink/database.go:150
↓ 1 callers
Method
DatabaseRetrieveEvents
(firstId uint64, maxEvents uint, u *User)
asinkd/database.go:106
↓ 1 callers
Method
DatabaseUpdateEvent
(e *asink.Event)
asink/database.go:91
↓ 1 callers
Method
DatabaseUpdateUser
set attributes for the user with the same Id as *u
asinkd/database.go:173
↓ 1 callers
Function
ErrorRequiresExit
(err error)
asink/process_events.go:67
↓ 1 callers
Method
Get
Close() MUST be called on the returned io.ReadCloser
asink/storage.go:19
↓ 1 callers
Function
GetAndInitDB
()
asinkd/database.go:23
↓ 1 callers
Function
GetAndInitDB
(config *conf.ConfigFile)
asink/database.go:22
↓ 1 callers
Function
GetEvents
(globals *AsinkGlobals, events chan *asink.Event)
asink/net.go:133
↓ 1 callers
Function
GetStats
low bit is 1 if online, 0 if offline
asink/status.go:20
↓ 1 callers
Function
GetStorage
(config *conf.ConfigFile)
asink/storage.go:22
↓ 1 callers
Function
HashFile
(filename string)
asink/hash.go:14
↓ 1 callers
Function
NewDecrypter
(ciphertextReader io.ReadCloser, key string)
asink/encryption.go:20
↓ 1 callers
Function
NewEncrypter
(writer io.WriteCloser, key string)
asink/encryption.go:12
↓ 1 callers
Function
NewFTPStorage
(config *conf.ConfigFile)
asink/storage_ftp.go:26
↓ 1 callers
Function
NewGDriveStorage
(config *conf.ConfigFile)
asink/storage_gdrive.go:29
↓ 1 callers
Function
NewLocalStorage
(config *conf.ConfigFile)
asink/storage_local.go:22
↓ 1 callers
Function
NewNormalContext
(globals *AsinkGlobals, localChan chan *asink.Event, remoteChan chan *asink.Event, exitChan chan int)
asink/context_normal.go:22
↓ 1 callers
Function
NewStartupContext
(globals *AsinkGlobals, localChan chan *asink.Event, remoteChan chan *asink.Event, initialWalkComplete chan in
asink/context_startup.go:22
↓ 1 callers
Function
PathLocker
(db *AsinkDB)
asink/path_map.go:27
↓ 1 callers
Method
Put
Close() MUST be called on the returned io.WriteCloser. When the upload is complete either nil or an error will be written to the 'done' channel.
asink/storage.go:17
↓ 1 callers
Method
Run
()
asink/context_normal.go:72
↓ 1 callers
Method
Run
()
asink/context_startup.go:32
↓ 1 callers
Function
SendEvent
(globals *AsinkGlobals, event *asink.Event)
asink/net.go:126
↓ 1 callers
Function
SendEvents
(globals *AsinkGlobals)
asink/net.go:93
↓ 1 callers
Function
StartRPC
(sock string, tornDown chan int, adb *AsinkDB)
asinkd/rpc_server.go:81
↓ 1 callers
Function
StartRPC
(sock string, tornDown chan int)
asink/rpc_server.go:27
↓ 1 callers
Function
StartWatching
(watchDir string, fileUpdates chan *asink.Event, initialWalkComplete chan int)
asink/watcher.go:16
↓ 1 callers
Function
StatStartDownload
()
asink/status.go:58
↓ 1 callers
Function
StatStartRemoteUpdate
()
asink/status.go:46
↓ 1 callers
Function
StatStartSending
()
asink/status.go:64
↓ 1 callers
Function
StatStartUpload
()
asink/status.go:52
↓ 1 callers
Function
StatStopRemoteUpdate
()
asink/status.go:49
↓ 1 callers
Function
StatStopSending
()
asink/status.go:67
↓ 1 callers
Function
StatStopUpload
()
asink/status.go:55
↓ 1 callers
Method
ValidPassword
(pw string)
asinkd/users.go:33
↓ 1 callers
Function
actuallySendEvents
(globals *AsinkGlobals, events []*asink.Event)
asink/net.go:54
↓ 1 callers
Function
addPoller
(uid int64, channel *chan *asink.Event)
asinkd/longpolling.go:30
↓ 1 callers
Function
broadcastToPollers
(uid int64, event *asink.Event)
asinkd/longpolling.go:64
↓ 1 callers
Function
exitChanWaiter
(waiterChan chan int)
exit.go:52
↓ 1 callers
Function
newBoolIsSetFlag
(defaultValue bool)
asinkd/user_admin.go:22
↓ 1 callers
Function
putEvents
(w http.ResponseWriter, r *http.Request, user *User)
asinkd/server.go:131
↓ 1 callers
Method
runWorker
()
asink/context_normal.go:31
↓ 1 callers
Function
setupCleanExitOnSignals
()
exit.go:26
Method
AddUser
(user *User, result *int)
asinkd/rpc_server.go:26
Function
CopyToTmp
(src string, tmpdir string)
util/util.go:68
Function
EnsureDirExists
(dir string)
util/util.go:15
Function
ErrorFileNotFound
(err error)
util/util.go:78
Function
Exit
(exitCode int)
exit.go:43
Function
FileExistsAndHasPermissions
(file string, mode os.FileMode)
util/util.go:35
Method
Get
(hash string)
asink/storage_ftp.go:106
Method
Get
(hash string)
asink/storage_gdrive.go:131
Method
Get
(hash string)
asink/storage_local.go:78
Method
GetClientStatus
(code *int, result *string)
asink/rpc_server.go:22
Function
GetStatus
(args []string)
asink/client.go:197
Method
IsAdmin
()
asinkd/users.go:37
Method
IsBoolFlag
()
asinkd/user_admin.go:40
Method
ModifyUser
(args *UserModifierArgs, result *int)
asinkd/rpc_server.go:36
Function
PrintVersion
(args []string)
asinkd/main.go:70
Function
PrintVersion
(args []string)
asink/main.go:60
Method
Put
(hash string, done chan error)
asink/storage_ftp.go:60
Method
Put
(hash string, done chan error)
asink/storage_gdrive.go:110
next →
1–100 of 126, ranked by callers