_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c180000 | // Dief executes the same function on the default Base instance | |
c180001 | // Diem executes the same function on the default Base instance | |
c180002 | // ToLogLevel will take a string and return the appropriate log level for
// the string if known. If the string is not recognized it will return
// an ErrUnknownLevel error. | |
c180003 | // CallErr queues function f on the main thread and returns an error returned by f. | |
c180004 | // New creates a StackdriverHook using the provided options that is suitible
// for using with logrus for logging to Google Stackdriver. | |
c180005 | // Fire writes the message to the Stackdriver entry service. | |
c180006 | // Levels is an option that sets the logrus levels that the StackdriverHook
// will create log entries for. | |
c180007 | // ProjectID is an option that sets the project ID which is needed for the log
// name. | |
c180008 | // EntriesService is an option that sets the Google API entry service to use
// with Stackdriver. | |
c180009 | // LoggingService is an option that sets the Google API logging service to use. | |
c180010 | // ErrorService is an option that sets the Google API error reporting service to use. | |
c180011 | // HTTPClient is an option that sets the http.Client to be used when creating
// the Stackdriver service. | |
c180012 | // MonitoredResource is an option that sets the monitored resource to send with
// each log entry. | |
c180013 | // ErrorReportingLogName is an option that sets the log name to send
// with each error message for error reporting.
// Only used when ErrorReportingService has been set. | |
c180014 | // Labels is an option that sets the labels to send with each log entry. | |
c180015 | // PartialSuccess is an option that toggles whether or not to write partial log
// entries. | |
c180016 | // GoogleComputeCredentials is an option that loads the Google Service Account
// credentials from the GCE metadata associated with the GCE compute instance.
// If serviceAccount is empty, then the default service account credentials
// associated with the GCE instance will be used. | |
c180017 | // NewEncoder returns a new encoder that outputs to w. | |
c180018 | // NewDecoder returns a new decoder that takes input from r. | |
c180019 | // NewStreamEncoder returns a new stream encoder that outputs to w. | |
c180020 | // NewStreamDecoder returns a new stream decoder that takes input from r. | |
c180021 | // Register adds a codec for a mimetype to r. | |
c180022 | // Unregister removes the codec for a mimetype from r. | |
c180023 | // Lookup returns the codec associated with mimetype, ok is set to true or false
// based on whether a codec was found. | |
c180024 | // Codecs returns a map of all codecs registered in reg. | |
c180025 | // Type returns the RESP error type, which is represented by the leading
// uppercase word in the error string. | |
c180026 | // Install adds an adapter for typ.
//
// The function panics if one of the encoder and decoder functions of the
// adapter are nil.
//
// A typical use case for this function is to be called during the package
// initialization phase to extend objconv support for new types. | |
c180027 | // AdapterOf returns the adapter for typ, setting ok to true if one was found,
// false otherwise. | |
c180028 | // AppendDuration appends a human-readable representation of d to b.
//
// The function copies the implementation of time.Duration.String but prevents
// Go from making a dynamic memory allocation on the returned value. | |
c180029 | // fmtInt formats v into the tail of buf.
// It returns the index where the output begins. | |
c180030 | // NewDecoder returns a new JSON decoder that parses values from r. | |
c180031 | // NewStreamDecoder returns a new JSON stream decoder that parses values from r. | |
c180032 | // Unmarshal decodes a JSON representation of v from b. | |
c180033 | // String returns a human readable representation of the type. | |
c180034 | // zeroValueOf and the related cache is used to keep the zero values so they
// don't need to be reallocated every time they're used. | |
c180035 | // NewValueParser creates a new parser that exposes the value v. | |
c180036 | // ParseTag parses a raw tag obtained from a struct field, returning the results
// as a tag value. | |
c180037 | // NewEncoder returns a new JSON encoder that writes to w. | |
c180038 | // NewStreamEncoder returns a new JSON stream encoder that writes to w. | |
c180039 | // NewPrettyEncoder returns a new JSON encoder that writes to w. | |
c180040 | // NewPrettyStreamEncoder returns a new JSON stream encoder that writes to w. | |
c180041 | // Marshal writes the JSON representation of v to a byte slice returned in b. | |
c180042 | // NewEncoder returns a new encoder that outputs values to e.
//
// Encoders created by this function use the default encoder configuration,
// which is equivalent to using a zero-value EncoderConfig with only the Emitter
// field set.
//
// The function panics if e is nil. | |
c180043 | // EncodeArray provides the implementation of the array encoding algorithm,
// where n is the number of elements in the array, and f a function called to
// encode each element.
//
// The n argument can be set to a negative value to indicate that the program
// doesn't know how many elements it will output to the array... | |
c180044 | // EncodeMap provides the implementation of the map encoding algorithm, where n
// is the number of elements in the map, and f a function called to encode each
// element.
//
// The n argument can be set to a negative value to indicate that the program
// doesn't know how many elements it will output to the map. Be min... | |
c180045 | // NewStreamEncoder returns a new stream encoder that outputs to e.
//
// The function panics if e is nil. | |
c180046 | // Open explicitly tells the encoder to start the stream, setting the number
// of values to n.
//
// Depending on the actual format that the stream is encoding to, n may or
// may not have to be accurate, some formats also support passing a negative
// value to indicate that the number of elements is unknown. | |
c180047 | // Close terminates the stream encoder. | |
c180048 | // Encode writes v to the stream, encoding it based on the emitter configured
// on e. | |
c180049 | // newStructType takes a Go type as argument and extract information to make a
// new structType value.
// The type has to be a struct type or a panic will be raised. | |
c180050 | // lookup takes a Go type as argument and returns the matching structType value,
// potentially creating it if it didn't already exist.
// This method is safe to call from multiple goroutines. | |
c180051 | // clear empties the cache. | |
c180052 | // CheckUint64Bounds verifies that v is smaller than max, t represents the
// original type of v. | |
c180053 | // CheckInt64Bounds verifies that v is within min and max, t represents the
// original type of v. | |
c180054 | // NewDecoder returns a decoder object that uses p, will panic if p is nil. | |
c180055 | // Decode expects v to be a pointer to a value in which the decoder will load
// the next parsed data.
//
// The method panics if v is neither a pointer type nor implements the
// ValueDecoder interface, or if v is a nil pointer. | |
c180056 | // DecodeArray provides the implementation of the algorithm for decoding arrays,
// where f is called to decode each element of the array. | |
c180057 | // DecodeMap provides the implementation of the algorithm for decoding maps,
// where f is called to decode each pair of key and value.
//
// The function f is expected to decode two values from the map, the first one
// being the key and the second the associated value. The first decoder must be
// used to decode the ... | |
c180058 | // NewStreamDecoder returns a new stream decoder that takes input from p.
//
// The function panics if p is nil. | |
c180059 | // Len returns the number of values remaining to be read from the stream, which
// may be -1 if the underlying format doesn't provide this information. If an
// error occurred while decoding the stream the method returns zero because no
// more values can be read. | |
c180060 | // Err returns the last error returned by the Decode method.
//
// The method returns nil if the stream reached its natural end. | |
c180061 | // Decodes the next value from the stream into v. | |
c180062 | // Encoder returns a new StreamEncoder which can be used to re-encode the stream
// decoded by d into e.
//
// The method panics if e is nil. | |
c180063 | // Read logger flags from the LOGFLAGS environment variable. Multiple flags can
// be set at once, separated by commas. | |
c180064 | // LevelFromString returns a level based on the input string s. If the input
// can't be interpreted as a valid log level, the info level and false is
// returned. | |
c180065 | // NewBackend creates a logger backend from a Writer. | |
c180066 | // callsite returns the file name and line number of the callsite to the
// subsystem logger. | |
c180067 | // print outputs a log message to the writer associated with the backend after
// creating a prefix for the given level and tag according to the formatHeader
// function and formatting the provided arguments using the default formatting
// rules. | |
c180068 | // Logger returns a new logger for a particular subsystem that writes to the
// Backend b. A tag describes the subsystem and is included in all log
// messages. The logger uses the info verbosity level by default. | |
c180069 | // Trace formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelTrace.
//
// This is part of the Logger interface implementation. | |
c180070 | // Tracef formats message according to format specifier, prepends the prefix as
// necessary, and writes to log with LevelTrace.
//
// This is part of the Logger interface implementation. | |
c180071 | // Debug formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelDebug.
//
// This is part of the Logger interface implementation. | |
c180072 | // Debugf formats message according to format specifier, prepends the prefix as
// necessary, and writes to log with LevelDebug.
//
// This is part of the Logger interface implementation. | |
c180073 | // Info formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelInfo.
//
// This is part of the Logger interface implementation. | |
c180074 | // Infof formats message according to format specifier, prepends the prefix as
// necessary, and writes to log with LevelInfo.
//
// This is part of the Logger interface implementation. | |
c180075 | // Warn formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelWarn.
//
// This is part of the Logger interface implementation. | |
c180076 | // Warnf formats message according to format specifier, prepends the prefix as
// necessary, and writes to log with LevelWarn.
//
// This is part of the Logger interface implementation. | |
c180077 | // Error formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelError.
//
// This is part of the Logger interface implementation. | |
c180078 | // Errorf formats message according to format specifier, prepends the prefix as
// necessary, and writes to log with LevelError.
//
// This is part of the Logger interface implementation. | |
c180079 | // Critical formats message using the default formats for its operands, prepends
// the prefix as necessary, and writes to log with LevelCritical.
//
// This is part of the Logger interface implementation. | |
c180080 | // Criticalf formats message according to format specifier, prepends the prefix
// as necessary, and writes to log with LevelCritical.
//
// This is part of the Logger interface implementation. | |
c180081 | // Level returns the current logging level
//
// This is part of the Logger interface implementation. | |
c180082 | // SetLevel changes the logging level to the passed level.
//
// This is part of the Logger interface implementation. | |
c180083 | // Concat concat two permissions into a new one | |
c180084 | // HasPermission check roles has permission for mode or not | |
c180085 | // ConcatPermissioner concat permissioner | |
c180086 | // HasPermission check has permission for permissioners or not | |
c180087 | // Register register role with conditions | |
c180088 | // NewPermission initialize permission | |
c180089 | // Get role defination | |
c180090 | // isPtrFromHeap reports whether the inferior at address a contains a pointer.
// a must be somewhere in the heap. | |
c180091 | // IsPtr reports whether the inferior at address a contains a pointer. | |
c180092 | // FindObject finds the object containing a. Returns that object and the offset within
// that object to which a points.
// Returns 0,0 if a doesn't point to a live heap object. | |
c180093 | // ForEachObject calls fn with each object in the Go heap.
// If fn returns false, ForEachObject returns immediately. | |
c180094 | // ForEachRoot calls fn with each garbage collection root.
// If fn returns false, ForEachRoot returns immediately. | |
c180095 | // Addr returns the starting address of x. | |
c180096 | // Size returns the size of x in bytes. | |
c180097 | // Type returns the type and repeat count for the object x.
// x contains at least repeat copies of the returned type. | |
c180098 | // ForEachRootPtr behaves like ForEachPtr but it starts with a Root instead of an Object. | |
c180099 | // edges1 calls fn for the edges found in an object of type t living at offset off in the root r.
// If fn returns false, return immediately with false. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.