_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c180200 | // PadRightF is the filter form of Padright | |
c180201 | // Pipe pipes s through one or more string filters. | |
c180202 | // QuoteItems quotes all items in array, mostly for debugging. | |
c180203 | // ReplaceF is the filter form of strings.Replace. | |
c180204 | // ReplacePatternF is the filter form of ReplaceRegexp. | |
c180205 | // Reverse a string | |
c180206 | // RightF is the Filter version of Right. | |
c180207 | // Slice slices a string. If end is negative then it is the from the end
// of the string. | |
c180208 | // SliceF is the filter for Slice. | |
c180209 | // SliceContains determines whether val is an element in slice. | |
c180210 | // SliceIndexOf gets the indx of val in slice. Returns -1 if not found. | |
c180211 | // Slugify converts s into a dasherized string suitable for URL segment. | |
c180212 | // StripPunctuation strips puncation from string. | |
c180213 | // StripTags strips all of the html tags or tags specified by the parameters | |
c180214 | // Substr returns a substring of s starting at index of length n. | |
c180215 | // SubstrF is the filter form of Substr. | |
c180216 | // TemplateWithDelimiters is string template with user-defineable opening and closing delimiters. | |
c180217 | // ToArgv converts string s into an argv for exec. | |
c180218 | // ToBool fuzzily converts truthy values. | |
c180219 | // ToBoolOr parses s as a bool or returns defaultValue. | |
c180220 | // ToIntOr parses s as an int or returns defaultValue. | |
c180221 | // ToFloat32Or parses as a float32 or returns defaultValue on error. | |
c180222 | // ToFloat64Or parses s as a float64 or returns defaultValue. | |
c180223 | // UnescapeHTML is an alias for html.UnescapeString. | |
c180224 | // WrapHTML wraps s within HTML tag having attributes attrs. Note,
// WrapHTML does not escape s value. | |
c180225 | // WrapHTMLF is the filter form of WrapHTML. | |
c180226 | // ReapChildren is a long-running routine that blocks waiting for child
// processes to exit and reaps them, reporting reaped process IDs to the
// optional pids channel and any errors to the optional errors channel.
//
// The optional reapLock will be used to prevent reaping during periods
// when you know your applic... | |
c180227 | // SdNotify sends a specified string to the systemd notification socket. | |
c180228 | // NewAuthenticator constructs a new Authenticator from a store and policy. | |
c180229 | // Endpoint returns a handler for the common token and authorize endpoint. | |
c180230 | // Unique is a helper to get a unique list of object ids. | |
c180231 | // Contains returns true if a list of object ids contains the specified id. | |
c180232 | // Includes returns true if a list of object ids includes another list of object
// ids. | |
c180233 | // Require will check if the specified flags are set on the specified model and
// panic if one is missing. | |
c180234 | // Enqueue will enqueue a job using the specified name and data. If a delay
// is specified the job will not be dequeued until the specified time has passed. | |
c180235 | // A is a short-hand function to construct an authorizer. It will also add tracing
// code around the execution of the authorizer. | |
c180236 | // Run will authorize immediately and return the provided list of enforcers. | |
c180237 | // And will match and run both authorizers and return immediately if one does not
// return a set of enforcers. The two successfully returned enforcer sets are
// merged into one and returned. | |
c180238 | // Or will match and run the first authorizer and return its enforcers on success.
// If no enforcers are returned it will match and run the second authorizer and
// return its enforcers. | |
c180239 | // Enqueue will enqueue a job using the specified name and data. If a delay
// is specified the job will not dequeued until the specified time has passed. | |
c180240 | // Callback is a factory to create callbacks that can be used to enqueue jobs
// during request processing. | |
c180241 | // NewWatcher creates and returns a new watcher. | |
c180242 | // Add will add a stream to the watcher. | |
c180243 | // Action returns an action that should be registered in the group under
// the "watch" name. | |
c180244 | // Write will return true when this operation does write data. | |
c180245 | // String returns the name of the operation. | |
c180246 | // Query returns the composite query of Selector and Filter. | |
c180247 | // Respond will encode the provided value as JSON and write it to the client. | |
c180248 | // EnsureApplication will ensure that an application with the provided name
// exists and returns its key. | |
c180249 | // EnsureFirstUser ensures the existence of a first user if no other has been
// created. | |
c180250 | // Callback will return a callback that authorizes operations using the strategy. | |
c180251 | // OpenStream will open a stream and continuously forward events to the specified
// receiver until the stream is closed. If a token is present it will be used to
// resume the stream. The provided opened function is called when the stream has
// been opened the first time. The passed manager is called with errors retu... | |
c180252 | // Close will close the stream. | |
c180253 | // AddTokenIndexes will add access token indexes to the specified indexer. | |
c180254 | // GetTokenData implements the flame.GenericToken interface. | |
c180255 | // SetTokenData implements the flame.GenericToken interface. | |
c180256 | // ValidSecret implements the flame.Client interface. | |
c180257 | // HashSecret will hash Secret and set SecretHash. | |
c180258 | // ValidPassword implements the flame.ResourceOwner interface. | |
c180259 | // HashPassword will hash Password and set PasswordHash. | |
c180260 | // MustCreateStore will dial the passed database and return a new store. It will
// panic if the initial connection failed. | |
c180261 | // CreateStore will dial the passed database and return a new store. It will
// return an error if the initial connection failed | |
c180262 | // C will return the collection associated to the passed model. | |
c180263 | // NewAssetServer constructs an asset server handler that serves an asset
// directory on a specified path and serves the index file for not found paths
// which is needed to run single page applications like Ember. | |
c180264 | // DefaultGrantStrategy grants only empty scopes. | |
c180265 | // DefaultTokenData adds the user's id to the token data claim. | |
c180266 | // GenerateToken returns a new token for the provided information. | |
c180267 | // ParseToken will parse the presented token and return its claims, if it is
// expired and eventual errors. | |
c180268 | // E is a short-hand function to create an enforcer. | |
c180269 | // MustGet returns the value of the given field. MustGet will panic if no field
// has been found. | |
c180270 | // MustSet will set the given field to the the passed valued. MustSet will panic
// if no field has been found. | |
c180271 | // NewGroup creates and returns a new group. | |
c180272 | // Add will add a controller to the group. | |
c180273 | // Endpoint will return an http handler that serves requests for this group. The
// specified prefix is used to parse the requests and generate urls for the
// resources. | |
c180274 | // Add will add an index to the internal index list. Fields that are prefixed
// with a dash will result in an descending index. See the MongoDB documentation
// for more details. | |
c180275 | // AddRaw will add a raw mgo.Index to the internal index list. | |
c180276 | // Ensure will ensure that the required indexes exist. It may fail early if some
// of the indexes are already existing and do not match the supplied index. | |
c180277 | // NewCatalog will create a new catalog. | |
c180278 | // Add will add the specified models to the catalog. | |
c180279 | // All returns a list of all registered models. | |
c180280 | // Visualize emits a string in dot format which when rendered with graphviz
// visualizes the models and their relationships. | |
c180281 | // NewErrorReporter returns a very basic reporter that writes errors and stack
// traces to the specified writer. | |
c180282 | // EnsureIndexes will ensure that the required indexes exist. | |
c180283 | // E is a short-hand function to construct a safe error. | |
c180284 | // Compose is a short-hand for chaining the specified middleware and handler
// together. | |
c180285 | // Includes returns true if a list of strings includes another list of strings. | |
c180286 | // Intersect will return the intersection of both lists. | |
c180287 | // E is a short-hand to construct an error. | |
c180288 | // RootTracer is a middleware that can be used to create root trace span for an
// incoming request. | |
c180289 | // NewTracerFromRequest returns a new tracer that has a root span derived from
// the specified request. A span previously added to the request context using
// Context is automatically used as the parent. | |
c180290 | // NewTracer returns a new tracer with the specified root span. | |
c180291 | // Push will add a new span on to the stack. Successful spans must be finished by
// calling Pop. If the code panics or an error is returned the last pushed span
// will be flagged with the error and a leftover spans are popped. | |
c180292 | // Last returns the last pushed span or the root span. | |
c180293 | // Tag adds a tag to the last pushed span. | |
c180294 | // Log adds a log to the last pushed span. | |
c180295 | // Context returns a new context with the latest span stored as a reference for
// handlers that will call NewTracerFromRequest or similar. | |
c180296 | // Pop finishes and removes the last pushed span. | |
c180297 | // Finish will finish all leftover spans and the root span if requested. | |
c180298 | // NewPool creates and returns a new pool. | |
c180299 | // Add will add the specified task and its queue to the pool. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.