_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c14000
// pk returns the primary key values indexed by the corresponding primary key column names.
c14001
// columns returns the struct field values indexed by their corresponding DB column names.
c14002
// getValue returns the field value for the given struct value.
c14003
// getField returns the reflection value of the field for the given struct value.
c14004
// indirect dereferences pointers and returns the actual value it points to. // If a pointer is nil, it will be initialized with a new value.
c14005
// NewExp generates an expression with the specified SQL fragment and the optional binding parameters.
c14006
// Escape specifies how a LIKE expression should be escaped. // Each string at position 2i represents a special character and the string at position 2i+1 is // the corresponding escaped version.
c14007
// String returns the constant of the // string representation of the OpType object.
c14008
// OpTypeFromString returns the constant // representing the passed in string
c14009
// GetFunction looks up a function by name and then init's it with the provided map. // returns ErrNotFound if the provided name was not registered.
c14010
// RegisteredFunctions returns a slice of the names of every function registered.
c14011
// Tail does the things
c14012
// Use Postgres logical decoding to retrieve the latest changes
c14013
// Stop sends a stop signal to the emitter and all the nodes, whether they are running or not. // the node's database adaptors are expected to clean up after themselves, and stop will block until // all nodes have stopped successfully
c14014
// Run the pipeline
c14015
// start error listener consumes all the events on the pipe's Err channel, and stops the pipeline // when it receives one
c14016
// emit the metrics
c14017
// apply maps a function f across all nodes of a pipeline
c14018
// Writer instantiates a Writer for use with working with the file.
c14019
// Construct will Marshal the Config and then Unmarshal it into a // named struct the generic map into a proper struct
c14020
// GetString returns value stored in the config under the given key, or // an empty string if the key doesn't exist, or isn't a string value
c14021
// Add exposes the ability for each versioned client to register itself for use
c14022
// NewLogManager creates a new instance of LogManager and initializes its namespace map by reading any // existing log files.
c14023
// CommitOffset verifies it does not contain an offset older than the current offset // and persists to the log.
c14024
// OffsetMap provides access to the underlying map containing the newest offset for every // namespace.
c14025
// NewestOffset loops over every offset and returns the highest one.
c14026
// WithURI defines the full connection string for the RabbitMQ connection
c14027
// WithSSL configures the database connection to connect via TLS.
c14028
// WithCACerts configures the RootCAs for the underlying TLS connection
c14029
// Connect satisfies the client.Client interface.
c14030
// String represents the pipelines as a string
c14031
// Config parses the provided configuration object and associates it with the // JS VM.
c14032
// Reader returns an error because this adaptor is currently not supported as a Source.
c14033
// Writer determines the which underlying writer to used based on the cluster's version.
c14034
// Has returns to two value from of the key lookup on a map.
c14035
// PutOffset sets the provided offset for the given Log.
c14036
// WithPath defines the directory where all data will be stored.
c14037
// WithMaxSegmentBytes defines the maximum limit a log segment can reach before needing // to create a new one.
c14038
// OldestOffset obtains the BaseOffset from the oldest segment on disk.
c14039
// Segments provides access to the underlying segments stored on disk.
c14040
// DeleteAll cleans out all data in the path.
c14041
// NewReader returns an io.Reader based on the provider offset.
c14042
// NewPipe creates a new Pipe. If the pipe that is passed in is nil, then this pipe will be treated as a source pipe that just serves to emit messages. // Otherwise, the pipe returned will be created and chained from the last member of the Out slice of the parent. This function has side effects, and will add // an Ou...
c14043
// Stop terminates the channels listening loop, and allows any timeouts in send to fail
c14044
// Send emits the given message on the 'Out' channel. the send Timesout after 100 ms in order to chaeck of the Pipe has stopped and we've been asked to exit. // If the Pipe has been stopped, the send will fail and there is no guarantee of either success or failure
c14045
// getOriginalDoc retrieves the original document from the database. // transporter has no knowledge of update operations, all updates work as wholesale document replaces
c14046
// validOp checks to see if we're an insert, delete, or update, otherwise the // document is skilled.
c14047
// WithURI defines the full connection string of the MongoDB database.
c14048
// WithTimeout overrides the DefaultSessionTimeout and should be parseable by time.ParseDuration
c14049
// WithReadPreference sets the MongoDB read preference based on the provided string.
c14050
// Connect tests the mongodb connection and initializes the mongo session
c14051
// Session fulfills the client.Client interface by providing a copy of the main mgoSession
c14052
// Connect initializes the file for IO
c14053
// Close closes the underlying file
c14054
// NewMetricsEvent creates a new metrics event
c14055
// NewErrorEvent are events sent to indicate a problem processing on one of the nodes
c14056
// NewNodeWithOptions initializes a Node with the required parameters and then applies // each OptionFunc provided.
c14057
// WithReader sets the client.Reader to be used to source data from.
c14058
// WithWriter sets the client.Writer to be used to send data to.
c14059
// WithParent sets the parent node and reconfigures the pipe.
c14060
// WithTransforms adds the provided transforms to be applied in the pipeline.
c14061
// WithCommitLog configures a CommitLog for the reader to persist messages.
c14062
// WithResumeTimeout configures how long to wait before all sink offsets match the // newest offset.
c14063
// WithWriteTimeout configures the timeout duration for a writer to return.
c14064
// WithOffsetManager configures an offset.Manager to track message offsets.
c14065
// WithCompactionInterval configures the duration for running log compaction.
c14066
// Start the adaptor as a source
c14067
// Stop this node's adaptor, and sends a stop to each child of this node
c14068
// Validate ensures that the node tree conforms to a proper structure. // Node trees must have at least one source, and one sink. // dangling transformers are forbidden. Validate only knows about default adaptors // in the adaptor package, it can't validate any custom adaptors
c14069
// Endpoints recurses down the node tree and accumulates a map associating node name with node type // this is primarily used with the boot event
c14070
// WithURI defines the full connection string of the RethinkDB database.
c14071
// WithSessionTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
c14072
// WithWriteTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
c14073
// WithReadTimeout overrides the DefaultTimeout and should be parseable by time.ParseDuration
c14074
// Close fulfills the Closer interface and takes care of cleaning up the rethink.Session
c14075
// From builds a message.Msg specific to an elasticsearch document
c14076
// WithConfirms attaches a channel to be able to acknowledge message processing.
c14077
// ID will attempt to convert the _id field into a string representation
c14078
// prepareDocument checks for an `_id` field and moves it to `id`.
c14079
// handleresponse takes the rethink response and turn it into something we can consume elsewhere
c14080
// NewEmitter creates a new emitter that will listen on the listen channel and use the emit EmitFunc // to process events
c14081
// Start the emitter
c14082
// Stop sends a stop signal and waits for the inflight posts to complete before exiting
c14083
// HTTPPostEmitter listens on the event channel and posts the events to an http server // Events are serialized into json, and sent via a POST request to the given Uri // http errors are logged as warnings to the console, and won't stop the Emitter
c14084
// GetAdaptor looks up an adaptor by name and then init's it with the provided Config. // returns ErrNotFound if the provided name was not registered.
c14085
// RegisteredAdaptors returns a slice of the names of every adaptor registered.
c14086
// Adaptors returns an non-initialized adaptor and is best used for doing assertions to see if // the Adaptor supports other interfaces
c14087
// NewSegment creates a new instance of Segment with the provided parameters // and initializes its NextOffset and Position should the file be non-empty.
c14088
// IsFull determines whether the current size of the segment is greater than or equal to the // maxBytes configured.
c14089
// ReadAt calls ReadAt on the underlying log.
c14090
// FindOffsetPosition attempts to find the provided offset position in the // Segment.
c14091
// Bytes converts Offset to the binary format to be stored on disk.
c14092
// WithURI defines the full connection string for the Postgres connection
c14093
// Connect initializes the Postgres connection
c14094
// ModeOpToByte converts the Mode and Op values into a single byte by performing bitwise operations. // Mode is stored in bits 0 - 1 // Op is stored in bits 2 - 4 // bits 5 - 7 are currently unused
c14095
// ReadEntry takes an io.Reader and returns a LogEntry.
c14096
// readKeyValue returns the key and value stored given the size and io.Reader.
c14097
// Apply fulfills the function.Function interface by transforming the incoming message with the configured // JavaScript function.
c14098
// Profile is getting the user data
c14099
// Emails is getting user's emails