Versions in this module Expand all Collapse all v0 v0.5.6 Mar 22, 2021 v0.5.5 Jun 19, 2020 Changes in this version + const Language + const Publisher + const Schema + const SchemaLocation + const Version + func GetArchiveSize(archiveURL string) (uint64, error) + func PrettyDate(dt *time.Time) string + type Contributor struct + Name string + Type string + type Creator struct + Affiliation string + Identifier *NameIdentifier + Name string + type DataCite struct + Contributors []Contributor + Creators []Creator + Dates []Date + Descriptions []Description + FundingReferences *[]FundingReference + Identifier Identifier + Language string + Publisher string + RelatedIdentifiers []RelatedIdentifier + ResourceType ResourceType + RightsList []Rights + Schema string + SchemaLocation string + Sizes *[]string + Subjects *[]string + Titles []string + Version string + XMLName xml.Name + Year int + func NewDataCite() DataCite + func NewDataCiteFromYAML(info *RepositoryYAML) *DataCite + func UnmarshalFile(path string) (*DataCite, error) + func (dc *DataCite) AddAbstract(abstract string) + func (dc *DataCite) AddAuthor(author *Author) + func (dc *DataCite) AddFunding(fundstr string) + func (dc *DataCite) AddReference(ref *Reference) + func (dc *DataCite) AddURLs(repo, fork, archive string) + func (dc *DataCite) FixSchemaAttrs() + func (dc *DataCite) Marshal() (string, error) + func (dc *DataCite) SetResourceType(resourceType string) + type Date struct + Type string + Value string + type Description struct + Content string + Type string + type FunderIdentifier struct + ID string + Type string + type FundingReference struct + AwardNumber string + Funder string + Identifier *FunderIdentifier + type GINUser struct + Email string + RealName string + Username string + type Identifier struct + ID string + Type string + type NameIdentifier struct + ID string + Scheme string + SchemeURI string type NamedIdentifier + SchemeURI string type Reference + RefType string + type RelatedIdentifier struct + Identifier string + RelationType string + Type string + type RepositoryMetadata struct + ForkRepository string + RequestingUser *GINUser + SourceRepository string + UUID string + YAMLData *RepositoryYAML + type RepositoryYAML struct + Authors []Author + Description string + Funding []string + Keywords []string + License *License + References []Reference + ResourceType string + TemplateVersion string + Title string + type ResourceType struct + General string + Value string + type Rights struct + Name string + URL string v0.3.2 Jan 8, 2020 Changes in this version + var UUIDMap = map[string]string type DOIRegInfo + DateTime time.Time + FileName string + TemplateVersion string + func (c *DOIRegInfo) ISODate() string + func (c *DOIRegInfo) Year() string type Reference + Citation string + func (ref Reference) GetURL() string v0.3.0 Dec 19, 2019 Changes in this version + const SEARCH_FUZZY + const SEARCH_MATCH + const SEARCH_QUERY + const SEARCH_SUGGEST + const SEARCH_WILDCARD + func Decrypt(key, ciphertext []byte) ([]byte, error) + func DecryptString(key []byte, encstring string) (string, error) + func DecryptURLString(key []byte, encstring string) (string, error) + func Encrypt(key, plaintext []byte) ([]byte, error) + func EncryptString(key []byte, plaintext string) (string, error) + func EncryptURLString(key []byte, plaintext string) (string, error) + func IsRegisteredDOI(doi string) bool + func MakeZip(dest io.Writer, source ...string) error + func ReadConf(key string) string + func ReadConfDefault(key, defval string) string + func RepoPathToUUID(URI string) string + type Author struct + Affiliation string + FirstName string + ID string + LastName string + func (a *Author) RenderAuthor() string + func (c *Author) GetValidID() *NamedIdentifier + type BlobSResult struct + Highlight interface{} + Score float64 + Source *IndexBlob + type CommitSResult struct + Highlight interface{} + Score float64 + Source *IndexCommit + type DOIRegInfo struct + Authors []Author + DOI string + Description string + FileSize int64 + Funding []string + Keywords []string + License *License + Missing []string + References []Reference + ResourceType string + Title string + UUID string + func (c *DOIRegInfo) EscXML(txt string) string + func (c *DOIRegInfo) GetCitation() string + func (c *DOIRegInfo) GetType() string + type DOIRequestData struct + Email string + Realname string + Repository string + Username string + type IndexBlob struct + Content string + FirstCommit string + GinRepoId string + GinRepoName string + Id int64 + IndexingTime time.Time + Oid gig.SHA1 + Path string + type IndexCommit struct + GinRepoId string + GinRepoName string + IndexingTime time.Time + Oid gig.SHA1 + type IndexRequest struct + RepoID int64 + RepoPath string + UserID int64 + type License struct + Name string + URL string + type NamedIdentifier struct + ID string + Scheme string + URI string + type Reference struct + ID string + Name string + Reftype string + type SearchRequest struct + Keywords string + RepoIDs []int64 + SType int + type SearchResults struct + Blobs []BlobSResult + Commits []CommitSResult