Documentation ¶
Index ¶
Constants ¶
View Source
const ( LocalStoragePath = "nebin/storage" PaperPdfFileName = "paper.pdf" )
View Source
const ( UnknownStatus = iota ProcessingFailedStatus NotEnoughUniquenessStatus IsReadyForProcessingStatus InProgressStatus SuccessStatus )
View Source
const ( Network = "network" DevNetwork = "devnet" MainNetwork = "mainnet-beta" Description = "description" Mnemonic = "secret_recovery_phrase" DerivationPath = "derivation_path" NfrName = "nft_name" NftSymbol = "nft_symbol" NftUrl = "nft_url" NftUploadMethod = "nft_upload_method" ApiKey = "APIKeyID" ApiSecret = "APISecretKey" Link = "LINK" )
blockchain
View Source
const ( NftBaseUrl = "https://api.theblockchainapi.com/" MintEndpoint = "v1/solana/nft" )
blockchain endpoint
View Source
const ( ImageBaseUrl = "https://api.imgbb.com/1/upload" Image = "image" Key = "key" Expiration = "expiration" )
nft image creator
View Source
const IpfsUrl = "https://ipfs.io/ipfs/"
IPFS
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AnalysisResult ¶
type NftResponse ¶
type PaperMetadata ¶
type PaperMetadata struct { Id string `json:"id" bson:"id"` Topic string `json:"topic" bson:"topic"` UploadDate string `json:"uploadDate" bson:"uploadDate"` Authors []Author `json:"authors" bson:"authors"` PaperIpfsHash string `json:"paperIpfsHash,omitempty" bson:"paperIpfsHash,omitempty"` ReviewRating string `json:"reviewRating,omitempty" bson:"reviewRating,omitempty"` PaperUniqueness string `json:"paperUniqueness,omitempty" bson:"paperUniqueness,omitempty"` SimilarPapersNfr []string `json:"similarPapersNfr,omitempty" bson:"similarPapersNfr,omitempty"` }
type PaperProcessingResult ¶
type PaperShingles ¶
type ServiceAction ¶
type ServiceAction = int
const ( NewPaperUploadAction ServiceAction = iota GetPaperProcessingStatusAction GetPaperByHashAction GetPaperInfoByNFTAction )
type ServiceTask ¶
type ServiceTask struct { Action ServiceAction Payload interface{} ReturnCh chan<- interface{} }
Click to show internal directories.
Click to hide internal directories.