Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidHuie/httpq
/ functions
Functions
603 in github.com/DavidHuie/httpq
⨍
Functions
603
◇
Types & classes
68
↓ 187 callers
Function
equals
equals fails the test if exp is not equal to act.
Godeps/_workspace/src/github.com/boltdb/bolt/bolt_test.go:30
↓ 177 callers
Method
Bucket
Bucket retrieves a bucket by name. Returns nil if the bucket does not exist.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:90
↓ 129 callers
Method
Close
Close closes the connection.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:25
↓ 122 callers
Method
Update
Update executes a function within the context of a read-write managed transaction. If no error is returned from the function then the transaction is c
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:459
↓ 117 callers
Method
CreateBucket
CreateBucket creates a new bucket. Returns an error if the bucket already exists, if the bucket name is blank, or if the bucket name is too long.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:96
↓ 106 callers
Method
Put
Put sets the value for a key in the bucket. If the key exist then its previous value will be overwritten. Returns an error if the bucket was created f
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:273
↓ 106 callers
Function
ok
ok fails the test if an err is not nil.
Godeps/_workspace/src/github.com/boltdb/bolt/bolt_test.go:21
↓ 93 callers
Method
Do
Do sends a command to the server and returns the received reply.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:34
↓ 89 callers
Method
Close
Close closes the database and deletes the underlying file.
Godeps/_workspace/src/github.com/boltdb/bolt/db_test.go:622
↓ 89 callers
Function
NewTestDB
NewTestDB returns a new instance of TestDB.
Godeps/_workspace/src/github.com/boltdb/bolt/db_test.go:613
↓ 77 callers
Function
assert
assert fails the test if the condition is false.
Godeps/_workspace/src/github.com/boltdb/bolt/bolt_test.go:12
↓ 53 callers
Method
View
View executes a function within the context of a managed read-only transaction. Any error that is returned from the function is returned from the View
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:490
↓ 47 callers
Method
Send
Send writes the command to the client's output buffer.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:37
↓ 44 callers
Method
Get
Get retrieves the value for a key in the bucket. Returns a nil value if the key does not exist or if the key is a nested bucket.
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:255
↓ 41 callers
Method
Get
Get gets a connection. The application must close the returned connection. This method always returns a valid connection so that applications can defe
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool.go:149
↓ 25 callers
Method
Begin
Begin starts a new transaction. Multiple read-only transactions can be used concurrently but only one write transaction can be used at a time. Startin
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:345
↓ 25 callers
Method
put
put inserts a key/value.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:116
↓ 24 callers
Function
fatal
(v ...interface{})
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go:157
↓ 23 callers
Method
check
(message string, p *redis.Pool, dialed, open int)
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool_test.go:75
↓ 22 callers
Function
_assert
_assert will panic with a given formatted message if the given condition is false.
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:691
↓ 21 callers
Function
tempfile
tempfile returns a temporary file path.
Godeps/_workspace/src/github.com/boltdb/bolt/db_test.go:693
↓ 20 callers
Method
CreateBucketIfNotExists
CreateBucketIfNotExists creates a new bucket if it doesn't already exist. Returns an error if the bucket name is blank, or if the bucket name is too l
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:102
↓ 20 callers
Method
Cursor
Cursor creates a cursor associated with the root bucket. All items in the cursor will return a nil value because all root bucket keys point to buckets
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:79
↓ 20 callers
Function
ve
(v interface{}, err error)
Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply_test.go:31
↓ 19 callers
Method
Close
Close releases the resources used by the pool.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool.go:166
↓ 19 callers
Method
Rollback
Rollback closes the transaction and ignores all previous updates.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:207
↓ 18 callers
Method
Next
Next moves the cursor to the next item in the bucket and returns its key and value. If the cursor is at the end of the bucket then a nil key and value
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:61
↓ 17 callers
Method
Dial
Dial connects to the Redis server at address on the named network.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn.go:88
↓ 17 callers
Method
Error
()
Godeps/_workspace/src/github.com/boltdb/bolt/tx_test.go:310
↓ 16 callers
Method
Add
Add returns the result of appending value to args.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go:463
↓ 16 callers
Method
String
String returns the string representation of the database.
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:87
↓ 16 callers
Function
printf
(format string, v ...interface{})
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go:141
↓ 15 callers
Method
Err
Err returns a non-nil value if the connection is broken. The returned value is either the first non-nil value returned from the underlying network con
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:31
↓ 15 callers
Method
Flush
Flush flushes the output buffer to the Redis server.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:40
↓ 14 callers
Method
First
First moves the cursor to the first item in the bucket and returns its key and value. If the bucket is empty then a nil key and value are returned.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:28
↓ 14 callers
Method
Path
Path returns the path to currently open database file.
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:77
↓ 13 callers
Method
Commit
Commit writes all changes to disk and updates the meta page. Returns an error if a disk write error occurs.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:131
↓ 13 callers
Function
testSimulate
Randomly generate operations on a given database with multiple clients to ensure consistency and thread safety.
Godeps/_workspace/src/github.com/boltdb/bolt/simulation_test.go:31
↓ 12 callers
Method
Delete
Delete removes a key from the bucket. If the key does not exist then nothing is done and a nil error is returned. Returns an error if the bucket was c
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:305
↓ 12 callers
Method
Receive
Receive receives a single reply from the Redis server
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go:43
↓ 12 callers
Function
SetTestMode
SetTestMode sets whether the CLI is running in test mode and resets the logger.
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go:190
↓ 12 callers
Method
Stats
Stats retrieves a copy of the current transaction statistics.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:84
↓ 12 callers
Function
dial
dial wraps DialTestDB() with a more suitable function name for examples.
Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply_test.go:105
↓ 12 callers
Function
equals
equals fails the test if exp is not equal to act.
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main_test.go:63
↓ 12 callers
Method
page
page returns a reference to the page with a given id. If page has been written to then a temporary bufferred page is returned.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:465
↓ 12 callers
Function
println
(v ...interface{})
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go:149
↓ 12 callers
Function
run
run executes a command against the CLI and returns the output.
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main_test.go:30
↓ 11 callers
Method
ForEach
ForEach executes a function for each bucket in the root. If the provided function returns an error then the iteration is stopped and the error is retu
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:115
↓ 11 callers
Method
MustCheck
MustCheck runs a consistency check on the database and panics if any errors are found.
Godeps/_workspace/src/github.com/boltdb/bolt/db_test.go:652
↓ 11 callers
Method
free
free adds the node's underlying page to the freelist.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:577
↓ 10 callers
Method
Check
Check performs several consistency checks on the database for this transaction. An error is returned if any inconsistency is found. It can be safely
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:313
↓ 10 callers
Method
allocate
allocate returns the starting page id of a contiguous list of pages of a given size. If a contiguous block cannot be found then 0 is returned.
Godeps/_workspace/src/github.com/boltdb/bolt/freelist.go:64
↓ 9 callers
Function
cannotConvert
(d reflect.Value, s interface{})
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go:34
↓ 8 callers
Method
Cursor
Cursor creates a cursor associated with the bucket. The cursor is only valid as long as the transaction is open. Do not use a cursor after the transac
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:89
↓ 8 callers
Method
DeleteBucket
DeleteBucket deletes a bucket. Returns an error if the bucket cannot be found or if the key represents a non-bucket value.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:108
↓ 8 callers
Method
Page
Page returns page information for a given page number. This is only safe for concurrent use when used by a writable transaction.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:495
↓ 8 callers
Function
fatalf
(format string, v ...interface{})
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go:164
↓ 8 callers
Method
meta
meta retrieves the current meta page reference.
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:547
↓ 8 callers
Method
node
node creates a node from a page and associates it with a given parent.
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:608
↓ 8 callers
Function
open
open creates and opens a Bolt database in the temp directory.
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main_test.go:18
↓ 8 callers
Method
rollback
()
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:216
↓ 8 callers
Method
seek
seek moves the cursor to a given key and returns it. If the key does not exist then the next key is used.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:140
↓ 7 callers
Method
NextSequence
NextSequence returns an autoincrementing integer for the bucket.
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:328
↓ 7 callers
Method
Prev
Prev moves the cursor to the previous item in the bucket and returns its key and value. If the cursor is at the beginning of the bucket then a nil key
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:72
↓ 7 callers
Method
Seek
Seek moves the cursor to a given key and returns it. If the key does not exist then the next key is used. If no keys follow, a nil key is returned.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:103
↓ 7 callers
Method
branchPageElement
branchPageElement retrieves the branch node by index
Godeps/_workspace/src/github.com/boltdb/bolt/page.go:68
↓ 7 callers
Method
count
count returns the number of inodes or page elements.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:372
↓ 7 callers
Function
expectPushed
(t *testing.T, c redis.PubSubConn, message string, expected interface{})
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pubsub_test.go:106
↓ 7 callers
Method
removeChild
removes a node from the list of in-memory children. This does not affect the inodes.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:535
↓ 7 callers
Method
typ
typ returns a human readable page type string used for debugging.
Godeps/_workspace/src/github.com/boltdb/bolt/page.go:38
↓ 6 callers
Method
Size
()
queue.go:6
↓ 6 callers
Method
del
del removes a key from the node.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:144
↓ 6 callers
Method
fatal
(err error)
Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn.go:128
↓ 6 callers
Method
keyValue
keyValue returns the key and value of the current leaf element.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:317
↓ 6 callers
Function
newFreelist
newFreelist returns an empty, initialized freelist.
Godeps/_workspace/src/github.com/boltdb/bolt/freelist.go:18
↓ 6 callers
Method
pageNode
pageNode returns the in-memory node, if it exists. Otherwise returns the underlying page.
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:670
↓ 6 callers
Method
read
read initializes the node from a page.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:161
↓ 5 callers
Method
AddFlat
AddFlat returns the result of appending the flattened value of v to args. Maps are flattened by appending the alternating keys and map values to args
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go:479
↓ 5 callers
Method
Last
Last moves the cursor to the last item in the bucket and returns its key and value. If the bucket is empty then a nil key and value are returned.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:44
↓ 5 callers
Method
Len
()
Godeps/_workspace/src/github.com/boltdb/bolt/page.go:85
↓ 5 callers
Method
Write
(p []byte)
Godeps/_workspace/src/github.com/boltdb/bolt/tx_test.go:319
↓ 5 callers
Method
key
key returns a byte slice of the node key.
Godeps/_workspace/src/github.com/boltdb/bolt/page.go:111
↓ 5 callers
Method
leafPageElement
leafPageElement retrieves the leaf node by index
Godeps/_workspace/src/github.com/boltdb/bolt/page.go:57
↓ 5 callers
Method
pageInBuffer
pageInBuffer retrieves a page reference from a given byte array based on the current page size.
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:542
↓ 5 callers
Function
qconfig
()
Godeps/_workspace/src/github.com/boltdb/bolt/quick_test.go:37
↓ 5 callers
Method
size
size returns the size of the node after serialization.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:40
↓ 5 callers
Method
writeString
(s string)
Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn.go:164
↓ 4 callers
Method
Add
(other BucketStats)
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:718
↓ 4 callers
Method
CopyFile
CopyFile copies the entire database to file at the given path. A reader transaction is maintained during the copy so it is safe to continue using the
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:291
↓ 4 callers
Method
OnCommit
OnCommit adds a handler function to be executed after the transaction successfully commits.
Godeps/_workspace/src/github.com/boltdb/bolt/tx.go:125
↓ 4 callers
Function
Scan
Scan copies from src to the values pointed at by dest. The values pointed at by dest must be an integer, float, boolean, string, []byte, interface{}
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go:207
↓ 4 callers
Function
Values
Values is a helper that converts an array command reply to a []interface{}. If err is not equal to nil, then Values returns nil, err. Otherwise, Value
Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply.go:229
↓ 4 callers
Method
Writable
Writable returns whether the bucket is writable.
Godeps/_workspace/src/github.com/boltdb/bolt/bucket.go:82
↓ 4 callers
Method
args
(spec string, keysAndArgs []interface{})
Godeps/_workspace/src/github.com/garyburd/redigo/redis/script.go:43
↓ 4 callers
Method
close
()
Godeps/_workspace/src/github.com/boltdb/bolt/db.go:308
↓ 4 callers
Function
convertAssignValue
(d reflect.Value, s interface{})
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go:98
↓ 4 callers
Function
fileSize
(path string)
Godeps/_workspace/src/github.com/boltdb/bolt/db_test.go:743
↓ 4 callers
Method
isLeaf
isLeaf returns whether the ref is pointing at a leaf page/node.
Godeps/_workspace/src/github.com/boltdb/bolt/cursor.go:364
↓ 4 callers
Method
numChildren
numChildren returns the number of children.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:87
↓ 4 callers
Method
pageElementSize
pageElementSize returns the size of each page element based on the type of node.
Godeps/_workspace/src/github.com/boltdb/bolt/node.go:65
next →
1–100 of 603, ranked by callers