_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c12000 | // Copy is a file copy helper. Files will be copied to their destination,
// overwriting existing files. Already existing files that are not part of the
// copy process will not be touched. If source is a directory it is walked
// recursively. Non-existing folders in dest will be created.
// Copy returns upon the first... | |
c12001 | // Int64 converts any signed number type to an int64.
// The second parameter is returned as false if a non-number type was given. | |
c12002 | // Uint64 converts any unsigned number type to an uint64.
// The second parameter is returned as false if a non-number type was given. | |
c12003 | // Float32 converts any number type to an float32.
// The second parameter is returned as false if a non-number type was given. | |
c12004 | // UnsafeCopy will copy data from src to dst while ignoring type information.
// Both types need to be of the same size and dst and src have to be pointers.
// UnsafeCopy will panic if these requirements are not met. | |
c12005 | // SetMemberByName sets member name of the given pointer-to-struct to the data
// passed to this function. The member may be private, too. | |
c12006 | // SetMemberByIndex sets member idx of the given pointer-to-struct to the data
// passed to this function. The member may be private, too. | |
c12007 | // Write writes data to the wrapped slice if there is enough space available.
// If not, data is written until the wrapped slice has reached its capacity
// and io.EOF is returned. | |
c12008 | // NewTransition creates a new transition to a given state. | |
c12009 | // NewTransitionParser creates a new transition based parser | |
c12010 | // GetStateID creates a hash from the given state name.
// Empty state names will be translated to ParserStateStop. | |
c12011 | // GetStateName returns the name for the given state id or an empty string if
// the id could not be found. | |
c12012 | // AddDirectives is a convenience function to add multiple transitions in as a
// batch. | |
c12013 | // Add adds a new transition to a given parser state. | |
c12014 | // Stop adds a stop transition to a given parser state. | |
c12015 | // AddTransition adds a transition from a given state to the map | |
c12016 | // Parse starts parsing at a given stateID.
// This function returns the remaining parts of data that did not match a
// transition as well as the last state the parser has been set to. | |
c12017 | // SplitAddressToURI acts like SplitAddress but returns an URI struct instead. | |
c12018 | // IsDisconnectedError returns true if the given error is related to a
// disconnected socket. | |
c12019 | // String implements the stringer interface for CursorPosition | |
c12020 | // Add increments the waitgroup counter by the given value.
// Delta may be negative. | |
c12021 | // IncWhenDone wait until the counter is exactly 0 and triggeres an increment
// if this is found to be true | |
c12022 | // Wait blocks until the counter is 0 or less. | |
c12023 | // WaitFor blocks until the counter is 0 or less. If the block takes longer than
// the given timeout, WaitFor will return false. If duration is 0, Wait is called. | |
c12024 | // Write caches the passed message. Blocked by flush function. | |
c12025 | // Flush writes all messages to the given writer and clears the list
// of stored messages. Blocks Write function. | |
c12026 | // Get returns a slice allocated to a normalized size.
// Sizes are organized in evenly sized buckets so that fragmentation is kept low. | |
c12027 | // ReturnAfter calls a function. If that function does not return after the
// given limit, the function returns regardless of the callback being done or
// not. This guarantees the call to finish before or at the given limit. | |
c12028 | // GetUid returns the user id for a given user name | |
c12029 | // GetGid returns the group id for a given group name | |
c12030 | // NewFuse creates a new Fuse and returns it.
// A new fuse is always active. | |
c12031 | // Wait blocks until the fuse enters active state.
// Multiple go routines may wait on the same fuse. | |
c12032 | // Max3I returns the maximum out of three integers | |
c12033 | // Max3Int64 returns the maximum out of three signed 64-bit integers | |
c12034 | // Max3Uint64 returns the maximum out of three unsigned 64-bit integers | |
c12035 | // Min3I returns the minimum out of three integers | |
c12036 | // Min3Int64 returns the minimum out of three signed 64-bit integers | |
c12037 | // Min3Uint64 returns the minimum out of three unsigned 64-bit integers | |
c12038 | // TryConvertToMarshalMap converts collections to MarshalMap if possible.
// This is a deep conversion, i.e. each element in the collection will be
// traversed. You can pass a formatKey function that will be applied to all
// string keys that are detected. | |
c12039 | // Clone creates a copy of the given MarshalMap. | |
c12040 | // Bool returns a value at key that is expected to be a boolean | |
c12041 | // Uint returns a value at key that is expected to be an uint64 or compatible
// integer value. | |
c12042 | // Int returns a value at key that is expected to be an int64 or compatible
// integer value. | |
c12043 | // Float returns a value at key that is expected to be a float64 or compatible
// float value. | |
c12044 | // Duration returns a value at key that is expected to be a string | |
c12045 | // String returns a value at key that is expected to be a string | |
c12046 | // StringSlice is an alias for StringArray | |
c12047 | // Int64Slice is an alias for Int64Array | |
c12048 | // StringSliceMap is an alias for StringArrayMap | |
c12049 | // Delete a value from a given path.
// The path must point to a map key. Deleting from arrays is not supported. | |
c12050 | // Set a value for a given path.
// The path must point to a map key. Setting array elements is not supported. | |
c12051 | // Clone does a deep copy of the given value.
// Please note that field have to be public in order to be copied.
// Private fields will be ignored. | |
c12052 | // SwitchVar adds a boolean flag that is meant to be used without value. If it
// is given the value is true, otherwise false. | |
c12053 | // BoolVar adds a boolean flag to the parameters list. This is using the golang
// flag package internally. | |
c12054 | // IntVar adds an integer flag to the parameters list. This is using the golang
// flag package internally. | |
c12055 | // Int64Var adds am int64 flag to the parameters list. This is using the golang
// flag package internally. | |
c12056 | // Float64Var adds a float flag to the parameters list. This is using the golang
// flag package internally. | |
c12057 | // StringVar adds a string flag to the parameters list. This is using the golang
// flag package internally. | |
c12058 | // Switch is a convenience wrapper for SwitchVar | |
c12059 | // Bool is a convenience wrapper for BoolVar | |
c12060 | // Int is a convenience wrapper for IntVar | |
c12061 | // Int64 is a convenience wrapper for Int64Var | |
c12062 | // Float64 is a convenience wrapper for Float64Var | |
c12063 | // String is a convenience wrapper for StringVar | |
c12064 | // PrintFlags prints information about the flags set for this application | |
c12065 | // Reset clears the buffer by resetting its internal state | |
c12066 | // ResetGetIncomplete works like Reset but returns any incomplete contents
// left in the buffer. Note that the data in the buffer returned is overwritten
// with the next read call. | |
c12067 | // general message extraction part of all parser methods | |
c12068 | // messages are separated by a delimiter string | |
c12069 | // messages are separated binary length encoded | |
c12070 | // messages are separated by regexp | |
c12071 | // ReadAll calls ReadOne as long as there are messages in the stream.
// Messages will be send to the given write callback.
// If callback is nil, data will be read and discarded. | |
c12072 | // NewLogScope creates a new LogScope with the given prefix string. | |
c12073 | // SetVerbosity defines the type of messages to be processed.
// High level verobosities contain lower levels, i.e. log level warning will
// contain error messages, too. | |
c12074 | // SetCacheWriter will force all logs to be cached until another writer is set | |
c12075 | // RoundTrip dials the unix domain socket, sends the request and processes the
// response. | |
c12076 | // NewMetrics creates a new metrics container.
// To initialize the global Metrics variable use EnableGlobalMetrics. | |
c12077 | // Set sets a given metric to a given value. | |
c12078 | // Inc adds 1 to a given metric. | |
c12079 | // Dec subtracts 1 from a given metric. | |
c12080 | // Add adds a number to a given metric. | |
c12081 | // Get returns the value of a given metric or rate.
// If the value does not exists error is non-nil and the returned value is 0. | |
c12082 | // Dump creates a JSON string from all stored metrics. | |
c12083 | // ResetMetrics resets all registered key values to 0 expect for system Metrics.
// This locks all writes in the process. | |
c12084 | // FetchAndReset resets all of the given keys to 0 and returns the
// value before the reset as array. If a given metric does not exist
// it is ignored. This locks all writes in the process. | |
c12085 | // UpdateSystemMetrics updates all default or system based metrics like memory
// consumption and number of go routines. This function is not called
// automatically. | |
c12086 | // NewTrie creates a new root TrieNode | |
c12087 | // ForEach applies a function to each node in the tree including and below the
// passed node. | |
c12088 | // Match compares the trie to the given data stream.
// Match returns true if data can be completely matched to the trie. | |
c12089 | // Push adds a new error to the top of the error stack.
// Returns if err != nil. | |
c12090 | // Pushf adds a new error message to the top of the error stack | |
c12091 | // PushAndDescribe behaves like Push but allows to prepend a text before
// the error messages returned by err. The type of err will be lost. | |
c12092 | // Pop removes an error from the top of the stack and returns it | |
c12093 | // Error implements the Error interface | |
c12094 | // ErrorStackFormatNumbered returns errors with a number prefix, separated by
// newline. | |
c12095 | // NewMetricServer creates a new server state for a metric server based on
// the global Metric variable. | |
c12096 | // NewMetricServerFor creates a new server state for a metric server based
// on a custom Metrics variable | |
c12097 | // Stop notifies the metric server to halt. | |
c12098 | // NewQueueWithSpinner allows to set the spinning priority of the queue to
// be created. | |
c12099 | // Push adds an item to the queue. This call may block if the queue is full.
// An error is returned when the queue is locked. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.