Documentation
¶
Index ¶
- Constants
- Variables
- func Init()
- type ErrorResponse
- type ProofChainPaginationResponse
- type ProofChainRequest
- type ProofChainResponse
- type ProofChainSingleItem
- type ProofChainSingleRequest
- type ProofChainSingleResponse
- type ProofExistsRequest
- type ProofExistsResponse
- type ProofPayloadRequest
- type ProofPayloadRequestExtra
- type ProofPayloadResponse
- type ProofQueryPaginationResponse
- type ProofQueryRequest
- type ProofQueryResponse
- type ProofQueryResponseSingle
- type ProofQueryResponseSingleProof
- type ProofUploadRequest
- type ProofUploadRequestExtra
Constants ¶
View Source
const (
PER_PAGE = 20
)
Variables ¶
View Source
var (
Engine *gin.Engine
)
Functions ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type ProofChainRequest ¶
type ProofChainResponse ¶
type ProofChainResponse struct {
Pagination ProofChainPaginationResponse `json:"pagination"`
ProofChains []model.ProofChainItem `json:"proof_chain"`
}
type ProofChainSingleItem ¶
type ProofChainSingleItem struct {
model.ProofChainItem
Avatar string `json:"avatar"`
ID int64 `json:"id"`
}
type ProofChainSingleRequest ¶
type ProofChainSingleResponse ¶
type ProofChainSingleResponse struct {
Links []ProofChainSingleItem `json:"links"`
}
type ProofExistsRequest ¶
type ProofExistsResponse ¶
type ProofPayloadRequest ¶
type ProofPayloadRequestExtra ¶
type ProofPayloadRequestExtra struct {
EthereumWalletSignature string `json:"wallet_signature"`
}
type ProofPayloadResponse ¶
type ProofQueryRequest ¶
type ProofQueryResponse ¶
type ProofQueryResponse struct {
Pagination ProofQueryPaginationResponse `json:"pagination"`
IDs []ProofQueryResponseSingle `json:"ids"`
}
type ProofQueryResponseSingle ¶
type ProofQueryResponseSingle struct {
Persona string `json:"persona"`
Avatar string `json:"avatar"`
LastArweaveID string `json:"last_arweave_id"`
Proofs []ProofQueryResponseSingleProof `json:"proofs"`
}
type ProofUploadRequest ¶
type ProofUploadRequest struct {
Action types.Action `json:"action"`
Platform types.Platform `json:"platform"`
Identity string `json:"identity"`
ProofLocation string `json:"proof_location"`
PublicKey string `json:"public_key"`
Uuid string `json:"uuid"`
CreatedAt string `json:"created_at"`
Extra ProofUploadRequestExtra `json:"extra"`
}
type ProofUploadRequestExtra ¶
Click to show internal directories.
Click to hide internal directories.