MCPcopy Create free account

hub / github.com/Fierro-Labs/Fierro / functions

Functions30 in github.com/Fierro-Labs/Fierro

↓ 8 callersFunctionwriteJSONError
This function will set the appropiate headers for when there is an error.
src/utils.go:14
↓ 7 callersFunctioncheck
(e error)
src/keys_test.go:13
↓ 3 callersFunctioncheckToken
(reqToken string)
src/utils.go:94
↓ 3 callersFunctionexecuteRequest
(handle func(w http.ResponseWriter, r *http.Request), req *http.Request)
src/keys_test.go:40
↓ 3 callersFunctiongetAuthToken
(r *http.Request)
src/utils.go:87
↓ 1 callersFunctionKillIPFSCtx
(ctx context.Context, name string)
src/ipfs_test.go:22
↓ 1 callersFunctionPublishToIPFS
Custom publishing function returns the response object and error Kept as close as possible to Publish method found at gh.com/go-ipfs-api
src/ipfs.go:22
↓ 1 callersFunctionfollow
This function resolves and rotates keys in queue returns the key at front of queue
src/records.go:130
↓ 1 callersFunctiongetPin
This function will create a pin object from incoming request will return Pin to use in DB
src/utils.go:62
↓ 1 callersFunctiongetPins
(reqToken string)
src/utils.go:115
↓ 1 callersFunctionhasParam
This function grabs the specified parameter value out the URL returns true or false if `parameter` exists
src/utils.go:73
↓ 1 callersFunctionremoveFromQueue
This function will delete a key from the queue return success or error
src/records.go:108
↓ 1 callersFunctionresolve
This function will resolve/download the content pointed to by the record.
src/ipfs.go:47
↓ 1 callersFunctionsearchUser
(reqToken string, rid string)
src/utils.go:101
↓ 1 callersFunctionstartIPFS
()
src/ipfs_test.go:42
↓ 1 callersFunctionwriteJSONSuccessResults
(w http.ResponseWriter, Pins []PinStatus)
src/utils.go:33
↓ 1 callersFunctionwriteJSONSuccessStatus
This function will set the appropiate headers for when there is an error.
src/utils.go:20
FunctionGetRecord
This function will accept a object ID & search DB for it returns the PinStatus object found.
src/records.go:13
FunctionStartFollowing
This function will take a ipns-name and add it to the queue Returns 202 response Might need to think about adding pinstatus objects into queue instead
src/records.go:35
FunctionStopFollowing
This function will take an ipns name and delete from queue Continue here
src/records.go:72
FunctionTestMain
(m *testing.M)
src/ipfs_test.go:14
FunctionTestStartFollowing
func TestGetRecord(t *testing.T) { resp := make(map[string]string) cid := "/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" // use shell to ge
src/records_test.go:40
FunctionTestStopFollowing
(t *testing.T)
src/records_test.go:54
FunctioncreateTmpFile
(rr *httptest.ResponseRecorder, path string)
src/keys_test.go:30
FunctioncreateWriter
(file *os.File)
src/keys_test.go:19
Functionindex
(w http.ResponseWriter, r *http.Request)
src/server.go:30
Functionmain
()
src/server.go:35
FunctionpublishToIPNS
This function is needed to let the world know your Record exists.
src/ipfs.go:36
Functionremove
(s []int, i int)
src/utils.go:110
FunctionwriteJSONSuccess
This function will set the appropiate headers for when there is an error.
src/utils.go:47