_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c164000 | train | // QueryWatermarkOffsets queries the broker for the low and high offsets for the given topic and partition. | {
"resource": ""
} | ||
c164001 | train | // GetWatermarkOffsets returns the cached low and high offsets for the given topic
// and partition. The high offset is populated on every fetch response or via calling QueryWatermarkOffsets.
// The low offset is populated every statistics.interval.ms if that value is set.
// OffsetInvalid will be returned if there is... | {
"resource": ""
} | ||
c164002 | train | // Assignment returns the current partition assignments | {
"resource": ""
} | ||
c164003 | train | // Committed retrieves committed offsets for the given set of partitions | {
"resource": ""
} | ||
c164004 | train | // waitTerminated waits termination of background go-routines.
// termCnt is the number of goroutines expected to signal termination completion
// on h.terminatedChan | {
"resource": ""
} | ||
c164005 | train | // getRkt0 finds or creates and returns a C topic_t object from the local cache. | {
"resource": ""
} | ||
c164006 | train | // getRkt finds or creates and returns a C topic_t object from the local cache. | {
"resource": ""
} | ||
c164007 | train | // getTopicNameFromRkt returns the topic name for a C topic_t object, preferably
// using the local cache to avoid a cgo call. | {
"resource": ""
} | ||
c164008 | train | // cgoGet looks up cgoid in the cgo map, deletes the reference from the map
// and returns the object, if found. Else returns nil, false.
// Thread-safe. | {
"resource": ""
} | ||
c164009 | train | // String returns a human readable representation of an error code | {
"resource": ""
} | ||
c164010 | train | // String returns the Header Key and data in a human representable possibly truncated form
// suitable for displaying to the user. | {
"resource": ""
} | ||
c164011 | train | // String returns a human-readable representation of a TopicResult. | {
"resource": ""
} | ||
c164012 | train | // String returns the human-readable representation of a ResourceType | {
"resource": ""
} | ||
c164013 | train | // String returns the human-readable representation of a ConfigSource type | {
"resource": ""
} | ||
c164014 | train | // String returns a human-readable representation of a ConfigResource | {
"resource": ""
} | ||
c164015 | train | // String returns the human-readable representation of an AlterOperation | {
"resource": ""
} | ||
c164016 | train | // StringMapToConfigEntries creates a new map of ConfigEntry objects from the
// provided string map. The AlterOperation is set on each created entry. | {
"resource": ""
} | ||
c164017 | train | // String returns a human-readable representation of a ConfigEntry. | {
"resource": ""
} | ||
c164018 | train | // String returns a human-readable representation of a ConfigEntryResult. | {
"resource": ""
} | ||
c164019 | train | // setFromC sets up a ConfigEntryResult from a C ConfigEntry | {
"resource": ""
} | ||
c164020 | train | // String returns a human-readable representation of a ConfigResourceResult. | {
"resource": ""
} | ||
c164021 | train | // waitResult waits for a result event on cQueue or the ctx to be cancelled, whichever happens
// first.
// The returned result event is checked for errors its error is returned if set. | {
"resource": ""
} | ||
c164022 | train | // cToTopicResults converts a C topic_result_t array to Go TopicResult list. | {
"resource": ""
} | ||
c164023 | train | // cConfigResourceToResult converts a C ConfigResource result array to Go ConfigResourceResult | {
"resource": ""
} | ||
c164024 | train | // DeleteTopics deletes a batch of topics.
//
// This operation is not transactional and may succeed for a subset of topics while
// failing others.
// It may take several seconds after the DeleteTopics result returns success for
// all the brokers to become aware that the topics are gone. During this time,
// topic me... | {
"resource": ""
} | ||
c164025 | train | // Close an AdminClient instance. | {
"resource": ""
} | ||
c164026 | train | // NewAdminClient creats a new AdminClient instance with a new underlying client instance | {
"resource": ""
} | ||
c164027 | train | // NewAdminClientFromProducer derives a new AdminClient from an existing Producer instance.
// The AdminClient will use the same configuration and connections as the parent instance. | {
"resource": ""
} | ||
c164028 | train | // NewAdminClientFromConsumer derives a new AdminClient from an existing Consumer instance.
// The AdminClient will use the same configuration and connections as the parent instance. | {
"resource": ""
} | ||
c164029 | train | // get finds key in the configmap and returns its value.
// If the key is not found defval is returned.
// If the key is found but the type is mismatched an error is returned. | {
"resource": ""
} | ||
c164030 | train | // queryWatermarkOffsets returns the broker's low and high offsets for the given topic
// and partition. | {
"resource": ""
} | ||
c164031 | train | // OffsetTail returns the logical offset relativeOffset from current end of partition | {
"resource": ""
} | ||
c164032 | train | // offsetsForTimes looks up offsets by timestamp for the given partitions.
//
// The returned offset for each partition is the earliest offset whose
// timestamp is greater than or equal to the given timestamp in the
// corresponding partition.
//
// The timestamps to query are represented as `.Offset` in the `times`
/... | {
"resource": ""
} | ||
c164033 | train | // Len returns the number of messages and requests waiting to be transmitted to the broker
// as well as delivery reports queued for the application.
// Includes messages on ProduceChannel. | {
"resource": ""
} | ||
c164034 | train | // Flush and wait for outstanding messages and requests to complete delivery.
// Includes messages on ProduceChannel.
// Runs until value reaches zero or on timeoutMs.
// Returns the number of outstanding events still un-flushed. | {
"resource": ""
} | ||
c164035 | train | // Close a Producer instance.
// The Producer object or its channels are no longer usable after this call. | {
"resource": ""
} | ||
c164036 | train | // channel_producer serves the ProduceChannel channel | {
"resource": ""
} | ||
c164037 | train | // poller polls the rd_kafka_t handle for events until signalled for termination | {
"resource": ""
} | ||
c164038 | train | // QueryWatermarkOffsets returns the broker's low and high offsets for the given topic
// and partition. | {
"resource": ""
} | ||
c164039 | train | // String returns a human readable representation of a Message.
// Key and payload are not represented. | {
"resource": ""
} | ||
c164040 | train | // setupMessageFromC sets up a message object from a C rd_kafka_message_t | {
"resource": ""
} | ||
c164041 | train | // messageToC sets up cmsg as a clone of msg | {
"resource": ""
} | ||
c164042 | train | // used for testing messageToC performance | {
"resource": ""
} | ||
c164043 | train | // Clone performs a deep copy of the Options struct, returning a new clone
// with all values copied. | {
"resource": ""
} | ||
c164044 | train | // unwrapValue can be used to get the token and value from an item
// to be able to report the line number in case of an incorrect
// configuration. | {
"resource": ""
} | ||
c164045 | train | // Parse TLS and returns a TLSConfig and TLSTimeout.
// Used by cluster and gateway parsing. | {
"resource": ""
} | ||
c164046 | train | // Helper to parse an embedded account description for imported services or streams. | {
"resource": ""
} | ||
c164047 | train | // Helper function to parse Authorization configs. | {
"resource": ""
} | ||
c164048 | train | // Top level parser for authorization configurations. | {
"resource": ""
} | ||
c164049 | train | // Helper function to parse old style authorization configs. | {
"resource": ""
} | ||
c164050 | train | // Helper function to parse new style authorization into a SubjectPermission with Allow and Deny. | {
"resource": ""
} | ||
c164051 | train | // Helper function to validate subjects, etc for account permissioning. | {
"resource": ""
} | ||
c164052 | train | // PrintTLSHelpAndDie prints TLS usage and exits. | {
"resource": ""
} | ||
c164053 | train | // GenTLSConfig loads TLS related configuration parameters. | {
"resource": ""
} | ||
c164054 | train | // MergeOptions will merge two options giving preference to the flagOpts
// if the item is present. | {
"resource": ""
} | ||
c164055 | train | // RoutesFromStr parses route URLs from a string | {
"resource": ""
} | ||
c164056 | train | // This will merge the flag routes and override anything that was present. | {
"resource": ""
} | ||
c164057 | train | // RemoveSelfReference removes this server from an array of routes | {
"resource": ""
} | ||
c164058 | train | // overrideTLS is called when at least "-tls=true" has been set. | {
"resource": ""
} | ||
c164059 | train | // IsValid determines if a sort option is valid | {
"resource": ""
} | ||
c164060 | train | // clonePubArg is used when the split buffer scenario has the pubArg in the existing read buffer, but
// we need to hold onto it into the next read. | {
"resource": ""
} | ||
c164061 | train | // NewServer will setup a new server struct after parsing the options.
// Could return an error if options can not be validated. | {
"resource": ""
} | ||
c164062 | train | // Used to setup Accounts. | {
"resource": ""
} | ||
c164063 | train | // isTrustedIssuer will check that the issuer is a trusted public key.
// This is used to make sure an account was signed by a trusted operator. | {
"resource": ""
} | ||
c164064 | train | // processTrustedKeys will process binary stamped and
// options-based trusted nkeys. Returns success. | {
"resource": ""
} | ||
c164065 | train | // checkTrustedKeyString will check that the string is a valid array
// of public operator nkeys. | {
"resource": ""
} | ||
c164066 | train | // initStampedTrustedKeys will check the stamped trusted keys
// and will set the server field 'trustedKeys'. Returns whether
// it succeeded or not. | {
"resource": ""
} | ||
c164067 | train | // PrintAndDie is exported for access in other packages. | {
"resource": ""
} | ||
c164068 | train | // ProcessCommandLineArgs takes the command line arguments
// validating and setting flags for handling in case any
// sub command was present. | {
"resource": ""
} | ||
c164069 | train | // Protected check on running state | {
"resource": ""
} | ||
c164070 | train | // NewAccountsAllowed returns whether or not new accounts can be created on the fly. | {
"resource": ""
} | ||
c164071 | train | // This should be used for testing only. Will be slow since we have to
// range over all accounts in the sync.Map to count. | {
"resource": ""
} | ||
c164072 | train | // LookupOrRegisterAccount will return the given account if known or create a new entry. | {
"resource": ""
} | ||
c164073 | train | // RegisterAccount will register an account. The account must be new
// or this call will fail. | {
"resource": ""
} | ||
c164074 | train | // SetSystemAccount will set the internal system account.
// If root operators are present it will also check validity. | {
"resource": ""
} | ||
c164075 | train | // SystemAccount returns the system account if set. | {
"resource": ""
} | ||
c164076 | train | // Assign a system account. Should only be called once.
// This sets up a server to send and receive messages from inside
// the server itself. | {
"resource": ""
} | ||
c164077 | train | // Determine if accounts should track subscriptions for
// efficient propagation.
// Lock should be held on entry. | {
"resource": ""
} | ||
c164078 | train | // Place common account setup here.
// Lock should be held on entry. | {
"resource": ""
} | ||
c164079 | train | // lookupAccount is a function to return the account structure
// associated with an account name. | {
"resource": ""
} | ||
c164080 | train | // LookupAccount is a public function to return the account structure
// associated with name. | {
"resource": ""
} | ||
c164081 | train | // This will fetch new claims and if found update the account with new claims.
// Lock should be held upon entry. | {
"resource": ""
} | ||
c164082 | train | // updateAccountWithClaimJWT will check and apply the claim update. | {
"resource": ""
} | ||
c164083 | train | // fetchRawAccountClaims will grab raw account claims iff we have a resolver.
// Lock is held upon entry. | {
"resource": ""
} | ||
c164084 | train | // fetchAccountClaims will attempt to fetch new claims if a resolver is present.
// Lock is held upon entry. | {
"resource": ""
} | ||
c164085 | train | // verifyAccountClaims will decode and validate any account claims. | {
"resource": ""
} | ||
c164086 | train | // This will fetch an account from a resolver if defined.
// Lock should be held upon entry. | {
"resource": ""
} | ||
c164087 | train | // Start up the server, this will block.
// Start via a Go routine if needed. | {
"resource": ""
} | ||
c164088 | train | // Shutdown will shutdown the server instance by kicking out the AcceptLoop
// and closing all associated clients. | {
"resource": ""
} | ||
c164089 | train | // AcceptLoop is exported for easier testing. | {
"resource": ""
} | ||
c164090 | train | // StartProfiler is called to enable dynamic profiling. | {
"resource": ""
} | ||
c164091 | train | // StartMonitoring starts the HTTP or HTTPs server if needed. | {
"resource": ""
} | ||
c164092 | train | // Start the monitoring server | {
"resource": ""
} | ||
c164093 | train | // Perform a conditional deep copy due to reference nature of ClientConnectURLs.
// If updates are made to Info, this function should be consulted and updated.
// Assume lock is held. | {
"resource": ""
} | ||
c164094 | train | // Handle closing down a connection when the handshake has timedout. | {
"resource": ""
} | ||
c164095 | train | // Seems silly we have to write these | {
"resource": ""
} | ||
c164096 | train | // We use hex here so we don't need multiple versions | {
"resource": ""
} | ||
c164097 | train | // Remove a client or route from our internal accounting. | {
"resource": ""
} | ||
c164098 | train | // NumRemotes will report number of registered remotes. | {
"resource": ""
} | ||
c164099 | train | // NumLeafNodes will report number of leaf node connections. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.