_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c174200 | // MarshalBinary allocates a byte slice containing the data from a MACMaskArg.
//
// If m.DirCount does not indicate the actual length of m.Directives, or
// a Directive is malformed, ErrorBadArgumentParameter is returned. | |
c174201 | // NewSendToLogger creates a logger from a go log. | |
c174202 | //NewMulti creates a MultiLog | |
c174203 | // outerLog is like outers outerLogs but the nem entry is
// created from the first BackLog in the list. | |
c174204 | // PublishPort publish a container's port to the host. | |
c174205 | // Name assign a name to the container. | |
c174206 | // AddArgs appends arguments to Docker container. | |
c174207 | // NewCORSHandler creates a new CORSHandler with default values. | |
c174208 | // CreatePreflight creates HTTP routes that handles pre-flight requests. | |
c174209 | // ServeHTTP handle a pre-flight request. | |
c174210 | // Handle is a HTTP handler for CORS-able API. | |
c174211 | // NewRandomSourceListSecure returns system provided source of random data
// besides of Raiqub Random source. | |
c174212 | // Handle sends a record message to syslog Writer. | |
c174213 | // Close closes an associated syslog Writer. | |
c174214 | // date formant YYYY-MM-DD
// mininum date 0000-01-01
// maximum date 9999-12-31 | |
c174215 | // Match processes the given string until it encounters a rune that doesn't
// match. | |
c174216 | // Match processes the given string until it has its suffix in the next or
// encounters a rune that doesn't match. | |
c174217 | // MatchRune simply calls mather.MatchRune | |
c174218 | // Match against fixed length pattern. | |
c174219 | // Alloc opens a DB if not openned yet. It adds a reference if already openned. | |
c174220 | // Free decreases the reference count. It close the DB if the count reaches
// zero. | |
c174221 | // Infof calls Logger.Infof method with provided arguments. | |
c174222 | // Warningf calls Logger.Warningf method with provided arguments. | |
c174223 | // Errorf calls Logger.Errorf method with provided arguments. | |
c174224 | // Fatalf calls Logger.Criticalf method with provided arguments. | |
c174225 | // ToPhone will format the provided string as a Phone Number. Only supports
// US numbers currently. | |
c174226 | // ToURL will format the provided string as a URL. HTTP and HTTPS
// are the only supported protocols at this time. | |
c174227 | // ToSSN will format the provided string as a SSN. | |
c174228 | // ToMorseCode will format the provided string in Morse Code. | |
c174229 | // ToPirateSpeak will format the provided string in Pirate Speak. | |
c174230 | // ToIRSA will format the provided string in IRSA.
// International Radio-Telephony Spelling Alphabet | |
c174231 | // newDefaultLogger creates new logger that writes log messages to
// standard output in DEBUG level. This logger is automatically created and
// this function needs to be called only if all loggers were removed
// and default logger needs recreating. | |
c174232 | // Logf logs provided message with formatting with default logger. | |
c174233 | // Sections returns the list of sections in the file. | |
c174234 | // Options returns the list of options in a given section. | |
c174235 | // OptionMap returns the map option => value for a given section. | |
c174236 | // Comments returns the list of comments in a given section.
// For the empty string, returns the file comments. | |
c174237 | // AddComments appends the comment to the list of comments for the section. | |
c174238 | // Parse reads the given io.Reader and returns a parsed Config object. | |
c174239 | // Write writes the sections and options to the io.Writer in INI format. | |
c174240 | // Get gets the value from the specified section and key name, or the empty
// string if either the section or the key is missing. | |
c174241 | // Set sets a value for an option in a section. If the option exists, it's
// value will be overwritten. If the option does not exist, it will be added.
// If the section does not exist, it will be added and the option added to it. | |
c174242 | // Delete removes the option from the specified section. | |
c174243 | // try to convert value to target type, panic if fail | |
c174244 | // Postpone value expiration time to current time added to its lifetime
// duration. | |
c174245 | // Filter creates a new filter with rules r for l backend. | |
c174246 | // Op is an operation in some field and with some value. | |
c174247 | // ApplyRuleIf test if condition is true than apply rule. If condition is false
// do nothing, return true. | |
c174248 | // ApplyRuleIfElse test if condition is true than apply rule. If condition is false
// run else rule. | |
c174249 | // AuthHandler is a HTTP request middleware that enforces authentication. | |
c174250 | // HasBin check whether Docker binary is available. | |
c174251 | // Run executes especified command on Docker.
//
// Returns ExternalCmdError on error. | |
c174252 | // GetReader gets HTTP header value, as defined by current instance, from
// Request Header and sets to current instance. | |
c174253 | // SetName sets header name of current instance. | |
c174254 | // SetValue sets header value of current instance. | |
c174255 | // SetWriter sets HTTP header, as defined by current instance, to ResponseWriter
// Header. | |
c174256 | // encryptionKey returns the best candidate Key for encrypting a message to the
// given Entity. | |
c174257 | // NewContentNegotiator creates a basic ContentNegotiator with out any attached
// encoders | |
c174258 | // NewJsonXmlContentNegotiator creates a basic ContentNegotiator and attaches
// a JSON and an XML encoder to it. | |
c174259 | // Negotiate inspects the request for the accept header and
// encodes the response appropriately. | |
c174260 | // AddEncoder registers a mimetype and its encoder to be used if a client
// requests that mimetype | |
c174261 | // getEncoder parses the Accept header an returns the appropriate encoder to use | |
c174262 | // CanSign returns true if it's possible for a public key of the given type to
// sign a message. | |
c174263 | // Various ways to sort the player standings using helper structs that
// implement different comparison methods. | |
c174264 | // WaitFunc waits until specified function returns true. | |
c174265 | // FormatDialAddress returns an address as expected by net.Dial. | |
c174266 | // SetFromDocker parses port as provided by Docker and extract protocol and port
// number. | |
c174267 | // Read fills specified byte array with random data.
// Always return parameter array length and no errors. | |
c174268 | // readByte creates a single random byte. | |
c174269 | // RecoverHandlerJson is a HTTP request middleware that captures panic errors
// and returns it as HTTP JSON response. | |
c174270 | // DefaultServiceConfig provides a default configuration to create a new random
// service by best effort. | |
c174271 | // NewService creates a new configured random service. | |
c174272 | // RunLight creates a light instance of MongoDB image. | |
c174273 | // initConfig reads in config file and ENV variables if set. | |
c174274 | // HasExposedPorts returns whether current container has exposed ports. | |
c174275 | // Inspect returns container configuration. | |
c174276 | // Kill terminates current container process. | |
c174277 | // NetworkNodes returns the network addresses and exposed ports of current
// container. | |
c174278 | // Remove erases current container from Docker. | |
c174279 | // WaitStartup blocks current thread until current container begins to listen
// exposed port. | |
c174280 | // NewHandler returns new Handler instance. | |
c174281 | // Handle increments Prometheus counter metrics based on
// record log level. | |
c174282 | // NewCounter creates new Counter instance.
// Options value can be nil. | |
c174283 | // Metrics retuns all Prometheus metrics that
// should be registered. | |
c174284 | // Retrieve retrieves and processes the specified asset sources, and returns
// them using a http.FileSystem interface. | |
c174285 | // Compile retrieves and processes the specified asset sources, and
// compiles them to the specified variable in the source file. | |
c174286 | // Read meta-info at specified place | |
c174287 | // Write meta-info to specified place | |
c174288 | // Push header and body to stack. Returns new value of stack depth | |
c174289 | // Pop one segment from tail of stack. Returns nil,nil,nil if depth is 0 | |
c174290 | // Peak of stack - get one segment from stack but not remove | |
c174291 | // PeakHeader get only header part from tail segment from stack without remove | |
c174292 | // IterateBackward - iterate over hole stack segment-by-segment from end to begining | |
c174293 | // IterateForward - iterate over hole stack segment-by-segment from begining to end. If all segments
// iterated stack may be repaired | |
c174294 | // Close backend stack file. If access is requried, file will automatically reopened | |
c174295 | // OpenStack - open or create stack | |
c174296 | // NewStack - create new stack based on file | |
c174297 | // NewSessionCache creates a new instance of SessionCache and defines a lifetime
// for sessions and a initial salt for random input. | |
c174298 | // getInvalidTokenError gets the default error when an invalid or expired token
// is requested. | |
c174299 | // Get gets the value stored by specified token. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.