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