Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fierro-Labs/Fierro
/ functions
Functions
30 in github.com/Fierro-Labs/Fierro
⨍
Functions
30
◇
Types & classes
6
↓ 8 callers
Function
writeJSONError
This function will set the appropiate headers for when there is an error.
src/utils.go:14
↓ 7 callers
Function
check
(e error)
src/keys_test.go:13
↓ 3 callers
Function
checkToken
(reqToken string)
src/utils.go:94
↓ 3 callers
Function
executeRequest
(handle func(w http.ResponseWriter, r *http.Request), req *http.Request)
src/keys_test.go:40
↓ 3 callers
Function
getAuthToken
(r *http.Request)
src/utils.go:87
↓ 1 callers
Function
KillIPFSCtx
(ctx context.Context, name string)
src/ipfs_test.go:22
↓ 1 callers
Function
PublishToIPFS
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 callers
Function
follow
This function resolves and rotates keys in queue returns the key at front of queue
src/records.go:130
↓ 1 callers
Function
getPin
This function will create a pin object from incoming request will return Pin to use in DB
src/utils.go:62
↓ 1 callers
Function
getPins
(reqToken string)
src/utils.go:115
↓ 1 callers
Function
hasParam
This function grabs the specified parameter value out the URL returns true or false if `parameter` exists
src/utils.go:73
↓ 1 callers
Function
removeFromQueue
This function will delete a key from the queue return success or error
src/records.go:108
↓ 1 callers
Function
resolve
This function will resolve/download the content pointed to by the record.
src/ipfs.go:47
↓ 1 callers
Function
searchUser
(reqToken string, rid string)
src/utils.go:101
↓ 1 callers
Function
startIPFS
()
src/ipfs_test.go:42
↓ 1 callers
Function
writeJSONSuccessResults
(w http.ResponseWriter, Pins []PinStatus)
src/utils.go:33
↓ 1 callers
Function
writeJSONSuccessStatus
This function will set the appropiate headers for when there is an error.
src/utils.go:20
Function
GetRecord
This function will accept a object ID & search DB for it returns the PinStatus object found.
src/records.go:13
Function
StartFollowing
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
Function
StopFollowing
This function will take an ipns name and delete from queue Continue here
src/records.go:72
Function
TestMain
(m *testing.M)
src/ipfs_test.go:14
Function
TestStartFollowing
func TestGetRecord(t *testing.T) { resp := make(map[string]string) cid := "/ipfs/QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" // use shell to ge
src/records_test.go:40
Function
TestStopFollowing
(t *testing.T)
src/records_test.go:54
Function
createTmpFile
(rr *httptest.ResponseRecorder, path string)
src/keys_test.go:30
Function
createWriter
(file *os.File)
src/keys_test.go:19
Function
index
(w http.ResponseWriter, r *http.Request)
src/server.go:30
Function
main
()
src/server.go:35
Function
publishToIPNS
This function is needed to let the world know your Record exists.
src/ipfs.go:36
Function
remove
(s []int, i int)
src/utils.go:110
Function
writeJSONSuccess
This function will set the appropiate headers for when there is an error.
src/utils.go:47