SYMBOL INDEX (200 symbols across 14 files) FILE: cmd/dvara/logger.go type stdLogger (line 7) | type stdLogger struct method Error (line 9) | func (l *stdLogger) Error(args ...interface{}) { log.P... method Errorf (line 10) | func (l *stdLogger) Errorf(format string, args ...interface{}) { log.P... method Warn (line 11) | func (l *stdLogger) Warn(args ...interface{}) { log.P... method Warnf (line 12) | func (l *stdLogger) Warnf(format string, args ...interface{}) { log.P... method Info (line 13) | func (l *stdLogger) Info(args ...interface{}) { log.P... method Infof (line 14) | func (l *stdLogger) Infof(format string, args ...interface{}) { log.P... method Debug (line 15) | func (l *stdLogger) Debug(args ...interface{}) { log.P... method Debugf (line 16) | func (l *stdLogger) Debugf(format string, args ...interface{}) { log.P... FILE: cmd/dvara/main.go function main (line 17) | func main() { function Main (line 24) | func Main() error { FILE: common_test.go type tLogger (line 22) | type tLogger struct method Error (line 26) | func (l *tLogger) Error(args ...interface{}) { method Errorf (line 32) | func (l *tLogger) Errorf(format string, args ...interface{}) { method Warn (line 38) | func (l *tLogger) Warn(args ...interface{}) { method Warnf (line 44) | func (l *tLogger) Warnf(format string, args ...interface{}) { method Info (line 50) | func (l *tLogger) Info(args ...interface{}) { method Infof (line 56) | func (l *tLogger) Infof(format string, args ...interface{}) { method Debug (line 62) | func (l *tLogger) Debug(args ...interface{}) { method Debugf (line 68) | func (l *tLogger) Debugf(format string, args ...interface{}) { type stopper (line 74) | type stopper interface type Harness (line 78) | type Harness struct method Stop (line 149) | func (h *Harness) Stop() { method ProxySession (line 154) | func (h *Harness) ProxySession() *mgo.Session { method RealSession (line 158) | func (h *Harness) RealSession() *mgo.Session { method Dial (line 162) | func (h *Harness) Dial(u string) *mgo.Session { function newHarnessInternal (line 86) | func newHarnessInternal(url string, s stopper, t testing.TB) *Harness { type SingleHarness (line 120) | type SingleHarness struct function NewSingleHarness (line 125) | func NewSingleHarness(t testing.TB) *SingleHarness { type ReplicaSetHarness (line 133) | type ReplicaSetHarness struct function NewReplicaSetHarness (line 138) | func NewReplicaSetHarness(n uint, t testing.TB) *ReplicaSetHarness { FILE: protocol.go type OpCode (line 18) | type OpCode method String (line 21) | func (c OpCode) String() string { method IsMutation (line 48) | func (c OpCode) IsMutation() bool { method HasResponse (line 53) | func (c OpCode) HasResponse() bool { constant OpReply (line 60) | OpReply = OpCode(1) constant OpMessage (line 61) | OpMessage = OpCode(1000) constant OpUpdate (line 62) | OpUpdate = OpCode(2001) constant OpInsert (line 63) | OpInsert = OpCode(2002) constant Reserved (line 64) | Reserved = OpCode(2003) constant OpQuery (line 65) | OpQuery = OpCode(2004) constant OpGetMore (line 66) | OpGetMore = OpCode(2005) constant OpDelete (line 67) | OpDelete = OpCode(2006) constant OpKillCursors (line 68) | OpKillCursors = OpCode(2007) type messageHeader (line 72) | type messageHeader struct method ToWire (line 84) | func (m messageHeader) ToWire() []byte { method FromWire (line 95) | func (m *messageHeader) FromWire(b []byte) { method WriteTo (line 102) | func (m *messageHeader) WriteTo(w io.Writer) error { method String (line 115) | func (m *messageHeader) String() string { function readHeader (line 126) | func readHeader(r io.Reader) (*messageHeader, error) { function copyMessage (line 138) | func copyMessage(w io.Writer, r io.Reader) error { function readDocument (line 152) | func readDocument(r io.Reader) ([]byte, error) { constant x00 (line 166) | x00 = byte(0) function readCString (line 170) | func readCString(r io.Reader) ([]byte, error) { function getInt32 (line 186) | func getInt32(b []byte, pos int) int32 { function setInt32 (line 193) | func setInt32(b []byte, pos int, i int32) { FILE: protocol_test.go type testReader (line 10) | type testReader struct method Read (line 14) | func (t testReader) Read(b []byte) (int, error) { return t.read(b) } type testWriter (line 16) | type testWriter struct method Write (line 20) | func (t testWriter) Write(b []byte) (int, error) { return t.write(b) } function TestOpStrings (line 22) | func TestOpStrings(t *testing.T) { function TestMsgHeaderString (line 46) | func TestMsgHeaderString(t *testing.T) { function TestCopyEmptyMessage (line 59) | func TestCopyEmptyMessage(t *testing.T) { function TestCopyMessageFromReadError (line 73) | func TestCopyMessageFromReadError(t *testing.T) { function TestCopyMessageFromWriteError (line 87) | func TestCopyMessageFromWriteError(t *testing.T) { function TestCopyMessageFromWriteLengthError (line 102) | func TestCopyMessageFromWriteLengthError(t *testing.T) { function TestReadDocumentEmpty (line 116) | func TestReadDocumentEmpty(t *testing.T) { function TestReadDocumentPartial (line 127) | func TestReadDocumentPartial(t *testing.T) { function TestReadCString (line 149) | func TestReadCString(t *testing.T) { FILE: proxy.go constant headerLen (line 17) | headerLen = 16 type Proxy (line 29) | type Proxy struct method String (line 44) | func (p *Proxy) String() string { method Start (line 49) | func (p *Proxy) Start() error { method Stop (line 97) | func (p *Proxy) Stop() error { method stop (line 101) | func (p *Proxy) stop(hard bool) error { method checkRSChanged (line 113) | func (p *Proxy) checkRSChanged() bool { method newServerConn (line 133) | func (p *Proxy) newServerConn() (io.Closer, error) { method getServerConn (line 153) | func (p *Proxy) getServerConn() (net.Conn, error) { method serverCloseErrorHandler (line 161) | func (p *Proxy) serverCloseErrorHandler(err error) { method proxyMessage (line 167) | func (p *Proxy) proxyMessage( method clientAcceptLoop (line 218) | func (p *Proxy) clientAcceptLoop() { method clientServeLoop (line 236) | func (p *Proxy) clientServeLoop(c net.Conn) { method idleClientReadHeader (line 342) | func (p *Proxy) idleClientReadHeader(c net.Conn) (*messageHeader, erro... method gleClientReadHeader (line 350) | func (p *Proxy) gleClientReadHeader(c net.Conn) (*messageHeader, error) { method clientReadHeader (line 358) | func (p *Proxy) clientReadHeader(c net.Conn, timeout time.Duration) (*... type teeConn (line 413) | type teeConn struct method Read (line 418) | func (t teeConn) Read(b []byte) (int, error) { method Write (line 426) | func (t teeConn) Write(b []byte) (int, error) { function teeIf (line 434) | func teeIf(context string, c net.Conn) net.Conn { type maxPerClientConnections (line 444) | type maxPerClientConnections struct method inc (line 457) | func (m *maxPerClientConnections) inc(remoteIP string) bool { method dec (line 468) | func (m *maxPerClientConnections) dec(remoteIP string) { function newMaxPerClientConnections (line 450) | func newMaxPerClientConnections(max uint) *maxPerClientConnections { FILE: proxy_test.go function TestParallelInsertWithUniqueIndex (line 18) | func TestParallelInsertWithUniqueIndex(t *testing.T) { function inserter (line 43) | func inserter(s *mgo.Session, channel chan int, limit int) { function TestSimpleCRUD (line 53) | func TestSimpleCRUD(t *testing.T) { function TestIDConstraint (line 87) | func TestIDConstraint(t *testing.T) { function TestEnsureIndex (line 109) | func TestEnsureIndex(t *testing.T) { function TestDropIndex (line 147) | func TestDropIndex(t *testing.T) { function TestRemoval (line 189) | func TestRemoval(t *testing.T) { function TestUpdate (line 212) | func TestUpdate(t *testing.T) { function TestStopChattyClient (line 239) | func TestStopChattyClient(t *testing.T) { function TestStopIdleClient (line 262) | func TestStopIdleClient(t *testing.T) { function TestZeroMaxConnections (line 273) | func TestZeroMaxConnections(t *testing.T) { function TestNoAddrsGiven (line 282) | func TestNoAddrsGiven(t *testing.T) { function TestSingleNodeWhenExpectingRS (line 301) | func TestSingleNodeWhenExpectingRS(t *testing.T) { function TestStopListenerCloseError (line 325) | func TestStopListenerCloseError(t *testing.T) { function TestMongoGoingAwayAndReturning (line 335) | func TestMongoGoingAwayAndReturning(t *testing.T) { function benchmarkInsertRead (line 358) | func benchmarkInsertRead(b *testing.B, session *mgo.Session) { function BenchmarkInsertReadProxy (line 379) | func BenchmarkInsertReadProxy(b *testing.B) { function BenchmarkInsertReadDirect (line 384) | func BenchmarkInsertReadDirect(b *testing.B) { FILE: replica_set.go type Logger (line 24) | type Logger interface type ReplicaSet (line 42) | type ReplicaSet struct method Start (line 106) | func (r *ReplicaSet) Start() error { method Stop (line 186) | func (r *ReplicaSet) Stop() error { method stop (line 190) | func (r *ReplicaSet) stop(hard bool) error { method Restart (line 214) | func (r *ReplicaSet) Restart() { method proxyAddr (line 234) | func (r *ReplicaSet) proxyAddr(l net.Listener) string { method proxyHostname (line 243) | func (r *ReplicaSet) proxyHostname() string { method newListener (line 279) | func (r *ReplicaSet) newListener() (net.Listener, error) { method add (line 294) | func (r *ReplicaSet) add(p *Proxy) error { method Proxy (line 310) | func (r *ReplicaSet) Proxy(h string) (string, error) { method ProxyMembers (line 325) | func (r *ReplicaSet) ProxyMembers() []string { method SameRS (line 335) | func (r *ReplicaSet) SameRS(o *replSetGetStatusResponse) bool { method SameIM (line 340) | func (r *ReplicaSet) SameIM(o *isMasterResponse) bool { type ProxyMapperError (line 346) | type ProxyMapperError struct method Error (line 351) | func (p *ProxyMapperError) Error() string { function uniq (line 357) | func uniq(set []string) []string { FILE: replica_set_test.go function TestReplicaSetMembers (line 13) | func TestReplicaSetMembers(t *testing.T) { function TestStopNodeInReplica (line 37) | func TestStopNodeInReplica(t *testing.T) { function TestProxyNotInReplicaSet (line 64) | func TestProxyNotInReplicaSet(t *testing.T) { function TestAddSameProxyToReplicaSet (line 76) | func TestAddSameProxyToReplicaSet(t *testing.T) { function TestAddSameMongoToReplicaSet (line 98) | func TestAddSameMongoToReplicaSet(t *testing.T) { function TestNewListenerZeroZeroRandomPort (line 124) | func TestNewListenerZeroZeroRandomPort(t *testing.T) { function TestNewListenerError (line 134) | func TestNewListenerError(t *testing.T) { FILE: response_rewriter.go type ProxyQuery (line 29) | type ProxyQuery struct method Proxy (line 37) | func (p *ProxyQuery) Proxy( type LastError (line 155) | type LastError struct method Exists (line 161) | func (l *LastError) Exists() bool { method Reset (line 166) | func (l *LastError) Reset() { type GetLastErrorRewriter (line 173) | type GetLastErrorRewriter struct method Rewrite (line 178) | func (r *GetLastErrorRewriter) Rewrite( type ProxyMapper (line 249) | type ProxyMapper interface type ReplicaStateCompare (line 256) | type ReplicaStateCompare interface type responseRewriter (line 261) | type responseRewriter interface type replyPrefix (line 265) | type replyPrefix type ReplyRW (line 270) | type ReplyRW struct method ReadOne (line 276) | func (r *ReplyRW) ReadOne(server io.Reader, v interface{}) (*messageHe... method WriteOne (line 315) | func (r *ReplyRW) WriteOne(client io.Writer, h *messageHeader, prefix ... type isMasterResponse (line 332) | type isMasterResponse struct type IsMasterResponseRewriter (line 340) | type IsMasterResponseRewriter struct method Rewrite (line 348) | func (r *IsMasterResponseRewriter) Rewrite(client io.Writer, server io... type statusMember (line 391) | type statusMember struct type replSetGetStatusResponse (line 398) | type replSetGetStatusResponse struct type ReplSetGetStatusResponseRewriter (line 405) | type ReplSetGetStatusResponseRewriter struct method Rewrite (line 413) | func (r *ReplSetGetStatusResponseRewriter) Rewrite(client io.Writer, s... function hasKey (line 445) | func hasKey(d bson.D, k string) bool { FILE: response_rewriter_test.go type invalidBSON (line 21) | type invalidBSON method GetBSON (line 23) | func (i invalidBSON) GetBSON() (interface{}, error) { type fakeProxyMapper (line 29) | type fakeProxyMapper struct method Proxy (line 33) | func (t fakeProxyMapper) Proxy(h string) (string, error) { type fakeReplicaStateCompare (line 42) | type fakeReplicaStateCompare struct method SameRS (line 44) | func (f fakeReplicaStateCompare) SameRS(o *replSetGetStatusResponse) b... method SameIM (line 48) | func (f fakeReplicaStateCompare) SameIM(o *isMasterResponse) bool { function fakeReader (line 52) | func fakeReader(h messageHeader, rest []byte) io.Reader { function fakeSingleDocReply (line 56) | func fakeSingleDocReply(v interface{}) io.Reader { type fakeReadWriter (line 77) | type fakeReadWriter struct function TestResponseRWReadOne (line 82) | func TestResponseRWReadOne(t *testing.T) { function TestResponseRWWriteOne (line 160) | func TestResponseRWWriteOne(t *testing.T) { function TestIsMasterResponseRewriterFailures (line 201) | func TestIsMasterResponseRewriterFailures(t *testing.T) { function TestIsMasterResponseRewriterSuccess (line 277) | func TestIsMasterResponseRewriterSuccess(t *testing.T) { function TestReplSetGetStatusResponseRewriterFailures (line 322) | func TestReplSetGetStatusResponseRewriterFailures(t *testing.T) { function TestReplSetGetStatusResponseRewriterSuccess (line 380) | func TestReplSetGetStatusResponseRewriterSuccess(t *testing.T) { function TestProxyQuery (line 443) | func TestProxyQuery(t *testing.T) { FILE: rs_state.go constant errNotReplSet (line 14) | errNotReplSet = "not running with --replSet" type ReplicaSetState (line 17) | type ReplicaSetState struct method AssertEqual (line 73) | func (r *ReplicaSetState) AssertEqual(o *ReplicaSetState) error { method Equal (line 85) | func (r *ReplicaSetState) Equal(o *ReplicaSetState) bool { method SameRS (line 91) | func (r *ReplicaSetState) SameRS(o *replSetGetStatusResponse) bool { method SameIM (line 96) | func (r *ReplicaSetState) SameIM(o *isMasterResponse) bool { method Addrs (line 101) | func (r *ReplicaSetState) Addrs() []string { function NewReplicaSetState (line 24) | func NewReplicaSetState(addr string) (*ReplicaSetState, error) { type ReplicaSetStateCreator (line 116) | type ReplicaSetStateCreator struct method FromAddrs (line 122) | func (c *ReplicaSetStateCreator) FromAddrs(addrs []string, replicaSetN... function replSetGetStatus (line 189) | func replSetGetStatus(s *mgo.Session) (*replSetGetStatusResponse, error) { function isMaster (line 197) | func isMaster(s *mgo.Session) (*isMasterResponse, error) { function sameRSMembers (line 205) | func sameRSMembers(a *replSetGetStatusResponse, b *replSetGetStatusRespo... function sameIMMembers (line 236) | func sameIMMembers(a *isMasterResponse, b *isMasterResponse) bool { FILE: rs_state_test.go function TestSameRSMembers (line 9) | func TestSameRSMembers(t *testing.T) { function TestNotSameRSMembers (line 64) | func TestNotSameRSMembers(t *testing.T) { function TestSameIMMembers (line 150) | func TestSameIMMembers(t *testing.T) { function TestNotSameIMMembers (line 195) | func TestNotSameIMMembers(t *testing.T) { function TestSingleNodeNewReplicaSetState (line 250) | func TestSingleNodeNewReplicaSetState(t *testing.T) { function TestNewReplicaSetStateFailure (line 263) | func TestNewReplicaSetStateFailure(t *testing.T) { function TestSingleNodeNewReplicaSetStateAddrs (line 274) | func TestSingleNodeNewReplicaSetStateAddrs(t *testing.T) { function TestIgnoreMismatchingReplicaSets (line 288) | func TestIgnoreMismatchingReplicaSets(t *testing.T) { FILE: state.go type ReplicaState (line 4) | type ReplicaState constant ReplicaStatePrimary (line 8) | ReplicaStatePrimary = ReplicaState("PRIMARY") constant ReplicaStateSecondary (line 11) | ReplicaStateSecondary = ReplicaState("SECONDARY") constant ReplicaStateArbiter (line 14) | ReplicaStateArbiter = ReplicaState("ARBITER")