Commits

w...@styx.org  committed 08605d1

docs

  • Participants
  • Parent commits afc6907

Comments (0)

Files changed (2)

 			<pre>const KCMSET int = C.KCMSET</pre>
 			
 			<pre>const KCMSET int = _Cconst_KCMSET</pre>
-			<h2 id="Item">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6496:6542#L291">Item</a></h2>
+			<h2 id="Item">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7749:7795#L341">Item</a></h2>
 			
 			<p><pre>type Item struct {
-    Key   string
-    Value string
+    Key   []byte
+    Value []byte
 }</pre></p>
-			<h2 id="KCCUR">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4848:4891#L196">KCCUR</a></h2>
+			<h2 id="KCCUR">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5845:5888#L242">KCCUR</a></h2>
 			
 			<p><pre>type KCCUR struct {
     <span class ="comment">// contains unexported fields</span>
 }</pre></p>
-				<h3 id="KCCUR.Del">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5098:5121#L214">Del</a></h3>
+				<h3 id="KCCUR.Del">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6095:6118#L260">Del</a></h3>
 				<p><code>func (kcc *KCCUR) Del()</code></p>
 				
-				<h3 id="KCCUR.Get">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5679:5736#L240">Get</a></h3>
-				<p><code>func (kcc *KCCUR) Get(advance int) (k, v string, ok bool)</code></p>
+				<h3 id="KCCUR.Get">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6804:6861#L288">Get</a></h3>
+				<p><code>func (kcc *KCCUR) Get(advance int) (k, v []byte, ok bool)</code></p>
 				
-				<h3 id="KCCUR.GetKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5153:5210#L218">GetKey</a></h3>
-				<p><code>func (kcc *KCCUR) GetKey(advance int) (k string, ok bool)</code></p>
+				<h3 id="KCCUR.GetKey">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6150:6207#L264">GetKey</a></h3>
+				<p><code>func (kcc *KCCUR) GetKey(advance int) (k []byte, ok bool)</code></p>
 				
-				<h3 id="KCCUR.GetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5414:5473#L229">GetValue</a></h3>
-				<p><code>func (kcc *KCCUR) GetValue(advance int) (v string, ok bool)</code></p>
+				<h3 id="KCCUR.GetValue">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6475:6534#L276">GetValue</a></h3>
+				<p><code>func (kcc *KCCUR) GetValue(advance int) (v []byte, ok bool)</code></p>
 				
-				<h3 id="KCCUR.Jump">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5041:5065#L210">Jump</a></h3>
+				<h3 id="KCCUR.Jump">func (*KCCUR) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6038:6062#L256">Jump</a></h3>
 				<p><code>func (kcc *KCCUR) Jump()</code></p>
 				
 			<h2 id="KCDB">type <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=99:139#L1">KCDB</a></h2>
 				<h3 id="KCDB.New">func <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=141:157#L3">New</a></h3>
 				<p><code>func New() *KCDB</code></p>
 				
-				<h3 id="KCDB.Add">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3226:3279#L140">Add</a></h3>
-				<p><code>func (kc *KCDB) Add(key, value string) (err os.Error)</code></p>
+				<h3 id="KCDB.Add">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3826:3879#L177">Add</a></h3>
+				<p><code>func (kc *KCDB) Add(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Append">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3914:3970#L162">Append</a></h3>
-				<p><code>func (kc *KCDB) Append(key, value string) (err os.Error)</code></p>
+				<h3 id="KCDB.Append">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4426:4482#L195">Append</a></h3>
+				<p><code>func (kc *KCDB) Append(key, value []byte) (err os.Error)</code></p>
+				
+				<h3 id="KCDB.BeginTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2886:2937#L129">BeginTran</a></h3>
+				<p><code>func (kc *KCDB) BeginTran(hard bool) (err os.Error)</code></p>
+				
+				<h3 id="KCDB.BeginTranTry">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3096:3150#L142">BeginTranTry</a></h3>
+				<p><code>func (kc *KCDB) BeginTranTry(hard bool) (err os.Error)</code></p>
 				
 				<h3 id="KCDB.Clear">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1516:1554#L72">Clear</a></h3>
 				<p><code>func (kc *KCDB) Clear() (err os.Error)</code></p>
 				<h3 id="KCDB.Count">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1169:1221#L52">Count</a></h3>
 				<p><code>func (kc *KCDB) Count() (count uint64, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Cursor">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4893:4930#L200">Cursor</a></h3>
+				<h3 id="KCDB.Cursor">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5890:5927#L246">Cursor</a></h3>
 				<p><code>func (kc *KCDB) Cursor() (kcc *KCCUR)</code></p>
 				
 				<h3 id="KCDB.Del">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=686:707#L29">Del</a></h3>
 				<h3 id="KCDB.Dump">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2447:2499#L112">Dump</a></h3>
 				<p><code>func (kc *KCDB) Dump(filename string) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Get">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4485:4545#L182">Get</a></h3>
-				<p><code>func (kc *KCDB) Get(key string) (value string, err os.Error)</code></p>
+				<h3 id="KCDB.EndTran">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3312:3363#L155">EndTran</a></h3>
+				<p><code>func (kc *KCDB) EndTran(commit bool) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Items">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6544:6584#L296">Items</a></h3>
+				<h3 id="KCDB.Get">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5430:5490#L228">Get</a></h3>
+				<p><code>func (kc *KCDB) Get(key []byte) (value []byte, err os.Error)</code></p>
+				
+				<h3 id="KCDB.IncrDouble">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=5179:5248#L220">IncrDouble</a></h3>
+				<p><code>func (kc *KCDB) IncrDouble(key []byte, amount float64) (err os.Error)</code></p>
+				
+				<h3 id="KCDB.IncrInt">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4932:4996#L212">IncrInt</a></h3>
+				<p><code>func (kc *KCDB) IncrInt(key []byte, amount int64) (err os.Error)</code></p>
+				
+				<h3 id="KCDB.Items">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7797:7837#L346">Items</a></h3>
 				<p><code>func (kc *KCDB) Items() (out chan *Item)</code></p>
 				
-				<h3 id="KCDB.Keys">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6002:6042#L253">Keys</a></h3>
-				<p><code>func (kc *KCDB) Keys() (out chan string)</code></p>
+				<h3 id="KCDB.Keys">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7255:7295#L303">Keys</a></h3>
+				<p><code>func (kc *KCDB) Keys() (out chan []byte)</code></p>
 				
 				<h3 id="KCDB.Load">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2668:2720#L120">Load</a></h3>
 				<p><code>func (kc *KCDB) Load(filename string) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.MatchPrefix">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6798:6885#L315">MatchPrefix</a></h3>
-				<p><code>func (kc *KCDB) MatchPrefix(prefix string, max int) (matches chan string, err os.Error)</code></p>
+				<h3 id="KCDB.MatchPrefix">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8051:8138#L365">MatchPrefix</a></h3>
+				<p><code>func (kc *KCDB) MatchPrefix(prefix []byte, max int) (matches chan []byte, err os.Error)</code></p>
 				
-				<h3 id="KCDB.MatchRegex">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7378:7463#L336">MatchRegex</a></h3>
-				<p><code>func (kc *KCDB) MatchRegex(regex string, max int) (matches chan string, err os.Error)</code></p>
+				<h3 id="KCDB.MatchRegex">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=8615:8700#L385">MatchRegex</a></h3>
+				<p><code>func (kc *KCDB) MatchRegex(regex string, max int) (matches chan []byte, err os.Error)</code></p>
 				
 				<h3 id="KCDB.Merge">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2144:2204#L100">Merge</a></h3>
 				<p><code>func (kc *KCDB) Merge(sdbs []*KCDB, mode int) (err os.Error)</code></p>
 				<h3 id="KCDB.Path">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=736:786#L33">Path</a></h3>
 				<p><code>func (kc *KCDB) Path() (path string, err os.Error)</code></p>
 				
-				<h3 id="KCDB.Remove">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4260:4309#L173">Remove</a></h3>
-				<p><code>func (kc *KCDB) Remove(key string) (err os.Error)</code></p>
+				<h3 id="KCDB.Remove">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4728:4777#L204">Remove</a></h3>
+				<p><code>func (kc *KCDB) Remove(key []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Replace">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3566:3623#L151">Replace</a></h3>
-				<p><code>func (kc *KCDB) Replace(key, value string) (err os.Error)</code></p>
+				<h3 id="KCDB.Replace">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=4122:4179#L186">Replace</a></h3>
+				<p><code>func (kc *KCDB) Replace(key, value []byte) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Set">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=2886:2939#L129">Set</a></h3>
-				<p><code>func (kc *KCDB) Set(key, value string) (err os.Error)</code></p>
+				<h3 id="KCDB.Set">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=3530:3583#L168">Set</a></h3>
+				<p><code>func (kc *KCDB) Set(key, value []byte) (err os.Error)</code></p>
 				
 				<h3 id="KCDB.Size">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1346:1396#L62">Size</a></h3>
 				<p><code>func (kc *KCDB) Size() (size uint64, err os.Error)</code></p>
 				<h3 id="KCDB.Sync">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=1625:1670#L79">Sync</a></h3>
 				<p><code>func (kc *KCDB) Sync(hard int) (err os.Error)</code></p>
 				
-				<h3 id="KCDB.Values">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=6247:6289#L272">Values</a></h3>
-				<p><code>func (kc *KCDB) Values() (out chan string)</code></p>
+				<h3 id="KCDB.Values">func (*KCDB) <a href="/src/pkg/bitbucket.org/ww/cabinet/cabinet.go?s=7500:7542#L322">Values</a></h3>
+				<p><code>func (kc *KCDB) Values() (out chan []byte)</code></p>
 				
 	<h2>Other packages</h2>
 	<p>
 TYPES
 
 type Item struct {
-    Key   string
-    Value string
+    Key   []byte
+    Value []byte
 }
 
 type KCCUR struct {
 
 func (kcc *KCCUR) Del()
 
-func (kcc *KCCUR) Get(advance int) (k, v string, ok bool)
+func (kcc *KCCUR) Get(advance int) (k, v []byte, ok bool)
 
-func (kcc *KCCUR) GetKey(advance int) (k string, ok bool)
+func (kcc *KCCUR) GetKey(advance int) (k []byte, ok bool)
 
-func (kcc *KCCUR) GetValue(advance int) (v string, ok bool)
+func (kcc *KCCUR) GetValue(advance int) (v []byte, ok bool)
 
 func (kcc *KCCUR) Jump()
 
 
 func New() *KCDB
 
-func (kc *KCDB) Add(key, value string) (err os.Error)
+func (kc *KCDB) Add(key, value []byte) (err os.Error)
 
-func (kc *KCDB) Append(key, value string) (err os.Error)
+func (kc *KCDB) Append(key, value []byte) (err os.Error)
+
+func (kc *KCDB) BeginTran(hard bool) (err os.Error)
+
+func (kc *KCDB) BeginTranTry(hard bool) (err os.Error)
 
 func (kc *KCDB) Clear() (err os.Error)
 
 
 func (kc *KCDB) Dump(filename string) (err os.Error)
 
-func (kc *KCDB) Get(key string) (value string, err os.Error)
+func (kc *KCDB) EndTran(commit bool) (err os.Error)
+
+func (kc *KCDB) Get(key []byte) (value []byte, err os.Error)
+
+func (kc *KCDB) IncrDouble(key []byte, amount float64) (err os.Error)
+
+func (kc *KCDB) IncrInt(key []byte, amount int64) (err os.Error)
 
 func (kc *KCDB) Items() (out chan *Item)
 
-func (kc *KCDB) Keys() (out chan string)
+func (kc *KCDB) Keys() (out chan []byte)
 
 func (kc *KCDB) Load(filename string) (err os.Error)
 
-func (kc *KCDB) MatchPrefix(prefix string, max int) (matches chan string, err os.Error)
+func (kc *KCDB) MatchPrefix(prefix []byte, max int) (matches chan []byte, err os.Error)
 
-func (kc *KCDB) MatchRegex(regex string, max int) (matches chan string, err os.Error)
+func (kc *KCDB) MatchRegex(regex string, max int) (matches chan []byte, err os.Error)
 
 func (kc *KCDB) Merge(sdbs []*KCDB, mode int) (err os.Error)
 
 
 func (kc *KCDB) Path() (path string, err os.Error)
 
-func (kc *KCDB) Remove(key string) (err os.Error)
+func (kc *KCDB) Remove(key []byte) (err os.Error)
 
-func (kc *KCDB) Replace(key, value string) (err os.Error)
+func (kc *KCDB) Replace(key, value []byte) (err os.Error)
 
-func (kc *KCDB) Set(key, value string) (err os.Error)
+func (kc *KCDB) Set(key, value []byte) (err os.Error)
 
 func (kc *KCDB) Size() (size uint64, err os.Error)
 
 
 func (kc *KCDB) Sync(hard int) (err os.Error)
 
-func (kc *KCDB) Values() (out chan string)
+func (kc *KCDB) Values() (out chan []byte)
 
 
 OTHER PACKAGES