Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2021 Changes in this version + func AddRecordToLogs(cfg *Config, record *ImmutableRecord) error + func GeneratePDF(cfg *Config) error + func GenerateREADME(cfg *Config, readmeFilepath string) error + func GenerateREADMEFile(cfg *Config) error + type Config struct + Document DocumentConfig + Gotenberg GotenbergConfig + ImmutableDir string + Pinata PinataConfig + Production bool + TemplatesDir string + func LoadConfigFromFile(configPath string) (*Config, error) + type DocumentConfig struct + OutputFilename string + Title string + type GotenbergConfig struct + Hostname string + type ImmutableRecord struct + CID string + Date time.Time + func NewRecord(config *Config) (*ImmutableRecord, error) + func ReadSortedRecords(cfg *Config) ([]ImmutableRecord, error) + func (ir *ImmutableRecord) RecordLine() string + type PinataConfig struct + APIKey string + APISecret string + type PinataResponse struct + IpfsHash string + Timestamp time.Time + func PinDocumentToIPFS(cfg *Config) (*PinataResponse, error) + type ReadmeData struct + DocumentName string + DocumentTitle string + Records []ReadmeRecord + type ReadmeRecord struct + CID string + Date string + DocumentName string + DocumentPath string + SerialNumber int