_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c181300
// SetAnnotation sets annotations for the virtual machine.
c181301
// SetVirtualHwVersion sets a virtual hardware version in the VMX file of the VM.
c181302
// Error returns a description of the error along with its code and operation // implementing Go's error interface.
c181303
// Errorf returns a traceable error with the given formatted message.
c181304
// Error returns the original error message plus the stack trace captured // at the time the error was first wrapped.
c181305
// string converts a given stack frame to a formated string.
c181306
// newStackFrame returns a new stack frame initialized from the passed // in program counter.
c181307
// captureStack returns a slice of stack frames representing the stack // of the calling go routine.
c181308
// parseFuncName returns the package path and function signature for a // give Func name.
c181309
// Stack logs the error err with the stack trace.
c181310
// StackWithCaller logs the error err with the caller package name and the stack trace.
c181311
// Write calls the writer upstream after executing the functions in the before field.
c181312
// ResponseStatus returns the HTTP response status. // Remember that the status is only set by the server after WriteHeader has been called.
c181313
// httpResponseStruct returns the response structure after going trough all the intermediary response writers.
c181314
// SetDetectedContentType detects, sets and returns the response Conten-Type header value.
c181315
// New ServerError.New
c181316
// New DBError.New
c181317
// New ValidationError.New
c181318
// New NotFoundError.New
c181319
// StrLength param is a string, length must be n
c181320
// StrLenIn param is a string, length is in array
c181321
// StrIn param is a string, the string is in array
c181322
// GetEmail check is a email
c181323
// MostSpecific returns the most specific from a list of types in an hierarchy // behaviour is undefined if any of the types are siblings.
c181324
//Full type hierarchy is returned when provided either the concept type // or full uri of the most specific concept type
c181325
// SortTypes sorts the given types from least specific to most specific
c181326
// Delete value in redis session
c181327
// Set value in redis session
c181328
// refresh refresh store to redis
c181329
// Get read redis session by sid
c181330
// Destroy delete redis session by id
c181331
// UpExpire refresh session expire
c181332
// Use adds a handler to the handlers stack.
c181333
// ServeHTTP makes a context for the request, sets some good practice default headers and enters the handlers stack.
c181334
// Use adds middleware to the group, see example code in github.
c181335
// Group creates a new router group. You should add all the routes that have common middlwares or the same path prefix. // For example, all the routes that use a common middlware for authorization could be grouped.
c181336
// Run starts the server for listening and serving.
c181337
// create returns a new blank Engine instance without any middleware attached.
c181338
// Redirect Redirect replies to the request with a redirect to url, which may be a path relative to the request path.
c181339
// Ok Response json
c181340
// Fail Response fail
c181341
// ResStatus Response status code, use http.StatusText to write the response.
c181342
// Next calls the next handler in the stack, but only if the response isn't already written.
c181343
// GetSession get session
c181344
// GetBodyJSON return a json from body
c181345
// SetSession set session
c181346
// FreshSession set session
c181347
// DeleteSession delete session
c181348
// Write sets the context's written flag before writing the response.
c181349
// WriteHeader sets the context's written flag before writing the response header.
c181350
// New instantiates a new client with the given params and return a reference to it
c181351
// setAllowLargeResults - private function to set the AllowLargeResults and tempTableName values
c181352
// connect - opens a new connection to bigquery, reusing the token if possible or regenerating a new auth token if required
c181353
// InsertRow inserts a new row into the desired project, dataset and table or returns an error
c181354
// AsyncQuery loads the data by paging through the query results and sends back payloads over the dataChan - dataChan sends a payload containing Data objects made up of the headers, rows and an error attribute
c181355
// Query loads the data for the query paging if necessary and return the data rows, headers and error
c181356
// stdPagedQuery executes a query using default job parameters and paging over the results, returning them over the data chan provided
c181357
// largeDataPagedQuery builds a job and inserts it into the job queue allowing the flexibility to set the custom AllowLargeResults flag for the job
c181358
// pagedQuery executes the query using bq's paging mechanism to load all results and sends them back via dataChan if available, otherwise it returns the full result set, headers and error as return values
c181359
// pageOverJob loads results for the given job reference and if the total results has not been hit continues to load recursively
c181360
// Count loads the row count for the provided dataset.tablename
c181361
// work uses fetcher to recursively crawl // pages starting with url, to a maximum of depth.
c181362
// subworker catches any panic while running the job.
c181363
// worker gets a job from the job_pipe, passes it to a // subworker and puts the job in the done_pipe when finished.
c181364
// the supervisor feeds jobs to workers and keeps track of them.
c181365
// Run starts the Pool by launching the workers. // It's OK to start an empty Pool. The jobs will be fed to the workers as soon // as they become available.
c181366
// Add creates a Job from the given function and args and // adds it to the Pool.
c181367
// Wait blocks until all the jobs in the Pool are done.
c181368
// Results retrieves the completed jobs.
c181369
// WaitForJob blocks until a completed job is available and returns it. // If there are no jobs running, it returns nil.
c181370
// Status returns a "stats" instance.
c181371
// WrapHTTPHandlerFunc wraps http.HandlerFunc in possum.HandlerFunc. // See pprof.go.
c181372
// WebSocketHandlerFunc convert websocket function to possum.HandlerFunc.
c181373
// StaticFile returns the view which can serve static files.
c181374
// PreloadFile returns the view which can preload static files and serve them. // The different between `StaticFile` and `PreloadFile` is that `StaticFile` // load the content of file at every request, while `PreloadFile` load // the content into memory at the initial stage. Despite that `PreloadFile` // will be using more memories and could not update the content in time until // restart the application, it should be fast than `StaticFile` in runtime.
c181375
// InitHtmlTemplates initialzes a series of HTML templates // in the directory `pattern`.
c181376
// InitTextTemplates initialzes a series of plain text templates // in the directory `pattern`.
c181377
// Html retruns a TemplateView witch uses HTML templates internally.
c181378
// Text retruns a TemplateView witch uses text templates internally.
c181379
// InitWatcher initialzes a watcher to watch templates changes in the `pattern`. // f would be InitHtmlTemplates or InitTextTemplates. // If the watcher raises an error internally, the callback function ef will be executed. // ef can be nil witch represents ignoring all internal errors.
c181380
// CloseWatcher closes the wathcer.
c181381
// Find a router with the specific path and return it.
c181382
// Add a router to list
c181383
// NewRouters initailizes Routers instance.
c181384
// NewServerMux returns a new Handler.
c181385
// Internal error handler
c181386
// HandleFunc specifies a pair of handler and view to handle // the request witch matching router.
c181387
// handleError tests the context `Error` and assign it to response.
c181388
// Redirect performs a redirecting to the url, if the code belongs to // one of StatusMovedPermanently, StatusFound, StatusSeeOther, and // StatusTemporaryRedirect.
c181389
// InitPProf registers pprof handlers to the ServeMux. // The pprof handlers can be specified a customized prefix.
c181390
// StartSession initaillizes a session context. // This function should be called in a implementation // of possum.HandleFunc.
c181391
//Combination generator for int slice
c181392
//Repeated combination generator for int slice
c181393
//Permtation generator for int slice
c181394
//Repeated permtation generator for int slice
c181395
// Receives format string in gstring format and map of arguments and translates // them to format and arguments compatible with standard golang formatting.
c181396
// interface similar to "fmt" package // Errorm returns error instance with formatted error message. // This is same as fmt.Errorf, but uses gstring formatting.
c181397
// Fprintm writes formatted string to provided writer. // This is same as fmt.Fprintf, but uses gstring formatting.
c181398
// Printf prints formatted string to stdout. // This is same as fmt.Printf, but uses gstring formatting.
c181399
// Sprintf returns formatted string. // This is same as fmt.Sprintf, but uses gstring formatting.