_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c174300 | validation | // Add creates a new unique token and stores it into current SessionCache
// instance.
//
// The token creation will take at least 200 microseconds, but could normally
// take 2.5 milliseconds. The token generation function it is built with
// security over performance. | {
"resource": ""
} | ||
c174301 | validation | // Delete deletes specified token from current SessionCache instance. | {
"resource": ""
} | ||
c174302 | validation | // Set store a value to specified token. | {
"resource": ""
} | ||
c174303 | validation | // NewClient creates a Client. | {
"resource": ""
} | ||
c174304 | validation | // connect opens a new connection to the server. | {
"resource": ""
} | ||
c174305 | validation | // writeMessage writes an IRC message to the connection. | {
"resource": ""
} | ||
c174306 | validation | // readMessage reads a line from the connection and parses it as an IRC message. | {
"resource": ""
} | ||
c174307 | validation | // Stop shuts down the client and cleans up.
//
// You must not send any messages on the send channel after calling this
// function. | {
"resource": ""
} | ||
c174308 | validation | // GetChannels retrieves the IRC channels the client is on. | {
"resource": ""
} | ||
c174309 | validation | // JsonWrite sets response content type to JSON, sets HTTP status and serializes
// defined content to JSON format. | {
"resource": ""
} | ||
c174310 | validation | // JsonRead tries to read client sent content using JSON deserialization and
// writes it to defined object. | {
"resource": ""
} | ||
c174311 | validation | // Create a user | {
"resource": ""
} | ||
c174312 | validation | // Next invoke next route with the given ResponseWriter and Request | {
"resource": ""
} | ||
c174313 | validation | // ServeHTTP implement http.Handler interface | {
"resource": ""
} | ||
c174314 | validation | // UseHandler appends a Handler to the route. | {
"resource": ""
} | ||
c174315 | validation | // HandleMethod registers handler funcs with the given pattern and method. | {
"resource": ""
} | ||
c174316 | validation | // Handle registers handler funcs with the given pattern. | {
"resource": ""
} | ||
c174317 | validation | // Get registers handlers with the given pattern for GET and HEAD method | {
"resource": ""
} | ||
c174318 | validation | // Post registers handlers with the given pattern for POST method | {
"resource": ""
} | ||
c174319 | validation | // Put registers handlers with the given pattern for PUT method | {
"resource": ""
} | ||
c174320 | validation | // Patch registers handlers with the given pattern for PATCH method | {
"resource": ""
} | ||
c174321 | validation | // Delete registers handlers with the given pattern for DELETE method | {
"resource": ""
} | ||
c174322 | validation | // Options registers handlers with the given pattern for OPTIONS method | {
"resource": ""
} | ||
c174323 | validation | // NewSalter creates a new instance of Salter. It requires a list of sources of
// random data and optionally an input to salt next token. | {
"resource": ""
} | ||
c174324 | validation | // BToken generates an array of random bytes with length as specified by size
// parameter. | {
"resource": ""
} | ||
c174325 | validation | // Token generates a base-64 string of random bytes with length as specified by
// size parameter. | {
"resource": ""
} | ||
c174326 | validation | // getRandomBytes gets secure random bytes. | {
"resource": ""
} | ||
c174327 | validation | //
// NewsItem related functions and methods
//
// Create a NewsItem | {
"resource": ""
} | ||
c174328 | validation | // Write logs an Debug message to a logger. | {
"resource": ""
} | ||
c174329 | validation | // Write logs an Info message to a logger. | {
"resource": ""
} | ||
c174330 | validation | // Write logs an Warning message to a logger. | {
"resource": ""
} | ||
c174331 | validation | // Write logs an Error message to a logger. | {
"resource": ""
} | ||
c174332 | validation | // GetLogger returns logger instance based on provided name.
// If logger does not exist, error will be returned. | {
"resource": ""
} | ||
c174333 | validation | // RemoveLogger deletes logger from global logger registry. | {
"resource": ""
} | ||
c174334 | validation | // WaitForAllUnprocessedRecords blocks execution until all unprocessed
// log records are processed.
// Since this library implements async logging, it is possible to have
// unprocessed logs at the moment when application is terminating.
// In that case, log messages can be lost. This mehtods blocks execution
// until... | {
"resource": ""
} | ||
c174335 | validation | // run starts async log records processing. | {
"resource": ""
} | ||
c174336 | validation | // WaitForUnprocessedRecords block execution until all unprocessed log records
// for this logger are processed.
// In order to wait for processing in all loggers, logging.WaitForAllUnprocessedRecords
// can be used. | {
"resource": ""
} | ||
c174337 | validation | // SetBufferLength sets length of buffer for accepting log records. | {
"resource": ""
} | ||
c174338 | validation | // AddHandler add new handler to current logger. | {
"resource": ""
} | ||
c174339 | validation | // ClearHandlers removes all handlers from current logger. | {
"resource": ""
} | ||
c174340 | validation | // SetLevel sets lower level that current logger will process. | {
"resource": ""
} | ||
c174341 | validation | // log creates log record and submits it for processing. | {
"resource": ""
} | ||
c174342 | validation | // Logf logs provided message with formatting. | {
"resource": ""
} | ||
c174343 | validation | // Log logs provided message. | {
"resource": ""
} | ||
c174344 | validation | // Emergencyf logs provided message with formatting in EMERGENCY level. | {
"resource": ""
} | ||
c174345 | validation | // Alertf logs provided message with formatting in ALERT level. | {
"resource": ""
} | ||
c174346 | validation | // Criticalf logs provided message with formatting in CRITICAL level. | {
"resource": ""
} | ||
c174347 | validation | // Errorf logs provided message with formatting in ERROR level. | {
"resource": ""
} | ||
c174348 | validation | // Warningf logs provided message with formatting in WARNING level. | {
"resource": ""
} | ||
c174349 | validation | // Noticef logs provided message with formatting in NOTICE level. | {
"resource": ""
} | ||
c174350 | validation | // Infof logs provided message with formatting in INFO level. | {
"resource": ""
} | ||
c174351 | validation | // Debugf logs provided message with formatting in DEBUG level. | {
"resource": ""
} | ||
c174352 | validation | // SetHandler reigsters the given handler that matches with any method. | {
"resource": ""
} | ||
c174353 | validation | // SetMethodHandler reigsters the given handler for the method. | {
"resource": ""
} | ||
c174354 | validation | // GetHandler returns a handler with given method. | {
"resource": ""
} | ||
c174355 | validation | // getChildEntry returns a child Entry that matches the given pattern string. | {
"resource": ""
} | ||
c174356 | validation | // MergePattern add entry patterns with given pattern strings. If a pattern
// already exists on the entry, it adds remaining patterns to the existing entry. | {
"resource": ""
} | ||
c174357 | validation | // AddEntry add new child entry. Child entries are sorted irrespective of order
// they are added. Static patterns would be indexed ahead of match patterns. | {
"resource": ""
} | ||
c174358 | validation | // addPatterns adds entry children with the pattern strings. | {
"resource": ""
} | ||
c174359 | validation | // execPrefix simply see if the given urlStr has a leading pattern. | {
"resource": ""
} | ||
c174360 | validation | // traverse tries matches to child entries. | {
"resource": ""
} | ||
c174361 | validation | // getExecMatch returns ExecFunc with the given name and mather. | {
"resource": ""
} | ||
c174362 | validation | // MergeRoutes returns a slice with all routes returned by Routable objects. | {
"resource": ""
} | ||
c174363 | validation | // Debugf logs a formatted line with a DEBUG prefix. | {
"resource": ""
} | ||
c174364 | validation | // Infof logs a formatted line with a VERBOSE prefix. | {
"resource": ""
} | ||
c174365 | validation | // Infoln logs a line with an INFO prefix. | {
"resource": ""
} | ||
c174366 | validation | // Infof logs a formatted line with an INFO prefix. | {
"resource": ""
} | ||
c174367 | validation | // Okln logs a line with an OK prefix. | {
"resource": ""
} | ||
c174368 | validation | // Okf logs a formatted line with an OK prefix. | {
"resource": ""
} | ||
c174369 | validation | // Fatalln logs a line with a FATAL prefix and exits the process with exit
// code 1. | {
"resource": ""
} | ||
c174370 | validation | // Fatalf logs a formatted line with a FATAL prefix and exits the process with
// exit code 1. | {
"resource": ""
} | ||
c174371 | validation | // ShouldDebug returns true if the given facility has debugging enabled. | {
"resource": ""
} | ||
c174372 | validation | // Facilities returns the currently known set of facilities, both those for
// which debug is enabled and those for which it is disabled. | {
"resource": ""
} | ||
c174373 | validation | // removeNonDigits removes any non digit characters from the string. | {
"resource": ""
} | ||
c174374 | validation | // removeNonWordChars removes all non word characters. | {
"resource": ""
} | ||
c174375 | validation | // urlEncodeSpaces will replace spaces with "%20"'s | {
"resource": ""
} | ||
c174376 | validation | // random select will return a random selection from an int slice | {
"resource": ""
} | ||
c174377 | validation | // NewStdFormatter crete a new formatter. | {
"resource": ""
} | ||
c174378 | validation | // Get returns a HTTP handler which is a chain of middlewares and then the
// specified handler. | {
"resource": ""
} | ||
c174379 | validation | // parseMatcher returns matcher and name from the given pattern string. | {
"resource": ""
} | ||
c174380 | validation | // isMatchPattern see if given string is match pattern. | {
"resource": ""
} | ||
c174381 | validation | // routeSplitFunc is the SplitFunc to scan url pattern. | {
"resource": ""
} | ||
c174382 | validation | // SplitPath splits the url pattern. | {
"resource": ""
} | ||
c174383 | validation | // isNextSuffixPattern see next 2 patterns can be suffix matcher. If following
// two cases are both true, it could possibly become a suffix matcher.
// 1. the first pattern is a Matcher.
// 2. the next pattern is a static pattern.
// If the first matcher can't match the first rune of the second static pattern,
// ... | {
"resource": ""
} | ||
c174384 | validation | // PeekNextPattern returns next entry pattern with offset size | {
"resource": ""
} | ||
c174385 | validation | //
// Player related functions and methods
//
// Create a player | {
"resource": ""
} | ||
c174386 | validation | // Push causes the Reader to start reading from a new io.Reader. When an EOF
// error is seen from the new io.Reader, it is popped and the Reader continues
// to read from the next most recent io.Reader. | {
"resource": ""
} | ||
c174387 | validation | //
// Catering related functions and methods
//
// Create a Catering | {
"resource": ""
} | ||
c174388 | validation | //
// Tournaments related functions and methods
// | {
"resource": ""
} | ||
c174389 | validation | //
// Tournament related functions and methods
//
// Helpers | {
"resource": ""
} | ||
c174390 | validation | // Create a Tournament | {
"resource": ""
} | ||
c174391 | validation | // IndexOf looks for specified string into current slice. | {
"resource": ""
} | ||
c174392 | validation | // IndexOfIgnoreCase looks for specified string, disregarding letter casing,
// into current slice. | {
"resource": ""
} | ||
c174393 | validation | // NewCache creates a new instance of Cache and defines the default lifetime for
// new cached items. | {
"resource": ""
} | ||
c174394 | validation | // Count gets the number of cached values by current instance. | {
"resource": ""
} | ||
c174395 | validation | // Flush deletes any cached value into current instance. | {
"resource": ""
} | ||
c174396 | validation | // removeExpired remove all expired values from current Cache instance list.
// Returns the locking status of current instance. | {
"resource": ""
} | ||
c174397 | validation | // NewImage creates a new instance of Image. | {
"resource": ""
} | ||
c174398 | validation | // Exists check whether current Docker image is available. | {
"resource": ""
} | ||
c174399 | validation | // Pull retrieves current Docker image from Docker repository.
//
// Returns ExternalCmdError on error. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.