_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c174100 | validation | // Get returns the mimetype, or an empty string if no mimetype or mimetype source is found | {
"resource": ""
} | ||
c174101 | validation | // SetHeader sets the Content-Type for a given ResponseWriter and filename extension | {
"resource": ""
} | ||
c174102 | validation | //GetFileSize - gets the filesize of a given path | {
"resource": ""
} | ||
c174103 | validation | // ListenAndServe starts the Neptulon server. This function blocks until server is closed. | {
"resource": ""
} | ||
c174104 | validation | // SendRequest sends a JSON-RPC request through the connection denoted by the connection ID with an auto generated request ID.
// resHandler is called when a response is returned. | {
"resource": ""
} | ||
c174105 | validation | // SendRequestArr sends a JSON-RPC request through the connection denoted by the connection ID, with array params and auto generated request ID.
// resHandler is called when a response is returned. | {
"resource": ""
} | ||
c174106 | validation | // Close closes the network listener and the active connections. | {
"resource": ""
} | ||
c174107 | validation | // wsHandler handles incoming websocket connections. | {
"resource": ""
} | ||
c174108 | validation | //SafeCreateS3Bucket creates an s3 bucket for storing files to an s3-compatible blobstore | {
"resource": ""
} | ||
c174109 | validation | //NewWriter - get a new s3 writer | {
"resource": ""
} | ||
c174110 | validation | //NewReader - get a new s3 reader | {
"resource": ""
} | ||
c174111 | validation | //Delete - delete an s3 bucket | {
"resource": ""
} | ||
c174112 | validation | // CertAtuh is TLS client-certificate authentication.
// If successful, certificate common name will stored with the key "userid" in session.
// If unsuccessful, connection will be closed right away. | {
"resource": ""
} | ||
c174113 | validation | // Params reads request parameters into given object.
// Object should be passed by reference. | {
"resource": ""
} | ||
c174114 | validation | // Next executes the next middleware in the middleware stack. | {
"resource": ""
} | ||
c174115 | validation | // Result reads response result data into given object.
// Object should be passed by reference. | {
"resource": ""
} | ||
c174116 | validation | // ErrorData reads the error response data into given object.
// Object should be passed by reference. | {
"resource": ""
} | ||
c174117 | validation | // MiddlewareList list creates a single middlware callback from an array | {
"resource": ""
} | ||
c174118 | validation | //LogFactory - a log creator | {
"resource": ""
} | ||
c174119 | validation | // NewRouter creates a new router instance. | {
"resource": ""
} | ||
c174120 | validation | // Request adds a new request route registry. | {
"resource": ""
} | ||
c174121 | validation | // Middleware is the Neptulon middleware method. | {
"resource": ""
} | ||
c174122 | validation | // NotFound wraps http.NotFound | {
"resource": ""
} | ||
c174123 | validation | //NewMysqlDump - will initialize a mysqldump for local execution | {
"resource": ""
} | ||
c174124 | validation | //NewRemoteMysqlDump - will initialize a mysqldmp for remote execution | {
"resource": ""
} | ||
c174125 | validation | //Import - will import to mysql from the given reader | {
"resource": ""
} | ||
c174126 | validation | //Dump - will dump a mysql to the given writer | {
"resource": ""
} | ||
c174127 | validation | //NewRemoteExecutor - This method creates executor based on ssh, it has concrete ssh reference | {
"resource": ""
} | ||
c174128 | validation | //Execute - Copy the output from a command to the specified io.Writer | {
"resource": ""
} | ||
c174129 | validation | // World is a handler | {
"resource": ""
} | ||
c174130 | validation | // Name is a handler | {
"resource": ""
} | ||
c174131 | validation | //NewPgDump - a pgdump object initialized for local fs | {
"resource": ""
} | ||
c174132 | validation | //NewPgRemoteDump - a pgdump initialized for remote fs | {
"resource": ""
} | ||
c174133 | validation | //Import - allows us to import a pgdmp file in the form of a reader | {
"resource": ""
} | ||
c174134 | validation | // New creates IrcText object and take your text as argument. | {
"resource": ""
} | ||
c174135 | validation | // SetFg sets foreground color | {
"resource": ""
} | ||
c174136 | validation | // SetBg sets background color | {
"resource": ""
} | ||
c174137 | validation | // HandlerBuilder can be used to create a scaffold.Handler based on a Handler | {
"resource": ""
} | ||
c174138 | validation | // LoggerWithPrefix appends given prefix to log strings. | {
"resource": ""
} | ||
c174139 | validation | // NewEncoder creates encoder | {
"resource": ""
} | ||
c174140 | validation | // Parser returns a parser based on the mime, if none can be matched the
// default is returned | {
"resource": ""
} | ||
c174141 | validation | // Responder returns a responder based on the mime, if none can be matched the
// default is returned | {
"resource": ""
} | ||
c174142 | validation | // NewErrorStatus creates an error that implements ErrorStatus based off a
// string | {
"resource": ""
} | ||
c174143 | validation | // ConvertErrorStatus creates an error that implements ErrorStatus based off an
// error | {
"resource": ""
} | ||
c174144 | validation | // Gets the length of the entry block | {
"resource": ""
} | ||
c174145 | validation | //NewLager - constructor for a Logger object | {
"resource": ""
} | ||
c174146 | validation | // URLParts spliths a path into parts and caches it in the context | {
"resource": ""
} | ||
c174147 | validation | // URLPart returns a part of the url and caches it in the context | {
"resource": ""
} | ||
c174148 | validation | //StoreParam stores a variable in a context | {
"resource": ""
} | ||
c174149 | validation | // GetParam retrieves a param from a context | {
"resource": ""
} | ||
c174150 | validation | // Int32 returns param as int32 | {
"resource": ""
} | ||
c174151 | validation | // UInt returns param as uint | {
"resource": ""
} | ||
c174152 | validation | // UInt32 returns param as uint32 | {
"resource": ""
} | ||
c174153 | validation | // Float32 returns param as float32 | {
"resource": ""
} | ||
c174154 | validation | //UploadFile - allows us to upload the contents of the given reader | {
"resource": ""
} | ||
c174155 | validation | //RemoveRemoteFile - get a file from a remote system and return a writecloser to it | {
"resource": ""
} | ||
c174156 | validation | //GetRemoteFile - get a file from a remote system and return a writecloser to it | {
"resource": ""
} | ||
c174157 | validation | // NewConn creates a new Conn object. | {
"resource": ""
} | ||
c174158 | validation | // SendRequest sends a JSON-RPC request through the connection with an auto generated request ID.
// resHandler is called when a response is returned. | {
"resource": ""
} | ||
c174159 | validation | // SendRequestArr sends a JSON-RPC request through the connection, with array params and auto generated request ID.
// resHandler is called when a response is returned. | {
"resource": ""
} | ||
c174160 | validation | // Close closes the connection. | {
"resource": ""
} | ||
c174161 | validation | // SendResponse sends a JSON-RPC response message through the connection. | {
"resource": ""
} | ||
c174162 | validation | // Send sends the given message through the connection. | {
"resource": ""
} | ||
c174163 | validation | // Receive receives message from the connection. | {
"resource": ""
} | ||
c174164 | validation | // Reuse an established websocket.Conn. | {
"resource": ""
} | ||
c174165 | validation | // startReceive starts receiving messages. This method blocks and does not return until the connection is closed. | {
"resource": ""
} | ||
c174166 | validation | // Reads the file given by path and returns
// a Pbo pointer and err != nil if no errors occurred | {
"resource": ""
} | ||
c174167 | validation | //NewReadWriteCloser - a fake readwritecloser constructor | {
"resource": ""
} | ||
c174168 | validation | //Read - satisfies reader interface | {
"resource": ""
} | ||
c174169 | validation | //Write - satisfies writer interface | {
"resource": ""
} | ||
c174170 | validation | // SafeRemoveSSH removes a file on a remote machine via an ssh client | {
"resource": ""
} | ||
c174171 | validation | // SafeCreateSSH creates a file, creating parent directories if needed on a remote machine via an ssh client | {
"resource": ""
} | ||
c174172 | validation | // SafeCreate creates a file, creating parent directories if needed | {
"resource": ""
} | ||
c174173 | validation | // HMAC is JSON Web Token authentication using HMAC.
// If successful, token context will be store with the key "userid" in session.
// If unsuccessful, connection will be closed right away. | {
"resource": ""
} | ||
c174174 | validation | // Scaffold creates a router and passes it to a platorm | {
"resource": ""
} | ||
c174175 | validation | // Route returns the subrouter for a pettern | {
"resource": ""
} | ||
c174176 | validation | // Group calls the specified function with the subrouter for the given pattern | {
"resource": ""
} | ||
c174177 | validation | // Platform routes the platform object to the given pattern | {
"resource": ""
} | ||
c174178 | validation | // Handle all methods with a given pattern | {
"resource": ""
} | ||
c174179 | validation | // Options handles OPTIONS methods with a given pattern | {
"resource": ""
} | ||
c174180 | validation | // Use attaches middleware to a route | {
"resource": ""
} | ||
c174181 | validation | // NotFound specifys a not found handler for a route | {
"resource": ""
} | ||
c174182 | validation | // AddHandlerBuilder adds a builder to construct handlers | {
"resource": ""
} | ||
c174183 | validation | // ServeErrorPage Implements ErrorHandler.ServeErrorPage | {
"resource": ""
} | ||
c174184 | validation | // GetErrorHandler gets the error handler from the context or returns the default | {
"resource": ""
} | ||
c174185 | validation | // SetErrorHandler returns Middleware that can be used to set the error handler | {
"resource": ""
} | ||
c174186 | validation | // SetErrorHandlerFunc returns Middleware that can be used to set the error handler | {
"resource": ""
} | ||
c174187 | validation | // Echo sends incoming messages back as is. | {
"resource": ""
} | ||
c174188 | validation | // UnmarshalBinary unmarshals a byte slice into a ConfigArg.
//
// If the byte slice does not contain enough data to form a valid ConfigArg,
// or config string length is greater than the number of remaining bytes in b,
// io.ErrUnexpectedEOF is returned.
//
// If config string length is greater than 1024, ErrorBadArgu... | {
"resource": ""
} | ||
c174189 | validation | // ataIdentify performs an ATA identify request on rs using the argument
// values in r. | {
"resource": ""
} | ||
c174190 | validation | // ataRead performs an ATA 28-bit or 48-bit read request on rs using the
// argument values in r. | {
"resource": ""
} | ||
c174191 | validation | // ataWrite performs an ATA 28-bit or 48-bit write request on rs using the
// argument values in r. | {
"resource": ""
} | ||
c174192 | validation | // calculateLBA calculates a logical block address from the LBA array
// and 48-bit flags from an ATAArg. | {
"resource": ""
} | ||
c174193 | validation | // MarshalBinary allocates a byte slice containing the data from a
// ReserveReleaseArg.
//
// If r.NMACs does not indicate the actual length of r.MACs, or one or more
// hardware addresses are not exactly 6 bytes in length,
// ErrorBadArgumentParameter is returned. | {
"resource": ""
} | ||
c174194 | validation | // UnmarshalBinary unmarshals a byte slice into a ReserveReleaseArg.
//
// If the byte slice does not contain enough bytes to form a valid
// ReserveReleaseArg, or a hardware address is malformed, io.ErrUnexpectedEOF
// is returned. | {
"resource": ""
} | ||
c174195 | validation | // MarshalBinary allocates a byte slice containing the data from an ATAArg.
//
// MarshalBinary never returns an error. | {
"resource": ""
} | ||
c174196 | validation | // New fixture instance that will work with the database | {
"resource": ""
} | ||
c174197 | validation | // FromYAML allows a fixture to be created from yaml input | {
"resource": ""
} | ||
c174198 | validation | // FromJSON allows a fixture to be created from json input | {
"resource": ""
} | ||
c174199 | validation | // MarshalBinary allocates a byte slice containing the data from a Directive.
//
// If d.MAC is not 6 bytes in length, ErrorBadArgumentParameter is returned. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.