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