export

package
v0.0.0-...-9979796 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	XMLName xml.Name `xml:"edge"`
	Id      int      `xml:"id,attr"`
	Source  string   `xml:"source,attr"`
	Target  string   `xml:"target,attr"`
}

type Edges

type Edges struct {
	XMLName xml.Name `xml:"edges"`
	Count   int      `xml:"count,attr"`
	Edges   []Edge   `xml:"edge"`
}

type ExportPersister

type ExportPersister interface {
	PersistInfo(m map[string][]string) error
}

PersistInfo persists some information like a list of keywords used in your zettelkasten and the number of occurrences.

type Exporter

type Exporter struct {
	Persister ExportPersister
	Repo      zet.Repo
}

Exporter contains the application entry point for all operations regarding views upon your zettelkasten. Exporter satisfies the zet.Exporter interface.

func New

func New(ip ExportPersister, r zet.Repo) Exporter

func (Exporter) Export

func (e Exporter) Export() error

CreateViews creates a folder with different access points (links).

type Gexf

type Gexf struct {
	XMLName xml.Name `xml:"gexf"`
	Xmlns   string   `xml:"xmlns,attr"`
	Version string   `xml:"version,attr"`
	Graph   Graph    `xml:"graph"`
}

type Graph

type Graph struct {
	XMLName         xml.Name `xml:"graph"`
	DefaultEdgeType string   `xml:"defaultedgetype,attr"`
	IdType          string   `xml:"idtype,attr"`
	Type            string   `xml:"type,attr"`
	Nodes           Nodes    `xml:"nodes"`
	Edges           Edges    `xml:"edges"`
}

type Node

type Node struct {
	XMLName xml.Name `xml:"node"`
	Id      string   `xml:"id,attr"`
	Label   string   `xml:"label,attr"`
}

type Nodes

type Nodes struct {
	XMLName xml.Name `xml:"nodes"`
	Count   int      `xml:"count,attr"`
	Nodes   []Node   `xml:"node"`
}

Jump to

Keyboard shortcuts

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