_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c17400 | train | // FromContext returns the logger contained in the context, or an inert logger
// that will not log anything. | {
"resource": ""
} | ||
c17401 | train | // WithSession returns a new logger that has, for convenience, had a new
// session created on it. | {
"resource": ""
} | ||
c17402 | train | // WithData returns a new logger that has, for convenience, had new data added
// to on it. | {
"resource": ""
} | ||
c17403 | train | // Adquire a lock for given key | {
"resource": ""
} | ||
c17404 | train | // NewHandler creates a new Handler using Next middleware | {
"resource": ""
} | ||
c17405 | train | // Flush does nothing in a buffer | {
"resource": ""
} | ||
c17406 | train | // NewHTTPCacheEntry creates a new HTTPCacheEntry for the given request and response
// and it also calculates if the response is public | {
"resource": ""
} | ||
c17407 | train | // WriteBodyTo sends the body to the http.ResponseWritter | {
"resource": ""
} | ||
c17408 | train | // NewFileStorage creates a new temp file that will be used as a the storage of the cache entry | {
"resource": ""
} | ||
c17409 | train | // Flush syncs the underlying file | {
"resource": ""
} | ||
c17410 | train | // Clean removes the file | {
"resource": ""
} | ||
c17411 | train | // Close the underlying file | {
"resource": ""
} | ||
c17412 | train | // GetReader returns a new file descriptor to the same file | {
"resource": ""
} | ||
c17413 | train | // Close closes the underlying storage | {
"resource": ""
} | ||
c17414 | train | // Setup creates a new cache middleware | {
"resource": ""
} | ||
c17415 | train | // NewResponse returns an initialized Response. | {
"resource": ""
} | ||
c17416 | train | // writeHeader writes a header if it was not written yet and
// detects Content-Type if needed.
//
// bytes or str are the beginning of the response body.
// We pass both to avoid unnecessarily generate garbage
// in rw.WriteString which was created for performance reasons.
// Non-nil bytes win. | {
"resource": ""
} | ||
c17417 | train | // Write is the io.Writer interface with the modification required
// To wait the body. This will wait until SetBody is called with
// The desired storage. | {
"resource": ""
} | ||
c17418 | train | // Clean the body if it is set | {
"resource": ""
} | ||
c17419 | train | // Get returns a named session. | {
"resource": ""
} | ||
c17420 | train | // Middleware returns a Session middleware. | {
"resource": ""
} | ||
c17421 | train | // Middleware returns a CasbinAuth middleware.
//
// For valid credentials it calls the next handler.
// For missing or invalid credentials, it sends "401 - Unauthorized" response. | {
"resource": ""
} | ||
c17422 | train | // update stats in a stat sturcture | {
"resource": ""
} | ||
c17423 | train | // prints in CSV format | {
"resource": ""
} | ||
c17424 | train | // return an evtx.Chunk object from a reader | {
"resource": ""
} | ||
c17425 | train | // main routine to carve a file | {
"resource": ""
} | ||
c17426 | train | // small routine that prints the EVTX event | {
"resource": ""
} | ||
c17427 | train | // New EvtxFile structure initialized from file
// @filepath : filepath of the evtx file to parse
// return File : File structure initialized | {
"resource": ""
} | ||
c17428 | train | // ParseFileHeader parses a the file header of the file structure and modifies
// the Header of the current structure | {
"resource": ""
} | ||
c17429 | train | // FetchChunk fetches a Chunk
// @offset : offset in the current file where to find the Chunk
// return Chunk : Chunk parsed | {
"resource": ""
} | ||
c17430 | train | // monitorChunks returns a chan of the new Chunks found in the file under
// monitoring created after the monitoring started
// @stop: a channel used to stop the monitoring if needed
// @sleep: sleep time
// return (chan Chunk) | {
"resource": ""
} | ||
c17431 | train | // MonitorEvents returns a chan pointers to all the GoEvtxMap found in the File
// under monitoring. This is the fast version
// @stop: a channel used to stop the monitoring if needed
// return (chan *GoEvtxMap) | {
"resource": ""
} | ||
c17432 | train | // MarshalJSON implements JSON serialization | {
"resource": ""
} | ||
c17433 | train | // Validate controls the validity of the chunk header | {
"resource": ""
} | ||
c17434 | train | // ParseChunkHeader parses a chunk header at offset | {
"resource": ""
} | ||
c17435 | train | // Less implement datastructs.Sortable | {
"resource": ""
} | ||
c17436 | train | // ParseStringTable parses the string table located at the current offset in the
// reader and modify the chunk object
// @reader : reader object to parse string table from | {
"resource": ""
} | ||
c17437 | train | // ParseTemplaTable parses the template table located at the current offset in
// the reader passed as parameter and modifies the current Chunk object
// @reader : reader object to parse string table from | {
"resource": ""
} | ||
c17438 | train | // ParseEventOffsets parses the offsets at which we can find the events and
// modifies the current Chunk object
// @reader : reader object to parse event offsets from | {
"resource": ""
} | ||
c17439 | train | // ParseEvent parses an Event from the current chunk located at the relative
// offset in c.Data, does not alter the current Chunk structure
// @offset : offset to parse the Event at
// return Event : parsed Event | {
"resource": ""
} | ||
c17440 | train | // Parse implements Element | {
"resource": ""
} | ||
c17441 | train | // Recursive search in a GoEvtxMap according to a given path
// @path : path to search for
// return *GoEvtxElement, error : pointer to the element found at path | {
"resource": ""
} | ||
c17442 | train | // GetUint returns the GoEvtxElement at path as a string
// @path : path to search for
// return string, error | {
"resource": ""
} | ||
c17443 | train | // GetBool returns the GoEvtxElement at path as a bool
// @path : path to search for
// return (bool, error) | {
"resource": ""
} | ||
c17444 | train | // GetInt returns the GoEvtxElement at path as a int64
// @path : path to search for
// return int64, error | {
"resource": ""
} | ||
c17445 | train | // GetUint returns the GoEvtxElement at path as a uint64
// @path : path to search for
// return uint64 | {
"resource": ""
} | ||
c17446 | train | // GetUint returns the GoEvtxElement at path as a Time struct
// @path : path to search for
// return Time | {
"resource": ""
} | ||
c17447 | train | // Equal returns true if element at path is equal to i
// @path : path at witch GoEvtxElement is located
// @i : interface to test equality with
// return bool : true if equality is verified | {
"resource": ""
} | ||
c17448 | train | // Equal returns true if element at path is equal to any object
// @path : path at witch GoEvtxElement is located
// @is : slice of interface to test equality with
// return bool : true if equality is verified | {
"resource": ""
} | ||
c17449 | train | // RegexMatch returns true if GoEvtxElement located at path matches a regexp
// @path : path at witch GoEvtxElement is located
// @pattern : regexp to test
// return bool | {
"resource": ""
} | ||
c17450 | train | // Set sets a new GoEvtxElement at path
// @path... : path to look for
// @new : new value
// return error if any | {
"resource": ""
} | ||
c17451 | train | // Del deletes the object referenced by path | {
"resource": ""
} | ||
c17452 | train | // Validate controls the EventHeader | {
"resource": ""
} | ||
c17453 | train | // GoEvtxMap parses the BinXML inside the event and returns a pointer to a
// structure GoEvtxMap
// @c : chunk pointer used for template data already parsed
// return (*GoEvtxMap, error) | {
"resource": ""
} | ||
c17454 | train | // add columns which will be composite index | {
"resource": ""
} | ||
c17455 | train | // new an index | {
"resource": ""
} | ||
c17456 | train | // Type2SQLType generate SQLType acorrding Go's type | {
"resource": ""
} | ||
c17457 | train | // default sql type change to go types | {
"resource": ""
} | ||
c17458 | train | // ValueOf returns column's filed of struct's value | {
"resource": ""
} | ||
c17459 | train | // ValueOfV returns column's filed of struct's value accept reflevt value | {
"resource": ""
} | ||
c17460 | train | // if has primary key, return column | {
"resource": ""
} | ||
c17461 | train | // add a column to table | {
"resource": ""
} | ||
c17462 | train | // add an index or an unique to table | {
"resource": ""
} | ||
c17463 | train | // Open opens a database | {
"resource": ""
} | ||
c17464 | train | // FromDB creates a DB from a sql.DB | {
"resource": ""
} | ||
c17465 | train | // QueryContext overwrites sql.DB.QueryContext | {
"resource": ""
} | ||
c17466 | train | // Query overwrites sql.DB.Query | {
"resource": ""
} | ||
c17467 | train | // scan data to a struct's pointer according field index | {
"resource": ""
} | ||
c17468 | train | // scan data to a slice's pointer, slice's length should equal to columns' number | {
"resource": ""
} | ||
c17469 | train | // RegisterDialect register database dialect | {
"resource": ""
} | ||
c17470 | train | // QueryDialect query if registed database dialect | {
"resource": ""
} | ||
c17471 | train | // Walk walks the AST depth-first with the given visitor, starting at the
// given node. The visitor's Visit function should return a non-nil visitor if
// it wants to visit the children of the node it was called with. | {
"resource": ""
} | ||
c17472 | train | // ValuesAreEqual checks if two values are equal. | {
"resource": ""
} | ||
c17473 | train | // StructsAreEqual checks if two structs are equal. | {
"resource": ""
} | ||
c17474 | train | // SetsAreEqual checks if two sets are equal. | {
"resource": ""
} | ||
c17475 | train | // MapsAreEqual checks if two maps are equal. | {
"resource": ""
} | ||
c17476 | train | // ListsAreEqual checks if two lists are equal. | {
"resource": ""
} | ||
c17477 | train | // compileTypedef compiles the given Typedef AST into a TypedefSpec. | {
"resource": ""
} | ||
c17478 | train | // Link links the Target TypeSpec for this typedef in the given scope. | {
"resource": ""
} | ||
c17479 | train | // ForEachTypeReference for TypedefSpec | {
"resource": ""
} | ||
c17480 | train | // Parse parses the given Thrift document. | {
"resource": ""
} | ||
c17481 | train | // WriteEnveloped writes enveloped value using the strict envelope. | {
"resource": ""
} | ||
c17482 | train | // TypeDefinition generates code for the given TypeSpec. | {
"resource": ""
} | ||
c17483 | train | // isReferenceType checks if the given TypeSpec represents a reference type.
//
// Sets, maps, lists, and slices are reference types. | {
"resource": ""
} | ||
c17484 | train | // typeReference returns a string representation of a reference to the given
// type. | {
"resource": ""
} | ||
c17485 | train | // typeReferencePtr returns a strung representing a reference to a pointer of
// the given type. The pointer prefix is not added for types that are already
// reference types. | {
"resource": ""
} | ||
c17486 | train | // typeName returns the name of the given type, whether it's a custom type or
// native. | {
"resource": ""
} | ||
c17487 | train | // resolveService resolves a ServiceReference in the given scope. | {
"resource": ""
} | ||
c17488 | train | // Link resolves any references made by the given service. | {
"resource": ""
} | ||
c17489 | train | // Link resolves any references made by the given function. | {
"resource": ""
} | ||
c17490 | train | // CallType returns the envelope type that is used when making enveloped
// requests for this function. | {
"resource": ""
} | ||
c17491 | train | // Link resolves references made by the ArgsSpec. | {
"resource": ""
} | ||
c17492 | train | // Link resolves any references made by the return type or exceptions in the
// ResultSpec. | {
"resource": ""
} | ||
c17493 | train | // Contains returns true if the given semver version number is in this range. | {
"resource": ""
} | ||
c17494 | train | // zapMarshalerPtr will dereference the pointer and call zapMarshal on it. | {
"resource": ""
} | ||
c17495 | train | // Compile parses and compiles the Thrift file at the given path and any other
// Thrift file it includes. | {
"resource": ""
} | ||
c17496 | train | // load populates the compiler with information from the given Thrift file.
//
// The types aren't actually compiled in this step. | {
"resource": ""
} | ||
c17497 | train | // include loads the file specified by the given include in the given Module.
//
// The path to the file is relative to the ThriftPath of the given module. | {
"resource": ""
} | ||
c17498 | train | // Slices are logged as JSON arrays. | {
"resource": ""
} | ||
c17499 | train | // Handle receives and handles a request for the ServiceGenerator service. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.