_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c17400 | // FromContext returns the logger contained in the context, or an inert logger
// that will not log anything. | |
c17401 | // WithSession returns a new logger that has, for convenience, had a new
// session created on it. | |
c17402 | // WithData returns a new logger that has, for convenience, had new data added
// to on it. | |
c17403 | // Adquire a lock for given key | |
c17404 | // NewHandler creates a new Handler using Next middleware | |
c17405 | // Flush does nothing in a buffer | |
c17406 | // NewHTTPCacheEntry creates a new HTTPCacheEntry for the given request and response
// and it also calculates if the response is public | |
c17407 | // WriteBodyTo sends the body to the http.ResponseWritter | |
c17408 | // NewFileStorage creates a new temp file that will be used as a the storage of the cache entry | |
c17409 | // Flush syncs the underlying file | |
c17410 | // Clean removes the file | |
c17411 | // Close the underlying file | |
c17412 | // GetReader returns a new file descriptor to the same file | |
c17413 | // Close closes the underlying storage | |
c17414 | // Setup creates a new cache middleware | |
c17415 | // NewResponse returns an initialized Response. | |
c17416 | // 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. | |
c17417 | // 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. | |
c17418 | // Clean the body if it is set | |
c17419 | // Get returns a named session. | |
c17420 | // Middleware returns a Session middleware. | |
c17421 | // Middleware returns a CasbinAuth middleware.
//
// For valid credentials it calls the next handler.
// For missing or invalid credentials, it sends "401 - Unauthorized" response. | |
c17422 | // update stats in a stat sturcture | |
c17423 | // prints in CSV format | |
c17424 | // return an evtx.Chunk object from a reader | |
c17425 | // main routine to carve a file | |
c17426 | // small routine that prints the EVTX event | |
c17427 | // New EvtxFile structure initialized from file
// @filepath : filepath of the evtx file to parse
// return File : File structure initialized | |
c17428 | // ParseFileHeader parses a the file header of the file structure and modifies
// the Header of the current structure | |
c17429 | // FetchChunk fetches a Chunk
// @offset : offset in the current file where to find the Chunk
// return Chunk : Chunk parsed | |
c17430 | // 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) | |
c17431 | // 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) | |
c17432 | // MarshalJSON implements JSON serialization | |
c17433 | // Validate controls the validity of the chunk header | |
c17434 | // ParseChunkHeader parses a chunk header at offset | |
c17435 | // Less implement datastructs.Sortable | |
c17436 | // 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 | |
c17437 | // 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 | |
c17438 | // 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 | |
c17439 | // 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 | |
c17440 | // Parse implements Element | |
c17441 | // 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 | |
c17442 | // GetUint returns the GoEvtxElement at path as a string
// @path : path to search for
// return string, error | |
c17443 | // GetBool returns the GoEvtxElement at path as a bool
// @path : path to search for
// return (bool, error) | |
c17444 | // GetInt returns the GoEvtxElement at path as a int64
// @path : path to search for
// return int64, error | |
c17445 | // GetUint returns the GoEvtxElement at path as a uint64
// @path : path to search for
// return uint64 | |
c17446 | // GetUint returns the GoEvtxElement at path as a Time struct
// @path : path to search for
// return Time | |
c17447 | // 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 | |
c17448 | // 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 | |
c17449 | // RegexMatch returns true if GoEvtxElement located at path matches a regexp
// @path : path at witch GoEvtxElement is located
// @pattern : regexp to test
// return bool | |
c17450 | // Set sets a new GoEvtxElement at path
// @path... : path to look for
// @new : new value
// return error if any | |
c17451 | // Del deletes the object referenced by path | |
c17452 | // Validate controls the EventHeader | |
c17453 | // 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) | |
c17454 | // add columns which will be composite index | |
c17455 | // new an index | |
c17456 | // Type2SQLType generate SQLType acorrding Go's type | |
c17457 | // default sql type change to go types | |
c17458 | // ValueOf returns column's filed of struct's value | |
c17459 | // ValueOfV returns column's filed of struct's value accept reflevt value | |
c17460 | // if has primary key, return column | |
c17461 | // add a column to table | |
c17462 | // add an index or an unique to table | |
c17463 | // Open opens a database | |
c17464 | // FromDB creates a DB from a sql.DB | |
c17465 | // QueryContext overwrites sql.DB.QueryContext | |
c17466 | // Query overwrites sql.DB.Query | |
c17467 | // scan data to a struct's pointer according field index | |
c17468 | // scan data to a slice's pointer, slice's length should equal to columns' number | |
c17469 | // RegisterDialect register database dialect | |
c17470 | // QueryDialect query if registed database dialect | |
c17471 | // 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. | |
c17472 | // ValuesAreEqual checks if two values are equal. | |
c17473 | // StructsAreEqual checks if two structs are equal. | |
c17474 | // SetsAreEqual checks if two sets are equal. | |
c17475 | // MapsAreEqual checks if two maps are equal. | |
c17476 | // ListsAreEqual checks if two lists are equal. | |
c17477 | // compileTypedef compiles the given Typedef AST into a TypedefSpec. | |
c17478 | // Link links the Target TypeSpec for this typedef in the given scope. | |
c17479 | // ForEachTypeReference for TypedefSpec | |
c17480 | // Parse parses the given Thrift document. | |
c17481 | // WriteEnveloped writes enveloped value using the strict envelope. | |
c17482 | // TypeDefinition generates code for the given TypeSpec. | |
c17483 | // isReferenceType checks if the given TypeSpec represents a reference type.
//
// Sets, maps, lists, and slices are reference types. | |
c17484 | // typeReference returns a string representation of a reference to the given
// type. | |
c17485 | // 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. | |
c17486 | // typeName returns the name of the given type, whether it's a custom type or
// native. | |
c17487 | // resolveService resolves a ServiceReference in the given scope. | |
c17488 | // Link resolves any references made by the given service. | |
c17489 | // Link resolves any references made by the given function. | |
c17490 | // CallType returns the envelope type that is used when making enveloped
// requests for this function. | |
c17491 | // Link resolves references made by the ArgsSpec. | |
c17492 | // Link resolves any references made by the return type or exceptions in the
// ResultSpec. | |
c17493 | // Contains returns true if the given semver version number is in this range. | |
c17494 | // zapMarshalerPtr will dereference the pointer and call zapMarshal on it. | |
c17495 | // Compile parses and compiles the Thrift file at the given path and any other
// Thrift file it includes. | |
c17496 | // load populates the compiler with information from the given Thrift file.
//
// The types aren't actually compiled in this step. | |
c17497 | // 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. | |
c17498 | // Slices are logged as JSON arrays. | |
c17499 | // Handle receives and handles a request for the ServiceGenerator service. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.