_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c174700 | // monitorVersions checks the member's version every monitorVersionInterval.
// It updates the cluster version if all members agrees on a higher one.
// It prints out log if there is a member with a higher version than the
// local version. | |
c174701 | // goAttach creates a goroutine on a given function and tracks it using
// the etcdserver waitgroup. | |
c174702 | // NewRoundrobinBalanced returns a new roundrobin balanced picker. | |
c174703 | // Pick is called for every client request. | |
c174704 | // NewTLSListener handshakes TLS connections and performs optional CRL checking. | |
c174705 | // acceptLoop launches each TLS handshake in a separate goroutine
// to prevent a hanging TLS connection from blocking other connections. | |
c174706 | // SetEndpoints updates the endpoints for ResolverGroup. All registered resolver are updated
// immediately with the new endpoints. | |
c174707 | // Target constructs a endpoint target using the endpoint id of the ResolverGroup. | |
c174708 | // Target constructs a endpoint resolver target. | |
c174709 | // Build creates or reuses an etcd resolver for the etcd cluster name identified by the authority part of the target. | |
c174710 | // Handle interprets r and performs an operation on s.store according to r.Method
// and other fields. If r.Method is "POST", "PUT", "DELETE", or a "GET" with
// Quorum == true, r will be sent through consensus before performing its
// respective operation. Do will block until an action is performed or there is
// an e... | |
c174711 | // NewElectionCommand returns the cobra command for "election runner". | |
c174712 | // nodeToMember builds member from a key value node.
// the child nodes of the given node MUST be sorted by key. | |
c174713 | // NewTmpBackend creates a backend implementation for testing. | |
c174714 | // newRevision creates a new instance of Revisonal compactor that purges
// the log older than retention revisions from the current revision. | |
c174715 | // Run runs revision-based compactor. | |
c174716 | // Pause pauses revision-based compactor. | |
c174717 | // Resume resumes revision-based compactor. | |
c174718 | // voteResponseType maps vote and prevote message types to their corresponding responses. | |
c174719 | // DescribeMessage returns a concise human-readable description of a
// Message for debugging. | |
c174720 | // DescribeEntry returns a concise human-readable description of an
// Entry for debugging. | |
c174721 | // DescribeEntries calls DescribeEntry for each Entry, adding a newline to
// each. | |
c174722 | // SetLogger sets client-side Logger. | |
c174723 | // GetLogger returns the current logutil.Logger. | |
c174724 | // maybeFirstIndex returns the index of the first possible entry in entries
// if it has a snapshot. | |
c174725 | // maybeLastIndex returns the last index if it has at least one
// unstable entry or snapshot. | |
c174726 | // maybeTerm returns the term of the entry at index i, if there
// is any. | |
c174727 | // shrinkEntriesArray discards the underlying array used by the entries slice
// if most of it isn't being used. This avoids holding references to a bunch of
// potentially large entries that aren't needed anymore. Simply clearing the
// entries wouldn't be safe because clients might still be using them. | |
c174728 | // SaveSnap saves the snapshot to disk and release the locked
// wal files since they will not be used. | |
c174729 | // New creates a new etcdv3 client from a given configuration. | |
c174730 | // NewCtxClient creates a client with a context but no underlying grpc
// connection. This is useful for embedded cases that override the
// service interface implementations and do not need connection management. | |
c174731 | // NewFromURL creates a new etcdv3 client from a URL. | |
c174732 | // Close shuts down the client's etcd connections. | |
c174733 | // Endpoints lists the registered endpoints for the client. | |
c174734 | // SetEndpoints updates client's endpoints. | |
c174735 | // dialSetupOpts gives the dial opts prior to any authentication. | |
c174736 | // Dial connects to a single endpoint using the client's config. | |
c174737 | // dialWithBalancer dials the client's current load balanced resolver group. The scheme of the host
// of the provided endpoint determines the scheme used for all endpoints of the client connection. | |
c174738 | // dial configures and dials any grpc balancer target. | |
c174739 | // WithRequireLeader requires client requests to only succeed
// when the cluster has a leader. | |
c174740 | // roundRobinQuorumBackoff retries against quorum between each backoff.
// This is intended for use with a round robin load balancer. | |
c174741 | // isHaltErr returns true if the given error and context indicate no forward
// progress can be made, even after reconnecting. | |
c174742 | // NewLease wraps a Lease interface to filter for only keys with a prefix
// and remove that prefix when fetching attached keys through TimeToLive. | |
c174743 | // IsCreate returns true if the event tells that the key is newly created. | |
c174744 | // Err is the error value if this WatchResponse holds an error. | |
c174745 | // IsProgressNotify returns true if the WatchResponse is progress notification. | |
c174746 | // RequestProgress requests a progress notify response be sent in all watch channels. | |
c174747 | // nextResume chooses the next resuming to register with the grpc stream. Abandoned
// streams are marked as nil in the queue since the head must wait for its inflight registration. | |
c174748 | // dispatchEvent sends a WatchResponse to the appropriate watcher stream | |
c174749 | // broadcastResponse send a watch response to all watch substreams. | |
c174750 | // unicastResponse sends a watch response to a specific watch substream. | |
c174751 | // joinSubstreams waits for all substream goroutines to complete. | |
c174752 | // toPB converts an internal watch request structure to its protobuf WatchRequest structure. | |
c174753 | // toPB converts an internal progress request structure to its protobuf WatchRequest structure. | |
c174754 | // Contains returns whether the set contains the given value | |
c174755 | // ContainsAll returns whether the set contains all given values | |
c174756 | // Equals returns whether the contents of two sets are identical | |
c174757 | // Values returns the values of the Set in an unspecified order. | |
c174758 | // Copy creates a new Set containing the values of the first | |
c174759 | // Sub removes all elements in other from the set | |
c174760 | // v2MembersURL add the necessary path to the provided endpoint
// to route requests to the default v2 members API. | |
c174761 | // NewMigrateCommand returns the cobra command for "migrate". | |
c174762 | // publishEntries writes committed log entries to commit channel and returns
// whether all entries could be published. | |
c174763 | // openWAL returns a WAL ready for reading. | |
c174764 | // replayWAL replays WAL entries into the raft instance. | |
c174765 | // stop closes http, closes all channels, and stops raft. | |
c174766 | // NewWatchCommand returns the cobra command for "watch". | |
c174767 | // InitialState implements the Storage interface. | |
c174768 | // SetHardState saves the current HardState. | |
c174769 | // Entries implements the Storage interface. | |
c174770 | // Term implements the Storage interface. | |
c174771 | // LastIndex implements the Storage interface. | |
c174772 | // FirstIndex implements the Storage interface. | |
c174773 | // Snapshot implements the Storage interface. | |
c174774 | // ApplySnapshot overwrites the contents of this Storage object with
// those of the given snapshot. | |
c174775 | // Compact discards all log entries prior to compactIndex.
// It is the application's responsibility to not attempt to compact an index
// greater than raftLog.applied. | |
c174776 | // unreachable notices the picker that the given url is unreachable,
// and it should use other possible urls. | |
c174777 | // NewEndpointCommand returns the cobra command for "endpoint". | |
c174778 | // epHealthCommandFunc executes the "endpoint-health" command. | |
c174779 | // NewElectCommand returns the cobra command for "elect". | |
c174780 | // NewDefragCommand returns the cobra command for "Defrag". | |
c174781 | // RegisterBuilder creates and registers a builder. Since this function calls balancer.Register, it
// must be invoked at initialization time. | |
c174782 | // Build is called initially when creating "ccBalancerWrapper".
// "grpc.Dial" is called to this client connection.
// Then, resolved addresses will be handled via "HandleResolvedAddrs". | |
c174783 | // recordTransition records state change happening in every subConn and based on
// that it evaluates what aggregated state should be.
// It can only transition between Ready, Connecting and TransientFailure. Other states,
// Idle and Shutdown are transitioned into by ClientConn; in the beginning of the connection
// b... | |
c174784 | // doSerialize handles the auth logic, with permissions checked by "chk", for a serialized request "get". Returns a non-nil error on authentication failure. | |
c174785 | // send filters out repeated events by discarding revisions older
// than the last one sent over the watch channel. | |
c174786 | // post puts a watch response on the watcher's proxy stream channel | |
c174787 | // OriginAllowed determines whether the server will allow a given CORS origin.
// If CORS is empty, allow all. | |
c174788 | // IsHostWhitelisted returns true if the host is whitelisted.
// If whitelist is empty, allow all. | |
c174789 | // Valids returns the list of valid strings. | |
c174790 | // NewSelectiveStringsValue creates a new string slice flag
// for which any one of the given strings is a valid value,
// and any other value is an error. | |
c174791 | // NewKV wraps a KV instance so that all requests
// are prefixed with a given string. | |
c174792 | // NewURLsValue implements "url.URL" slice as flag.Value interface.
// Given value is to be separated by comma. | |
c174793 | // URLsFromFlag returns a slices from url got from the flag. | |
c174794 | // configure peer handlers after rafthttp.Transport started | |
c174795 | // NewStore returns a new store. It is useful to create a store inside
// mvcc pkg. It should only be used for testing externally. | |
c174796 | // appendMarkTombstone appends tombstone mark to normal revision bytes. | |
c174797 | // CreateDirAll is similar to TouchDirAll but returns error
// if the deepest directory was not empty. | |
c174798 | // ZeroToEnd zeros a file starting from SEEK_CUR to its SEEK_END. May temporarily
// shorten the length of the file. | |
c174799 | // Open returns a fresh file for writing. Rename the file before calling
// Open again or there will be file collisions. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.