api

package
v0.0.0-...-0f1a4ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContentDealLogs

func AddContentDealLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentDealLogs add to add a single record to content_deal_logs table in the estuary database @Summary Add an record to content_deal_logs table @Description add to add a single record to content_deal_logs table in the estuary database @Tags ContentDealLogs @Accept json @Produce json @Param ContentDealLogs body model.ContentDealLogs true "Add ContentDealLogs" @Success 200 {object} model.ContentDealLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdeallogs [post] echo '{"id": 99,"content": 55,"propCid": "xknsQTytaZWgYojHSDkHVfPHa","dealUuid": "GxKYowuykjCRKgEIOgeQqqsen","miner": "OInOCDbSbQxplmMthtVnPierV","dealId": 85,"failed": true,"verified": false,"slashed": false,"failedAt": "2104-07-28T14:23:06.964124494-04:00","dtChan": "AcIPDCIUYkjdwjTvidljlPmEx","transferStarted": "2255-11-25T21:46:23.259616019-05:00","transferFinished": "2185-12-19T08:50:07.455413034-05:00","onChainAt": "2029-02-05T01:46:10.623356801-05:00","sealedAt": "2028-02-10T19:11:30.660121509-05:00","lastMessage": "vNFrivKDIRlSgyxmVrQZtcNPp","dealProtocolVersion": "SrvIxXavVsTojSXZWVUyHfVsG","minerVersion": "dZasDhnmXPWxsTJTkkjqsXekw","nodeInfo": "eaPQgRleeUStfJjFeLaqbMGAl","requesterInfo": "IPnKALNplIsAFbfNNEJjxEEbV","requestingApiKey": "GfxZduGGhytByYTANrfWicIOx","systemContentDealId": 68,"createdAt": "2236-06-18T16:44:22.565027633-04:00","updatedAt": "2108-07-24T20:06:59.490583119-04:00","deltaNodeUuid": "DBoqKOqeVRvCTTBXExXyHoKfB"}' | http POST "http://localhost:8080/contentdeallogs" X-Api-User:user123

func AddContentDealProposalLogs

func AddContentDealProposalLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentDealProposalLogs add to add a single record to content_deal_proposal_logs table in the estuary database @Summary Add an record to content_deal_proposal_logs table @Description add to add a single record to content_deal_proposal_logs table in the estuary database @Tags ContentDealProposalLogs @Accept json @Produce json @Param ContentDealProposalLogs body model.ContentDealProposalLogs true "Add ContentDealProposalLogs" @Success 200 {object} model.ContentDealProposalLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposallogs [post] echo '{"id": 89,"content": 22,"unsigned": "xhLCNmWsKJXMHJNVLbAotRLvd","signed": "NxnPbbAOrCWuUhNAZUWYCNTuH","meta": "avAOXCQJeaIngfaCMYmrBKVIH","nodeInfo": "HkcLsmLFptkoieXngLbnaaiMB","requesterInfo": "YvKDCcffBbTWqYIcjlqQEIfHI","requestingApiKey": "IJnyUdtVENbXQgBgMUQBdJmua","systemContentDealProposalId": 33,"createdAt": "2202-05-29T02:34:23.990453036-04:00","updatedAt": "2299-05-12T06:26:46.780123564-04:00","deltaNodeUuid": "PmcqKEJNODZQUWfKVDYGPgcMv"}' | http POST "http://localhost:8080/contentdealproposallogs" X-Api-User:user123

func AddContentDealProposalParametersLogs

func AddContentDealProposalParametersLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentDealProposalParametersLogs add to add a single record to content_deal_proposal_parameters_logs table in the estuary database @Summary Add an record to content_deal_proposal_parameters_logs table @Description add to add a single record to content_deal_proposal_parameters_logs table in the estuary database @Tags ContentDealProposalParametersLogs @Accept json @Produce json @Param ContentDealProposalParametersLogs body model.ContentDealProposalParametersLogs true "Add ContentDealProposalParametersLogs" @Success 200 {object} model.ContentDealProposalParametersLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposalparameterslogs [post] echo '{"id": 11,"content": 28,"label": "gbgXFsMvnaClNRAqhtQdtFhNQ","duration": 43,"startEpoch": 93,"endEpoch": 15,"transferParams": "hDsSoFfCmVRZJFXIPJYBAxGLK","removeUnsealedCopy": false,"skipIpNiAnnounce": true,"nodeInfo": "idaYRkrLBhLFHYQAZbeFIkcXi","requesterInfo": "IwXjAiusvSYuTSiLFiYOJTTCO","requestingApiKey": "TfZrGwdaEivZEPgRZouqkMoVs","systemContentDealProposalParametersId": 54,"createdAt": "2051-07-18T14:58:51.12809116-04:00","updatedAt": "2196-07-15T21:02:52.682828298-04:00","deltaNodeUuid": "vXwPAuNtmYAUodvoDsZMFPAjG"}' | http POST "http://localhost:8080/contentdealproposalparameterslogs" X-Api-User:user123

func AddContentLogs

func AddContentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentLogs add to add a single record to content_logs table in the estuary database @Summary Add an record to content_logs table @Description add to add a single record to content_logs table in the estuary database @Tags ContentLogs @Accept json @Produce json @Param ContentLogs body model.ContentLogs true "Add ContentLogs" @Success 200 {object} model.ContentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentlogs [post] echo '{"id": 77,"name": "leHZJvoRmNXbjXOJdENbLsWRN","size": 65,"cid": "qgrbbLblRBssYZGIIKaPNTxns","requestingApiKey": "RBdHSptGHhqttthYcJIZBGkPW","pieceCommitmentId": 65,"status": "nEjQTflQVpBMtuUoWbcPZLFqo","connectionMode": "xYkfLUktrPeXAUyWJdjCjimaL","lastMessage": "qNgmgQHaBfXuFOTsVPJwRQgUn","nodeInfo": "AcfvdSMFXLkGuokpUfBsOKLjV","requesterInfo": "lvdKTxCjIQeRxfkTSTjQMYQrd","systemContentId": 80,"createdAt": "2028-02-09T06:37:50.943937692-05:00","updatedAt": "2056-05-09T02:45:27.67587013-04:00","deltaNodeUuid": "KaSLVGxVAIZMoHmpTNIrMZWYl"}' | http POST "http://localhost:8080/contentlogs" X-Api-User:user123

func AddContentMinerLogs

func AddContentMinerLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentMinerLogs add to add a single record to content_miner_logs table in the estuary database @Summary Add an record to content_miner_logs table @Description add to add a single record to content_miner_logs table in the estuary database @Tags ContentMinerLogs @Accept json @Produce json @Param ContentMinerLogs body model.ContentMinerLogs true "Add ContentMinerLogs" @Success 200 {object} model.ContentMinerLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentminerlogs [post] echo '{"id": 69,"content": 0,"miner": "NXGJnUGafqmmNBPShVEUEfmmp","nodeInfo": "WDxXEDCrIJYyvsBAVKmNeiPEZ","requesterInfo": "DFRSNyUcGDJhibePMKhtctiaZ","requestingApiKey": "xNwUUtBHNrehAgaLbqFLwmxgh","systemContentMinerId": 7,"createdAt": "2257-06-15T10:59:42.700134707-04:00","updatedAt": "2207-11-18T23:49:37.467225423-05:00","deltaNodeUuid": "jIkpxjIHoCSjlPeyacQcPuKtJ"}' | http POST "http://localhost:8080/contentminerlogs" X-Api-User:user123

func AddContentWalletLogs

func AddContentWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddContentWalletLogs add to add a single record to content_wallet_logs table in the estuary database @Summary Add an record to content_wallet_logs table @Description add to add a single record to content_wallet_logs table in the estuary database @Tags ContentWalletLogs @Accept json @Produce json @Param ContentWalletLogs body model.ContentWalletLogs true "Add ContentWalletLogs" @Success 200 {object} model.ContentWalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentwalletlogs [post] echo '{"id": 32,"content": 30,"wallet": "IPWZJQDFqOtrZAiOqxXsTcxGA","nodeInfo": "bqfDOZUYMqlEMJMpMNWWCCAFU","requesterInfo": "RGnuoAwqrHeiSIbCNaAtinoEn","requestingApiKey": "oKedRqCcjjdtkhmRKWWoKYqkN","systemContentWalletId": 40,"createdAt": "2253-07-27T03:41:17.410938197-04:00","updatedAt": "2272-09-27T09:42:15.555605978-04:00","deltaNodeUuid": "MmyGprUgsHYiZKBoEcxYVUCrN","walletId": 32}' | http POST "http://localhost:8080/contentwalletlogs" X-Api-User:user123

func AddDeltaNodeGeoLocations

func AddDeltaNodeGeoLocations(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddDeltaNodeGeoLocations add to add a single record to delta_node_geo_locations table in the estuary database @Summary Add an record to delta_node_geo_locations table @Description add to add a single record to delta_node_geo_locations table in the estuary database @Tags DeltaNodeGeoLocations @Accept json @Produce json @Param DeltaNodeGeoLocations body model.DeltaNodeGeoLocations true "Add DeltaNodeGeoLocations" @Success 200 {object} model.DeltaNodeGeoLocations @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltanodegeolocations [post] echo '{"id": 89,"ip": "uwpBtXBntBWgkCKraXSpkctDe","country": "GHPtnoTwpFebPPVvcspCrMqZE","city": "kNBasfOCYAWmojkCMuiBaimiw","region": "vbJjsoGjvIDUSYIYsbvtGKygD","zip": "VRnvGNQBsiJRbbUgODZEJDkcB","lat": 0.2523771892476505,"lon": 0.8991950175159545,"createdAt": "2205-06-16T18:43:47.606371433-04:00","updatedAt": "2166-09-03T02:07:18.062428741-04:00"}' | http POST "http://localhost:8080/deltanodegeolocations" X-Api-User:user123

func AddDeltaStartupLogs

func AddDeltaStartupLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddDeltaStartupLogs add to add a single record to delta_startup_logs table in the estuary database @Summary Add an record to delta_startup_logs table @Description add to add a single record to delta_startup_logs table in the estuary database @Tags DeltaStartupLogs @Accept json @Produce json @Param DeltaStartupLogs body model.DeltaStartupLogs true "Add DeltaStartupLogs" @Success 200 {object} model.DeltaStartupLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltastartuplogs [post] echo '{"id": 17,"nodeInfo": "MiifxOjnqsUpOjndrGokBhUuL","osDetails": "fIDOfHOZfJMMKAdBmIxiBvYpC","ipAddress": "VogTZvQFdkLBQruBIclgLKiTa","createdAt": "2299-11-22T20:06:45.836550913-05:00","updatedAt": "2059-05-30T21:42:11.112312668-04:00","deltaNodeUuid": "DSimhMAQGdBANWNucLQNitfKW"}' | http POST "http://localhost:8080/deltastartuplogs" X-Api-User:user123

func AddHeadersHandler

func AddHeadersHandler(addHeaders map[string]string, h http.Handler) http.Handler

AddHeadersHandler will take a map of string/string and use it to set the key and value as the header name and value respectively.

func AddInstanceMetaLogs

func AddInstanceMetaLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddInstanceMetaLogs add to add a single record to instance_meta_logs table in the estuary database @Summary Add an record to instance_meta_logs table @Description add to add a single record to instance_meta_logs table in the estuary database @Tags InstanceMetaLogs @Accept json @Produce json @Param InstanceMetaLogs body model.InstanceMetaLogs true "Add InstanceMetaLogs" @Success 200 {object} model.InstanceMetaLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /instancemetalogs [post] echo '{"id": 93,"instanceUuid": "BMIMASFbwVoZulNBUFGZhfSVW","instanceHostName": "CxuBGAQEDwdvgxuJhqFibVCfh","instanceNodeName": "IZJXagGdYFLncCRDLYwhmfkZS","osDetails": "nnstxhjfCoqFGQIwDGWKcfbsV","publicIp": "BycLLOtyYWbmWyCoxUhEubLWN","memoryLimit": 62,"cpuLimit": 10,"storageLimit": 26,"disableRequest": true,"disableCommitmentPieceGeneration": true,"disableStorageDeal": true,"disableOnlineDeals": false,"disableOfflineDeals": false,"numberOfCpus": 78,"storageInBytes": 41,"systemMemory": 30,"heapMemory": 10,"heapInUse": 97,"stackInUse": 65,"instanceStart": "2253-01-06T10:26:22.503703655-05:00","bytesPerCpu": 75,"nodeInfo": "shManTAukFURoYpTdAIePHgKx","requesterInfo": "WKdYjoCMUgHxZWUuYUJLMmuJt","deltaNodeUuid": "ioDKKXECtpdyPvcQOFnHjpXai","systemInstanceMetaId": 64,"createdAt": "2153-05-14T11:36:44.108263386-04:00","updatedAt": "2109-10-16T05:28:35.049000199-04:00"}' | http POST "http://localhost:8080/instancemetalogs" X-Api-User:user123

func AddLogEvents

func AddLogEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddLogEvents add to add a single record to log_events table in the estuary database @Summary Add an record to log_events table @Description add to add a single record to log_events table in the estuary database @Tags LogEvents @Accept json @Produce json @Param LogEvents body model.LogEvents true "Add LogEvents" @Success 200 {object} model.LogEvents @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /logevents [post] echo '{"id": 40,"logEventType": "utLCvdSTXAVpXmZBtJIFHfJTD","logEventObject": "WnAJsllMZuniavJewVbJDhPaM","logEventId": 11,"logEvent": "VoWiowlmuxqWgHNwOMrwCMnWt","createdAt": "2079-09-24T02:09:13.876912282-04:00","updatedAt": "2148-01-31T17:30:24.030190491-05:00","sourceHost": "rgljTEOgYPOGyYOxsLgOFLfQs","sourceIp": "rYhpAoCBhenbrcXTiOGyqTQMH","deltaUuid": "cyFGOCqwcETcuaAJpREQqAylk"}' | http POST "http://localhost:8080/logevents" X-Api-User:user123

func AddPieceCommitmentLogs

func AddPieceCommitmentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddPieceCommitmentLogs add to add a single record to piece_commitment_logs table in the estuary database @Summary Add an record to piece_commitment_logs table @Description add to add a single record to piece_commitment_logs table in the estuary database @Tags PieceCommitmentLogs @Accept json @Produce json @Param PieceCommitmentLogs body model.PieceCommitmentLogs true "Add PieceCommitmentLogs" @Success 200 {object} model.PieceCommitmentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /piececommitmentlogs [post] echo '{"id": 96,"cid": "lSpleRdPmtqSgPIPaupwBTuyl","piece": "rdrggiHeNdpKHBfFylyCggASX","size": 54,"paddedPieceSize": 34,"unPaddedPieceSize": 67,"status": "rZcNQmBiCIqntDBaEJOEBDeUU","lastMessage": "nMdhoVjfwPSQpWiVwprTHtQDv","nodeInfo": "hgMKEJrQUrKFCsxmSNhmKrfns","requesterInfo": "gjlGNNmhGjgIZlGkkRLInnaIl","requestingApiKey": "OdFJvYFetTPCvOnNtqEEefDtu","systemContentPieceCommitmentId": 41,"createdAt": "2263-03-20T02:46:34.0114278-04:00","updatedAt": "2233-07-09T11:09:29.842592668-04:00","deltaNodeUuid": "BHSEdeJWRcPaiTAwASdFCrYor"}' | http POST "http://localhost:8080/piececommitmentlogs" X-Api-User:user123

func AddWalletLogs

func AddWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

AddWalletLogs add to add a single record to wallet_logs table in the estuary database @Summary Add an record to wallet_logs table @Description add to add a single record to wallet_logs table in the estuary database @Tags WalletLogs @Accept json @Produce json @Param WalletLogs body model.WalletLogs true "Add WalletLogs" @Success 200 {object} model.WalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /walletlogs [post] echo '{"id": 80,"uuId": "peFbMgHivRACqmNCvSorweBqP","addr": "DZHnFIoBEmueGkCKsbhBavqtY","owner": "EiInDJEyANGkwlltXGTjhuYGx","keyType": "vDZKOPdjBbTrnnYuaGJHQaYtJ","privateKey": "wUkalhcPceXJobZGwJmepOywB","nodeInfo": "vgQknMVpqfrrAcQbfEKeknEyr","requesterInfo": "oByfGPwsEqniJLssjQCfDFPAQ","requestingApiKey": "MRemQfcdJkewUiFHrosfOFoKp","systemWalletId": 70,"createdAt": "2067-08-04T12:59:08.474556194-04:00","updatedAt": "2094-09-21T03:52:50.420485709-04:00","deltaNodeUuid": "BJLhHabuFNncXQTqTrxbJQkLE"}' | http POST "http://localhost:8080/walletlogs" X-Api-User:user123

func ConfigGinRouter

func ConfigGinRouter(router gin.IRoutes)

ConfigGinRouter configure gin router

func ConverHttprouterToGin

func ConverHttprouterToGin(f httprouter.Handle) gin.HandlerFunc

ConverHttprouterToGin wrap httprouter.Handle to gin.HandlerFunc

func DeleteContentDealLogs

func DeleteContentDealLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentDealLogs Delete a single record from content_deal_logs table in the estuary database @Summary Delete a record from content_deal_logs @Description Delete a single record from content_deal_logs table in the estuary database @Tags ContentDealLogs @Accept json @Produce json @Param contentDealLogsID path int64 true "id" @Success 204 {object} model.ContentDealLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentdeallogs/{contentDealLogsID} [delete] http DELETE "http://localhost:8080/contentdeallogs/1" X-Api-User:user123

func DeleteContentDealProposalLogs

func DeleteContentDealProposalLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentDealProposalLogs Delete a single record from content_deal_proposal_logs table in the estuary database @Summary Delete a record from content_deal_proposal_logs @Description Delete a single record from content_deal_proposal_logs table in the estuary database @Tags ContentDealProposalLogs @Accept json @Produce json @Param contentDealProposalLogsID path int64 true "id" @Success 204 {object} model.ContentDealProposalLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentdealproposallogs/{contentDealProposalLogsID} [delete] http DELETE "http://localhost:8080/contentdealproposallogs/1" X-Api-User:user123

func DeleteContentDealProposalParametersLogs

func DeleteContentDealProposalParametersLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentDealProposalParametersLogs Delete a single record from content_deal_proposal_parameters_logs table in the estuary database @Summary Delete a record from content_deal_proposal_parameters_logs @Description Delete a single record from content_deal_proposal_parameters_logs table in the estuary database @Tags ContentDealProposalParametersLogs @Accept json @Produce json @Param contentDealProposalParametersLogsID path int64 true "id" @Success 204 {object} model.ContentDealProposalParametersLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentdealproposalparameterslogs/{contentDealProposalParametersLogsID} [delete] http DELETE "http://localhost:8080/contentdealproposalparameterslogs/1" X-Api-User:user123

func DeleteContentLogs

func DeleteContentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentLogs Delete a single record from content_logs table in the estuary database @Summary Delete a record from content_logs @Description Delete a single record from content_logs table in the estuary database @Tags ContentLogs @Accept json @Produce json @Param contenDealLogsID path int64 true "id" @Success 204 {object} model.ContentLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentlogs/{contenDealLogsID} [delete] http DELETE "http://localhost:8080/contentlogs/1" X-Api-User:user123

func DeleteContentMinerLogs

func DeleteContentMinerLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentMinerLogs Delete a single record from content_miner_logs table in the estuary database @Summary Delete a record from content_miner_logs @Description Delete a single record from content_miner_logs table in the estuary database @Tags ContentMinerLogs @Accept json @Produce json @Param contenMinerLogsID path int64 true "id" @Success 204 {object} model.ContentMinerLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentminerlogs/{contenMinerLogsID} [delete] http DELETE "http://localhost:8080/contentminerlogs/1" X-Api-User:user123

func DeleteContentWalletLogs

func DeleteContentWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteContentWalletLogs Delete a single record from content_wallet_logs table in the estuary database @Summary Delete a record from content_wallet_logs @Description Delete a single record from content_wallet_logs table in the estuary database @Tags ContentWalletLogs @Accept json @Produce json @Param contenWalletLogsID path int64 true "id" @Success 204 {object} model.ContentWalletLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /contentwalletlogs/{contenWalletLogsID} [delete] http DELETE "http://localhost:8080/contentwalletlogs/1" X-Api-User:user123

func DeleteDeltaNodeGeoLocations

func DeleteDeltaNodeGeoLocations(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteDeltaNodeGeoLocations Delete a single record from delta_node_geo_locations table in the estuary database @Summary Delete a record from delta_node_geo_locations @Description Delete a single record from delta_node_geo_locations table in the estuary database @Tags DeltaNodeGeoLocations @Accept json @Produce json @Param deltaNodeGeoLocationsID path int64 true "id" @Success 204 {object} model.DeltaNodeGeoLocations @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /deltanodegeolocations/{deltaNodeGeoLocationsID} [delete] http DELETE "http://localhost:8080/deltanodegeolocations/1" X-Api-User:user123

func DeleteDeltaStartupLogs

func DeleteDeltaStartupLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteDeltaStartupLogs Delete a single record from delta_startup_logs table in the estuary database @Summary Delete a record from delta_startup_logs @Description Delete a single record from delta_startup_logs table in the estuary database @Tags DeltaStartupLogs @Accept json @Produce json @Param deltaStartupLogsID path int64 true "id" @Success 204 {object} model.DeltaStartupLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /deltastartuplogs/{deltaStartupLogsID} [delete] http DELETE "http://localhost:8080/deltastartuplogs/1" X-Api-User:user123

func DeleteInstanceMetaLogs

func DeleteInstanceMetaLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteInstanceMetaLogs Delete a single record from instance_meta_logs table in the estuary database @Summary Delete a record from instance_meta_logs @Description Delete a single record from instance_meta_logs table in the estuary database @Tags InstanceMetaLogs @Accept json @Produce json @Param instanceMetaLogsID path int64 true "id" @Success 204 {object} model.InstanceMetaLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /instancemetalogs/{instanceMetaLogsID} [delete] http DELETE "http://localhost:8080/instancemetalogs/1" X-Api-User:user123

func DeleteLogEvents

func DeleteLogEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteLogEvents Delete a single record from log_events table in the estuary database @Summary Delete a record from log_events @Description Delete a single record from log_events table in the estuary database @Tags LogEvents @Accept json @Produce json @Param logEventsID path int64 true "id" @Success 204 {object} model.LogEvents @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /logevents/{logEventsID} [delete] http DELETE "http://localhost:8080/logevents/1" X-Api-User:user123

func DeletePieceCommitmentLogs

func DeletePieceCommitmentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeletePieceCommitmentLogs Delete a single record from piece_commitment_logs table in the estuary database @Summary Delete a record from piece_commitment_logs @Description Delete a single record from piece_commitment_logs table in the estuary database @Tags PieceCommitmentLogs @Accept json @Produce json @Param pieceCommitmentLogsID path int64 true "id" @Success 204 {object} model.PieceCommitmentLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /piececommitmentlogs/{pieceCommitmentLogsID} [delete] http DELETE "http://localhost:8080/piececommitmentlogs/1" X-Api-User:user123

func DeleteWalletLogs

func DeleteWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

DeleteWalletLogs Delete a single record from wallet_logs table in the estuary database @Summary Delete a record from wallet_logs @Description Delete a single record from wallet_logs table in the estuary database @Tags WalletLogs @Accept json @Produce json @Param walletLogsID path int64 true "id" @Success 204 {object} model.WalletLogs @Failure 400 {object} api.HTTPError @Failure 500 {object} api.HTTPError @Router /walletlogs/{walletLogsID} [delete] http DELETE "http://localhost:8080/walletlogs/1" X-Api-User:user123

func FormatRequest

func FormatRequest(r *http.Request) string

FormatRequest generates ascii representation of a request

func GetAllContentDealLogs

func GetAllContentDealLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentDealLogs is a function to get a slice of record(s) from content_deal_logs table in the estuary database @Summary Get list of ContentDealLogs @Tags ContentDealLogs @Description GetAllContentDealLogs is a handler to get a slice of record(s) from content_deal_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentDealLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdeallogs [get] http "http://localhost:8080/contentdeallogs?page=0&pagesize=20" X-Api-User:user123

func GetAllContentDealProposalLogs

func GetAllContentDealProposalLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentDealProposalLogs is a function to get a slice of record(s) from content_deal_proposal_logs table in the estuary database @Summary Get list of ContentDealProposalLogs @Tags ContentDealProposalLogs @Description GetAllContentDealProposalLogs is a handler to get a slice of record(s) from content_deal_proposal_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentDealProposalLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposallogs [get] http "http://localhost:8080/contentdealproposallogs?page=0&pagesize=20" X-Api-User:user123

func GetAllContentDealProposalParametersLogs

func GetAllContentDealProposalParametersLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentDealProposalParametersLogs is a function to get a slice of record(s) from content_deal_proposal_parameters_logs table in the estuary database @Summary Get list of ContentDealProposalParametersLogs @Tags ContentDealProposalParametersLogs @Description GetAllContentDealProposalParametersLogs is a handler to get a slice of record(s) from content_deal_proposal_parameters_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentDealProposalParametersLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposalparameterslogs [get] http "http://localhost:8080/contentdealproposalparameterslogs?page=0&pagesize=20" X-Api-User:user123

func GetAllContentLogs

func GetAllContentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentLogs is a function to get a slice of record(s) from content_logs table in the estuary database @Summary Get list of ContentLogs @Tags ContentLogs @Description GetAllContentLogs is a handler to get a slice of record(s) from content_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentlogs [get] http "http://localhost:8080/contentlogs?page=0&pagesize=20" X-Api-User:user123

func GetAllContentMinerLogs

func GetAllContentMinerLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentMinerLogs is a function to get a slice of record(s) from content_miner_logs table in the estuary database @Summary Get list of ContentMinerLogs @Tags ContentMinerLogs @Description GetAllContentMinerLogs is a handler to get a slice of record(s) from content_miner_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentMinerLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentminerlogs [get] http "http://localhost:8080/contentminerlogs?page=0&pagesize=20" X-Api-User:user123

func GetAllContentWalletLogs

func GetAllContentWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllContentWalletLogs is a function to get a slice of record(s) from content_wallet_logs table in the estuary database @Summary Get list of ContentWalletLogs @Tags ContentWalletLogs @Description GetAllContentWalletLogs is a handler to get a slice of record(s) from content_wallet_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.ContentWalletLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentwalletlogs [get] http "http://localhost:8080/contentwalletlogs?page=0&pagesize=20" X-Api-User:user123

func GetAllDeltaNodeGeoLocations

func GetAllDeltaNodeGeoLocations(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllDeltaNodeGeoLocations is a function to get a slice of record(s) from delta_node_geo_locations table in the estuary database @Summary Get list of DeltaNodeGeoLocations @Tags DeltaNodeGeoLocations @Description GetAllDeltaNodeGeoLocations is a handler to get a slice of record(s) from delta_node_geo_locations table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.DeltaNodeGeoLocations} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltanodegeolocations [get] http "http://localhost:8080/deltanodegeolocations?page=0&pagesize=20" X-Api-User:user123

func GetAllDeltaStartupLogs

func GetAllDeltaStartupLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllDeltaStartupLogs is a function to get a slice of record(s) from delta_startup_logs table in the estuary database @Summary Get list of DeltaStartupLogs @Tags DeltaStartupLogs @Description GetAllDeltaStartupLogs is a handler to get a slice of record(s) from delta_startup_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.DeltaStartupLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltastartuplogs [get] http "http://localhost:8080/deltastartuplogs?page=0&pagesize=20" X-Api-User:user123

func GetAllInstanceMetaLogs

func GetAllInstanceMetaLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllInstanceMetaLogs is a function to get a slice of record(s) from instance_meta_logs table in the estuary database @Summary Get list of InstanceMetaLogs @Tags InstanceMetaLogs @Description GetAllInstanceMetaLogs is a handler to get a slice of record(s) from instance_meta_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.InstanceMetaLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /instancemetalogs [get] http "http://localhost:8080/instancemetalogs?page=0&pagesize=20" X-Api-User:user123

func GetAllLogEvents

func GetAllLogEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllLogEvents is a function to get a slice of record(s) from log_events table in the estuary database @Summary Get list of LogEvents @Tags LogEvents @Description GetAllLogEvents is a handler to get a slice of record(s) from log_events table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.LogEvents} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /logevents [get] http "http://localhost:8080/logevents?page=0&pagesize=20" X-Api-User:user123

func GetAllPieceCommitmentLogs

func GetAllPieceCommitmentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllPieceCommitmentLogs is a function to get a slice of record(s) from piece_commitment_logs table in the estuary database @Summary Get list of PieceCommitmentLogs @Tags PieceCommitmentLogs @Description GetAllPieceCommitmentLogs is a handler to get a slice of record(s) from piece_commitment_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.PieceCommitmentLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /piececommitmentlogs [get] http "http://localhost:8080/piececommitmentlogs?page=0&pagesize=20" X-Api-User:user123

func GetAllSps

func GetAllSps(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetAllWalletLogs

func GetAllWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetAllWalletLogs is a function to get a slice of record(s) from wallet_logs table in the estuary database @Summary Get list of WalletLogs @Tags WalletLogs @Description GetAllWalletLogs is a handler to get a slice of record(s) from wallet_logs table in the estuary database @Accept json @Produce json @Param page query int false "page requested (defaults to 0)" @Param pagesize query int false "number of records in a page (defaults to 20)" @Param order query string false "db sort order column" @Success 200 {object} api.PagedResults{data=[]model.WalletLogs} @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /walletlogs [get] http "http://localhost:8080/walletlogs?page=0&pagesize=20" X-Api-User:user123

func GetContentDealLogs

func GetContentDealLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentDealLogs is a function to get a single record from the content_deal_logs table in the estuary database @Summary Get record from table ContentDealLogs by contentDealLogsID @Tags ContentDealLogs @ID contentDealLogsID @Description GetContentDealLogs is a function to get a single record from the content_deal_logs table in the estuary database @Accept json @Produce json @Param contentDealLogsID path int64 true "id" @Success 200 {object} model.ContentDealLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentdeallogs/{contentDealLogsID} [get] http "http://localhost:8080/contentdeallogs/1" X-Api-User:user123

func GetContentDealProposalLogs

func GetContentDealProposalLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentDealProposalLogs is a function to get a single record from the content_deal_proposal_logs table in the estuary database @Summary Get record from table ContentDealProposalLogs by contentDealProposalLogsID @Tags ContentDealProposalLogs @ID contentDealProposalLogsID @Description GetContentDealProposalLogs is a function to get a single record from the content_deal_proposal_logs table in the estuary database @Accept json @Produce json @Param contentDealProposalLogsID path int64 true "id" @Success 200 {object} model.ContentDealProposalLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentdealproposallogs/{contentDealProposalLogsID} [get] http "http://localhost:8080/contentdealproposallogs/1" X-Api-User:user123

func GetContentDealProposalParametersLogs

func GetContentDealProposalParametersLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentDealProposalParametersLogs is a function to get a single record from the content_deal_proposal_parameters_logs table in the estuary database @Summary Get record from table ContentDealProposalParametersLogs by contentDealProposalParametersLogsID @Tags ContentDealProposalParametersLogs @ID contentDealProposalParametersLogsID @Description GetContentDealProposalParametersLogs is a function to get a single record from the content_deal_proposal_parameters_logs table in the estuary database @Accept json @Produce json @Param contentDealProposalParametersLogsID path int64 true "id" @Success 200 {object} model.ContentDealProposalParametersLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentdealproposalparameterslogs/{contentDealProposalParametersLogsID} [get] http "http://localhost:8080/contentdealproposalparameterslogs/1" X-Api-User:user123

func GetContentLogs

func GetContentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentLogs is a function to get a single record from the content_logs table in the estuary database @Summary Get record from table ContentLogs by contenDealLogsID @Tags ContentLogs @ID contenDealLogsID @Description GetContentLogs is a function to get a single record from the content_logs table in the estuary database @Accept json @Produce json @Param contenDealLogsID path int64 true "id" @Success 200 {object} model.ContentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentlogs/{contenDealLogsID} [get] http "http://localhost:8080/contentlogs/1" X-Api-User:user123

func GetContentMinerLogs

func GetContentMinerLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentMinerLogs is a function to get a single record from the content_miner_logs table in the estuary database @Summary Get record from table ContentMinerLogs by contenMinerLogsID @Tags ContentMinerLogs @ID contenMinerLogsID @Description GetContentMinerLogs is a function to get a single record from the content_miner_logs table in the estuary database @Accept json @Produce json @Param contenMinerLogsID path int64 true "id" @Success 200 {object} model.ContentMinerLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentminerlogs/{contenMinerLogsID} [get] http "http://localhost:8080/contentminerlogs/1" X-Api-User:user123

func GetContentWalletLogs

func GetContentWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetContentWalletLogs is a function to get a single record from the content_wallet_logs table in the estuary database @Summary Get record from table ContentWalletLogs by contenWalletLogsID @Tags ContentWalletLogs @ID contenWalletLogsID @Description GetContentWalletLogs is a function to get a single record from the content_wallet_logs table in the estuary database @Accept json @Produce json @Param contenWalletLogsID path int64 true "id" @Success 200 {object} model.ContentWalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /contentwalletlogs/{contenWalletLogsID} [get] http "http://localhost:8080/contentwalletlogs/1" X-Api-User:user123

func GetDdl

func GetDdl(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetDdl is a function to get table info for a table in the estuary database @Summary Get table info for a table in the estuary database by argID @Tags TableInfo @ID argID @Description GetDdl is a function to get table info for a table in the estuary database @Accept json @Produce json @Param argID path int true "id" @Success 200 {object} api.CrudAPI @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /ddl/{argID} [get] http "http://localhost:8080/ddl/xyz" X-Api-User:user123

func GetDdlEndpoints

func GetDdlEndpoints(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetDdlEndpoints is a function to get a list of ddl endpoints available for tables in the estuary database @Summary Gets a list of ddl endpoints available for tables in the estuary database @Tags TableInfo @Description GetDdlEndpoints is a function to get a list of ddl endpoints available for tables in the estuary database @Accept json @Produce json @Success 200 {object} api.CrudAPI @Router /ddl [get] http "http://localhost:8080/ddl" X-Api-User:user123

func GetDeltaIps

func GetDeltaIps(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetDeltaNodeGeoLocations

func GetDeltaNodeGeoLocations(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetDeltaNodeGeoLocations is a function to get a single record from the delta_node_geo_locations table in the estuary database @Summary Get record from table DeltaNodeGeoLocations by deltaNodeGeoLocationsID @Tags DeltaNodeGeoLocations @ID deltaNodeGeoLocationsID @Description GetDeltaNodeGeoLocations is a function to get a single record from the delta_node_geo_locations table in the estuary database @Accept json @Produce json @Param deltaNodeGeoLocationsID path int64 true "id" @Success 200 {object} model.DeltaNodeGeoLocations @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /deltanodegeolocations/{deltaNodeGeoLocationsID} [get] http "http://localhost:8080/deltanodegeolocations/1" X-Api-User:user123

func GetDeltaStartupLogs

func GetDeltaStartupLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetDeltaStartupLogs is a function to get a single record from the delta_startup_logs table in the estuary database @Summary Get record from table DeltaStartupLogs by deltaStartupLogsID @Tags DeltaStartupLogs @ID deltaStartupLogsID @Description GetDeltaStartupLogs is a function to get a single record from the delta_startup_logs table in the estuary database @Accept json @Produce json @Param deltaStartupLogsID path int64 true "id" @Success 200 {object} model.DeltaStartupLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /deltastartuplogs/{deltaStartupLogsID} [get] http "http://localhost:8080/deltastartuplogs/1" X-Api-User:user123

func GetIPAddress

func GetIPAddress(r *http.Request) string

GetIPAddress will take a http request and check headers if it has been proxied to extract what the server believes to be the client ip address.

func GetInstanceMetaLogs

func GetInstanceMetaLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetInstanceMetaLogs is a function to get a single record from the instance_meta_logs table in the estuary database @Summary Get record from table InstanceMetaLogs by instanceMetaLogsID @Tags InstanceMetaLogs @ID instanceMetaLogsID @Description GetInstanceMetaLogs is a function to get a single record from the instance_meta_logs table in the estuary database @Accept json @Produce json @Param instanceMetaLogsID path int64 true "id" @Success 200 {object} model.InstanceMetaLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /instancemetalogs/{instanceMetaLogsID} [get] http "http://localhost:8080/instancemetalogs/1" X-Api-User:user123

func GetLogEvents

func GetLogEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetLogEvents is a function to get a single record from the log_events table in the estuary database @Summary Get record from table LogEvents by logEventsID @Tags LogEvents @ID logEventsID @Description GetLogEvents is a function to get a single record from the log_events table in the estuary database @Accept json @Produce json @Param logEventsID path int64 true "id" @Success 200 {object} model.LogEvents @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /logevents/{logEventsID} [get] http "http://localhost:8080/logevents/1" X-Api-User:user123

func GetOpenTotalInfoStats

func GetOpenTotalInfoStats(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetPieceCommitmentLogs

func GetPieceCommitmentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetPieceCommitmentLogs is a function to get a single record from the piece_commitment_logs table in the estuary database @Summary Get record from table PieceCommitmentLogs by pieceCommitmentLogsID @Tags PieceCommitmentLogs @ID pieceCommitmentLogsID @Description GetPieceCommitmentLogs is a function to get a single record from the piece_commitment_logs table in the estuary database @Accept json @Produce json @Param pieceCommitmentLogsID path int64 true "id" @Success 200 {object} model.PieceCommitmentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /piececommitmentlogs/{pieceCommitmentLogsID} [get] http "http://localhost:8080/piececommitmentlogs/1" X-Api-User:user123

func GetRangeOfDealsAttempted

func GetRangeOfDealsAttempted(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetRefreshViewStatus

func GetRefreshViewStatus(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetWalletLogs

func GetWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetWalletLogs is a function to get a single record from the wallet_logs table in the estuary database @Summary Get record from table WalletLogs by walletLogsID @Tags WalletLogs @ID walletLogsID @Description GetWalletLogs is a function to get a single record from the wallet_logs table in the estuary database @Accept json @Produce json @Param walletLogsID path int64 true "id" @Success 200 {object} model.WalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError "ErrNotFound, db record for id not found - returns NotFound HTTP 404 not found error" @Router /walletlogs/{walletLogsID} [get] http "http://localhost:8080/walletlogs/1" X-Api-User:user123

func GetWalletsAddrs

func GetWalletsAddrs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func HTTPNocacheContent

func HTTPNocacheContent(w http.ResponseWriter, content string)

HTTPNocacheContent will set the headers for content type along with no caching.

func HTTPNocacheJSON

func HTTPNocacheJSON(w http.ResponseWriter)

HTTPNocacheJSON will set the headers on an http Response for a text/json content type along with no cache.

func InternalServerError

func InternalServerError(w http.ResponseWriter, r *http.Request, err error)

InternalServerError will return an error to the client, sending 500 error code to the client with generic string

func IsPrivateSubnet

func IsPrivateSubnet(ipAddress net.IP) bool

IsPrivateSubnet - check to see if this ip is in a private subnet

func NewError

func NewError(ctx *gin.Context, status int, err error)

NewError example

func RefreshView

func RefreshView(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func SendJSON

func SendJSON(w http.ResponseWriter, r *http.Request, code int, val interface{})

SendJSON will return take a value and serialize it to json and return the http response.

func UpdateContentDealLogs

func UpdateContentDealLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentDealLogs Update a single record from content_deal_logs table in the estuary database @Summary Update an record in table content_deal_logs @Description Update a single record from content_deal_logs table in the estuary database @Tags ContentDealLogs @Accept json @Produce json @Param contentDealLogsID path int64 true "id" @Param ContentDealLogs body model.ContentDealLogs true "Update ContentDealLogs record" @Success 200 {object} model.ContentDealLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdeallogs/{contentDealLogsID} [put] echo '{"id": 99,"content": 55,"propCid": "xknsQTytaZWgYojHSDkHVfPHa","dealUuid": "GxKYowuykjCRKgEIOgeQqqsen","miner": "OInOCDbSbQxplmMthtVnPierV","dealId": 85,"failed": true,"verified": false,"slashed": false,"failedAt": "2104-07-28T14:23:06.964124494-04:00","dtChan": "AcIPDCIUYkjdwjTvidljlPmEx","transferStarted": "2255-11-25T21:46:23.259616019-05:00","transferFinished": "2185-12-19T08:50:07.455413034-05:00","onChainAt": "2029-02-05T01:46:10.623356801-05:00","sealedAt": "2028-02-10T19:11:30.660121509-05:00","lastMessage": "vNFrivKDIRlSgyxmVrQZtcNPp","dealProtocolVersion": "SrvIxXavVsTojSXZWVUyHfVsG","minerVersion": "dZasDhnmXPWxsTJTkkjqsXekw","nodeInfo": "eaPQgRleeUStfJjFeLaqbMGAl","requesterInfo": "IPnKALNplIsAFbfNNEJjxEEbV","requestingApiKey": "GfxZduGGhytByYTANrfWicIOx","systemContentDealId": 68,"createdAt": "2236-06-18T16:44:22.565027633-04:00","updatedAt": "2108-07-24T20:06:59.490583119-04:00","deltaNodeUuid": "DBoqKOqeVRvCTTBXExXyHoKfB"}' | http PUT "http://localhost:8080/contentdeallogs/1" X-Api-User:user123

func UpdateContentDealProposalLogs

func UpdateContentDealProposalLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentDealProposalLogs Update a single record from content_deal_proposal_logs table in the estuary database @Summary Update an record in table content_deal_proposal_logs @Description Update a single record from content_deal_proposal_logs table in the estuary database @Tags ContentDealProposalLogs @Accept json @Produce json @Param contentDealProposalLogsID path int64 true "id" @Param ContentDealProposalLogs body model.ContentDealProposalLogs true "Update ContentDealProposalLogs record" @Success 200 {object} model.ContentDealProposalLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposallogs/{contentDealProposalLogsID} [put] echo '{"id": 89,"content": 22,"unsigned": "xhLCNmWsKJXMHJNVLbAotRLvd","signed": "NxnPbbAOrCWuUhNAZUWYCNTuH","meta": "avAOXCQJeaIngfaCMYmrBKVIH","nodeInfo": "HkcLsmLFptkoieXngLbnaaiMB","requesterInfo": "YvKDCcffBbTWqYIcjlqQEIfHI","requestingApiKey": "IJnyUdtVENbXQgBgMUQBdJmua","systemContentDealProposalId": 33,"createdAt": "2202-05-29T02:34:23.990453036-04:00","updatedAt": "2299-05-12T06:26:46.780123564-04:00","deltaNodeUuid": "PmcqKEJNODZQUWfKVDYGPgcMv"}' | http PUT "http://localhost:8080/contentdealproposallogs/1" X-Api-User:user123

func UpdateContentDealProposalParametersLogs

func UpdateContentDealProposalParametersLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentDealProposalParametersLogs Update a single record from content_deal_proposal_parameters_logs table in the estuary database @Summary Update an record in table content_deal_proposal_parameters_logs @Description Update a single record from content_deal_proposal_parameters_logs table in the estuary database @Tags ContentDealProposalParametersLogs @Accept json @Produce json @Param contentDealProposalParametersLogsID path int64 true "id" @Param ContentDealProposalParametersLogs body model.ContentDealProposalParametersLogs true "Update ContentDealProposalParametersLogs record" @Success 200 {object} model.ContentDealProposalParametersLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentdealproposalparameterslogs/{contentDealProposalParametersLogsID} [put] echo '{"id": 11,"content": 28,"label": "gbgXFsMvnaClNRAqhtQdtFhNQ","duration": 43,"startEpoch": 93,"endEpoch": 15,"transferParams": "hDsSoFfCmVRZJFXIPJYBAxGLK","removeUnsealedCopy": false,"skipIpNiAnnounce": true,"nodeInfo": "idaYRkrLBhLFHYQAZbeFIkcXi","requesterInfo": "IwXjAiusvSYuTSiLFiYOJTTCO","requestingApiKey": "TfZrGwdaEivZEPgRZouqkMoVs","systemContentDealProposalParametersId": 54,"createdAt": "2051-07-18T14:58:51.12809116-04:00","updatedAt": "2196-07-15T21:02:52.682828298-04:00","deltaNodeUuid": "vXwPAuNtmYAUodvoDsZMFPAjG"}' | http PUT "http://localhost:8080/contentdealproposalparameterslogs/1" X-Api-User:user123

func UpdateContentLogs

func UpdateContentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentLogs Update a single record from content_logs table in the estuary database @Summary Update an record in table content_logs @Description Update a single record from content_logs table in the estuary database @Tags ContentLogs @Accept json @Produce json @Param contenDealLogsID path int64 true "id" @Param ContentLogs body model.ContentLogs true "Update ContentLogs record" @Success 200 {object} model.ContentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentlogs/{contenDealLogsID} [put] echo '{"id": 77,"name": "leHZJvoRmNXbjXOJdENbLsWRN","size": 65,"cid": "qgrbbLblRBssYZGIIKaPNTxns","requestingApiKey": "RBdHSptGHhqttthYcJIZBGkPW","pieceCommitmentId": 65,"status": "nEjQTflQVpBMtuUoWbcPZLFqo","connectionMode": "xYkfLUktrPeXAUyWJdjCjimaL","lastMessage": "qNgmgQHaBfXuFOTsVPJwRQgUn","nodeInfo": "AcfvdSMFXLkGuokpUfBsOKLjV","requesterInfo": "lvdKTxCjIQeRxfkTSTjQMYQrd","systemContentId": 80,"createdAt": "2028-02-09T06:37:50.943937692-05:00","updatedAt": "2056-05-09T02:45:27.67587013-04:00","deltaNodeUuid": "KaSLVGxVAIZMoHmpTNIrMZWYl"}' | http PUT "http://localhost:8080/contentlogs/1" X-Api-User:user123

func UpdateContentMinerLogs

func UpdateContentMinerLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentMinerLogs Update a single record from content_miner_logs table in the estuary database @Summary Update an record in table content_miner_logs @Description Update a single record from content_miner_logs table in the estuary database @Tags ContentMinerLogs @Accept json @Produce json @Param contenMinerLogsID path int64 true "id" @Param ContentMinerLogs body model.ContentMinerLogs true "Update ContentMinerLogs record" @Success 200 {object} model.ContentMinerLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentminerlogs/{contenMinerLogsID} [put] echo '{"id": 69,"content": 0,"miner": "NXGJnUGafqmmNBPShVEUEfmmp","nodeInfo": "WDxXEDCrIJYyvsBAVKmNeiPEZ","requesterInfo": "DFRSNyUcGDJhibePMKhtctiaZ","requestingApiKey": "xNwUUtBHNrehAgaLbqFLwmxgh","systemContentMinerId": 7,"createdAt": "2257-06-15T10:59:42.700134707-04:00","updatedAt": "2207-11-18T23:49:37.467225423-05:00","deltaNodeUuid": "jIkpxjIHoCSjlPeyacQcPuKtJ"}' | http PUT "http://localhost:8080/contentminerlogs/1" X-Api-User:user123

func UpdateContentWalletLogs

func UpdateContentWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateContentWalletLogs Update a single record from content_wallet_logs table in the estuary database @Summary Update an record in table content_wallet_logs @Description Update a single record from content_wallet_logs table in the estuary database @Tags ContentWalletLogs @Accept json @Produce json @Param contenWalletLogsID path int64 true "id" @Param ContentWalletLogs body model.ContentWalletLogs true "Update ContentWalletLogs record" @Success 200 {object} model.ContentWalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /contentwalletlogs/{contenWalletLogsID} [put] echo '{"id": 32,"content": 30,"wallet": "IPWZJQDFqOtrZAiOqxXsTcxGA","nodeInfo": "bqfDOZUYMqlEMJMpMNWWCCAFU","requesterInfo": "RGnuoAwqrHeiSIbCNaAtinoEn","requestingApiKey": "oKedRqCcjjdtkhmRKWWoKYqkN","systemContentWalletId": 40,"createdAt": "2253-07-27T03:41:17.410938197-04:00","updatedAt": "2272-09-27T09:42:15.555605978-04:00","deltaNodeUuid": "MmyGprUgsHYiZKBoEcxYVUCrN","walletId": 32}' | http PUT "http://localhost:8080/contentwalletlogs/1" X-Api-User:user123

func UpdateDeltaNodeGeoLocations

func UpdateDeltaNodeGeoLocations(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateDeltaNodeGeoLocations Update a single record from delta_node_geo_locations table in the estuary database @Summary Update an record in table delta_node_geo_locations @Description Update a single record from delta_node_geo_locations table in the estuary database @Tags DeltaNodeGeoLocations @Accept json @Produce json @Param deltaNodeGeoLocationsID path int64 true "id" @Param DeltaNodeGeoLocations body model.DeltaNodeGeoLocations true "Update DeltaNodeGeoLocations record" @Success 200 {object} model.DeltaNodeGeoLocations @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltanodegeolocations/{deltaNodeGeoLocationsID} [put] echo '{"id": 89,"ip": "uwpBtXBntBWgkCKraXSpkctDe","country": "GHPtnoTwpFebPPVvcspCrMqZE","city": "kNBasfOCYAWmojkCMuiBaimiw","region": "vbJjsoGjvIDUSYIYsbvtGKygD","zip": "VRnvGNQBsiJRbbUgODZEJDkcB","lat": 0.2523771892476505,"lon": 0.8991950175159545,"createdAt": "2205-06-16T18:43:47.606371433-04:00","updatedAt": "2166-09-03T02:07:18.062428741-04:00"}' | http PUT "http://localhost:8080/deltanodegeolocations/1" X-Api-User:user123

func UpdateDeltaStartupLogs

func UpdateDeltaStartupLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateDeltaStartupLogs Update a single record from delta_startup_logs table in the estuary database @Summary Update an record in table delta_startup_logs @Description Update a single record from delta_startup_logs table in the estuary database @Tags DeltaStartupLogs @Accept json @Produce json @Param deltaStartupLogsID path int64 true "id" @Param DeltaStartupLogs body model.DeltaStartupLogs true "Update DeltaStartupLogs record" @Success 200 {object} model.DeltaStartupLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /deltastartuplogs/{deltaStartupLogsID} [put] echo '{"id": 17,"nodeInfo": "MiifxOjnqsUpOjndrGokBhUuL","osDetails": "fIDOfHOZfJMMKAdBmIxiBvYpC","ipAddress": "VogTZvQFdkLBQruBIclgLKiTa","createdAt": "2299-11-22T20:06:45.836550913-05:00","updatedAt": "2059-05-30T21:42:11.112312668-04:00","deltaNodeUuid": "DSimhMAQGdBANWNucLQNitfKW"}' | http PUT "http://localhost:8080/deltastartuplogs/1" X-Api-User:user123

func UpdateInstanceMetaLogs

func UpdateInstanceMetaLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateInstanceMetaLogs Update a single record from instance_meta_logs table in the estuary database @Summary Update an record in table instance_meta_logs @Description Update a single record from instance_meta_logs table in the estuary database @Tags InstanceMetaLogs @Accept json @Produce json @Param instanceMetaLogsID path int64 true "id" @Param InstanceMetaLogs body model.InstanceMetaLogs true "Update InstanceMetaLogs record" @Success 200 {object} model.InstanceMetaLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /instancemetalogs/{instanceMetaLogsID} [put] echo '{"id": 93,"instanceUuid": "BMIMASFbwVoZulNBUFGZhfSVW","instanceHostName": "CxuBGAQEDwdvgxuJhqFibVCfh","instanceNodeName": "IZJXagGdYFLncCRDLYwhmfkZS","osDetails": "nnstxhjfCoqFGQIwDGWKcfbsV","publicIp": "BycLLOtyYWbmWyCoxUhEubLWN","memoryLimit": 62,"cpuLimit": 10,"storageLimit": 26,"disableRequest": true,"disableCommitmentPieceGeneration": true,"disableStorageDeal": true,"disableOnlineDeals": false,"disableOfflineDeals": false,"numberOfCpus": 78,"storageInBytes": 41,"systemMemory": 30,"heapMemory": 10,"heapInUse": 97,"stackInUse": 65,"instanceStart": "2253-01-06T10:26:22.503703655-05:00","bytesPerCpu": 75,"nodeInfo": "shManTAukFURoYpTdAIePHgKx","requesterInfo": "WKdYjoCMUgHxZWUuYUJLMmuJt","deltaNodeUuid": "ioDKKXECtpdyPvcQOFnHjpXai","systemInstanceMetaId": 64,"createdAt": "2153-05-14T11:36:44.108263386-04:00","updatedAt": "2109-10-16T05:28:35.049000199-04:00"}' | http PUT "http://localhost:8080/instancemetalogs/1" X-Api-User:user123

func UpdateLogEvents

func UpdateLogEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateLogEvents Update a single record from log_events table in the estuary database @Summary Update an record in table log_events @Description Update a single record from log_events table in the estuary database @Tags LogEvents @Accept json @Produce json @Param logEventsID path int64 true "id" @Param LogEvents body model.LogEvents true "Update LogEvents record" @Success 200 {object} model.LogEvents @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /logevents/{logEventsID} [put] echo '{"id": 40,"logEventType": "utLCvdSTXAVpXmZBtJIFHfJTD","logEventObject": "WnAJsllMZuniavJewVbJDhPaM","logEventId": 11,"logEvent": "VoWiowlmuxqWgHNwOMrwCMnWt","createdAt": "2079-09-24T02:09:13.876912282-04:00","updatedAt": "2148-01-31T17:30:24.030190491-05:00","sourceHost": "rgljTEOgYPOGyYOxsLgOFLfQs","sourceIp": "rYhpAoCBhenbrcXTiOGyqTQMH","deltaUuid": "cyFGOCqwcETcuaAJpREQqAylk"}' | http PUT "http://localhost:8080/logevents/1" X-Api-User:user123

func UpdatePieceCommitmentLogs

func UpdatePieceCommitmentLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdatePieceCommitmentLogs Update a single record from piece_commitment_logs table in the estuary database @Summary Update an record in table piece_commitment_logs @Description Update a single record from piece_commitment_logs table in the estuary database @Tags PieceCommitmentLogs @Accept json @Produce json @Param pieceCommitmentLogsID path int64 true "id" @Param PieceCommitmentLogs body model.PieceCommitmentLogs true "Update PieceCommitmentLogs record" @Success 200 {object} model.PieceCommitmentLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /piececommitmentlogs/{pieceCommitmentLogsID} [put] echo '{"id": 96,"cid": "lSpleRdPmtqSgPIPaupwBTuyl","piece": "rdrggiHeNdpKHBfFylyCggASX","size": 54,"paddedPieceSize": 34,"unPaddedPieceSize": 67,"status": "rZcNQmBiCIqntDBaEJOEBDeUU","lastMessage": "nMdhoVjfwPSQpWiVwprTHtQDv","nodeInfo": "hgMKEJrQUrKFCsxmSNhmKrfns","requesterInfo": "gjlGNNmhGjgIZlGkkRLInnaIl","requestingApiKey": "OdFJvYFetTPCvOnNtqEEefDtu","systemContentPieceCommitmentId": 41,"createdAt": "2263-03-20T02:46:34.0114278-04:00","updatedAt": "2233-07-09T11:09:29.842592668-04:00","deltaNodeUuid": "BHSEdeJWRcPaiTAwASdFCrYor"}' | http PUT "http://localhost:8080/piececommitmentlogs/1" X-Api-User:user123

func UpdateWalletLogs

func UpdateWalletLogs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

UpdateWalletLogs Update a single record from wallet_logs table in the estuary database @Summary Update an record in table wallet_logs @Description Update a single record from wallet_logs table in the estuary database @Tags WalletLogs @Accept json @Produce json @Param walletLogsID path int64 true "id" @Param WalletLogs body model.WalletLogs true "Update WalletLogs record" @Success 200 {object} model.WalletLogs @Failure 400 {object} api.HTTPError @Failure 404 {object} api.HTTPError @Router /walletlogs/{walletLogsID} [put] echo '{"id": 80,"uuId": "peFbMgHivRACqmNCvSorweBqP","addr": "DZHnFIoBEmueGkCKsbhBavqtY","owner": "EiInDJEyANGkwlltXGTjhuYGx","keyType": "vDZKOPdjBbTrnnYuaGJHQaYtJ","privateKey": "wUkalhcPceXJobZGwJmepOywB","nodeInfo": "vgQknMVpqfrrAcQbfEKeknEyr","requesterInfo": "oByfGPwsEqniJLssjQCfDFPAQ","requestingApiKey": "MRemQfcdJkewUiFHrosfOFoKp","systemWalletId": 70,"createdAt": "2067-08-04T12:59:08.474556194-04:00","updatedAt": "2094-09-21T03:52:50.420485709-04:00","deltaNodeUuid": "BJLhHabuFNncXQTqTrxbJQkLE"}' | http PUT "http://localhost:8080/walletlogs/1" X-Api-User:user123

func ValidateRequest

func ValidateRequest(ctx context.Context, r *http.Request, table string, action model.Action) error

Types

type AuthResponse

type AuthResponse struct {
	User struct {
		Username string `json:"username"`
		Perm     int    `json:"perm"`
		Flags    int    `json:"flags"`
	} `json:"user"`
	Result struct {
		Validated bool   `json:"validated"`
		Details   string `json:"details"`
	} `json:"result"`
}

func GetAuthResponse

func GetAuthResponse(resp *http.Response) (AuthResponse, error)

type ContextInitializerFunc

type ContextInitializerFunc func(r *http.Request) (ctx context.Context)
var ContextInitializer ContextInitializerFunc

type CrudAPI

type CrudAPI struct {
	Name            string           `json:"name"`
	CreateURL       string           `json:"createUrl"`
	RetrieveOneURL  string           `json:"retrieveOneUrl"`
	RetrieveManyURL string           `json:"retrieveManyUrl"`
	UpdateURL       string           `json:"updateUrl"`
	DeleteURL       string           `json:"deleteUrl"`
	FetchDDLURL     string           `json:"fetchDdlUrl"`
	TableInfo       *model.TableInfo `json:"tableInfo"`
}

CrudAPI describes requests available for tables in the database

type HTTPError

type HTTPError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

HTTPError example

type PagedResults

type PagedResults struct {
	Page         int64       `json:"page"`
	PageSize     int64       `json:"pageSize"`
	Data         interface{} `json:"data"`
	TotalRecords int         `json:"totalRecords"`
}

PagedResults results for pages GetAll results.

type RefreshViewResponse

type RefreshViewResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type RequestValidatorFunc

type RequestValidatorFunc func(ctx context.Context, r *http.Request, table string, action model.Action) error
var RequestValidator RequestValidatorFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL