_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c16000
// DefaultOptions returns the default encoding options.
c16001
// Unmarshal parses the Hjson-encoded data and stores the result // in the value pointed to by v. // // Unmarshal uses the inverse of the encodings that // Marshal uses, allocating maps, slices, and pointers as necessary. //
c16002
// Sprint returns a string representation of the given value according to cfg.
c16003
// Fprint writes the representation of the given value to the writer according to the DefaultConfig.
c16004
// Fprint writes the representation of the given value to the writer according to the cfg.
c16005
// Compare returns a string containing a line-by-line unified diff of the // values in got and want according to the cfg.
c16006
// Diff returns a string containing a line-by-line unified diff of the linewise // changes required to make A into B. Each line is prefixed with '+', '-', or // ' ' to indicate if it should be added, removed, or is correct respectively.
c16007
// ValidatedStatusCode returns the HTTP response status code. If the code is not 4xx // or 5xx, an InternalServerError will be returned instead.
c16008
// AppendErrorMessage returns an error with the message updated. All other properties are preserved.
c16009
// NewFailureResponseBuilder returns a pointer to a newly instantiated FailureResponseBuilder // Accepts required arguments to create a FailureResponse.
c16010
// WithErrorKey adds a custom ErrorKey which will be used in FailureResponse to add an `Error` // field to the JSON HTTP response body
c16011
// Build returns the generated FailureResponse built using previously configured variables.
c16012
// DecodeFrame decodes a dca frame from an io.Reader and returns the raw opus audio ready to be sent to discord
c16013
// NewDecoder returns a new dca decoder
c16014
// ReadMetadata reads the first metadata frame // OpusFrame will call this automatically if
c16015
// OpusFrame returns the next audio frame // If this is the first frame it will also check for metadata in it
c16016
// FrameDuration implements OpusReader, returnining the specified duration per frame
c16017
// PlaybackPosition returns the the duration of content we have transmitted so far
c16018
// Finished returns wether the stream finished or not, and any error that caused it to stop
c16019
// Paused returns wether the sream is paused or not
c16020
// Validate returns an error if the options are not correct
c16021
// EncodedMem encodes data from memory
c16022
// Stop stops the encoding session
c16023
// OpusFrame implements OpusReader, returning the next opus frame
c16024
// Running returns true if running
c16025
// FrameDuration implements OpusReader, retruning the duratio of each frame
c16026
// Error returns any error that occured during the encoding process
c16027
// FFMPEGMessages returns messages printed by ffmpeg to stderr, you can use this to see what ffmpeg is saying if your encoding fails
c16028
// init configures and parses the command line arguments
c16029
// very simple program that wraps ffmpeg and outputs raw opus data frames // with a uint16 header for each frame with the frame length in bytes
c16030
//WithSuitableAuthentication handles basic authentication and guest quota processing
c16031
// Parse creates a UUID object from given bytes slice.
c16032
// Generate a UUID based on the MD5 hash of a namespace identifier // and a name.
c16033
// Generate a random UUID.
c16034
// Generate a UUID based on the SHA-1 hash of a namespace identifier // and a name.
c16035
// Generate a MD5 hash of a namespace and a name, and copy it to the // UUID slice.
c16036
// ListVhosts returns a list of virtual hosts.
c16037
// Creates or updates a virtual host.
c16038
// Creates a client with a transport; it is up to the developer to make that layer secure.
c16039
// ListPermissions returns permissions for all users and virtual hosts.
c16040
// Updates permissions of user in virtual host.
c16041
// ListTopicPermissions returns topic-permissions for all users and virtual hosts.
c16042
// Updates topic-permissions of user in virtual host.
c16043
// ListBindings returns all bindings
c16044
// NewDecoder Creates a new Decoder object
c16045
// Read out the object bytes to decode
c16046
// Decode decodes the stream to an object
c16047
// New makes a new error
c16048
// Wrap wraps an error with a new error
c16049
// InnerMost returns the innermost error wrapped by this error
c16050
// sprintByteHex returns a formatted string of the byte array in hexadecimal // with a nicely formatted human-readable output
c16051
// driverArgsToMap turns driver.Value list into a parameter map // for neo4j parameters
c16052
// Commit commits and closes the transaction
c16053
// Open opens a new Bolt connection to the Neo4J database
c16054
// NewDriverPool creates a new Driver object with connection pooling
c16055
// NewClosableDriverPool create a closable driver pool
c16056
// OpenPool opens a returns a Bolt connection from the pool to the Neo4J database.
c16057
// Close all connections in the pool
c16058
// newBoltConn Creates a new bolt connection
c16059
// newPooledBoltConn Creates a new bolt connection with a pooled driver
c16060
// Read reads the data from the underlying connection
c16061
// Write writes the data to the underlying connection
c16062
// Close closes the connection // Driver may allow for pooling in the future, keeping connections alive
c16063
// Prepare prepares a new statement for a query
c16064
// PreparePipeline prepares a new pipeline statement for a query.
c16065
// Begin begins a new transaction with the Neo4J Database
c16066
// NewRunMessage Gets a new RunMessage struct
c16067
// Columns returns the columns from the result
c16068
// Close closes the rows
c16069
// Next gets the next row result
c16070
// NextNeo gets the next row result // When the rows are completed, returns the success metadata // and io.EOF
c16071
// NextPipeline gets the next row result // When the rows are completed, returns the success metadata and the next // set of rows. // When all rows are completed, returns io.EOF
c16072
// NewInitMessage Gets a new InitMessage struct
c16073
// SetLevel sets the logging level of this package. levelStr should be one of "trace", "info", or "error
c16074
// Tracef writes a trace log in the format of Printf
c16075
// Infof writes an info log in the format of Printf
c16076
// Errorf writes an error log in the format of Printf
c16077
// NewEncoder Creates a new Encoder object
c16078
// Marshal is used to marshal an object to the bolt interface encoded bytes
c16079
// write writes to the writer. Buffers the writes using chunkSize.
c16080
// flush finishes the encoding stream by flushing it to the writer
c16081
// Read from the net conn, recording the interaction
c16082
// Close the net conn, outputting the recording
c16083
// Write to the net conn, recording the interaction
c16084
// Called to initialize
c16085
// Called to initialize the FastHttpServer
c16086
// The root handler
c16087
// Handle an event generated from Revel
c16088
// Create a new context
c16089
// Called to set the context
c16090
// Gets the value from the request
c16091
// Returns the query string
c16092
// Called when request is done
c16093
// gets the key from the response
c16094
// Sets the key with the value
c16095
// Writes a stream to the response
c16096
// Called to reset this response
c16097
// Sets the context
c16098
// Sets a cookie
c16099
// Deletes a header key