tour

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Introduction = Chapter(0)
	FileBasics   = Chapter(1)
	NodeBasics   = Chapter(2)
	MerkleDag    = Chapter(3)
	Network      = Chapter(4)
	Daemon       = Chapter(5)
	Routing      = Chapter(6)
	Exchange     = Chapter(7)
	Ipns         = Chapter(8)
	Mounting     = Chapter(9)
	Plumbing     = Chapter(10)
	Formats      = Chapter(11)
)
View Source
var Daemon_Intro = Content{}
View Source
var Daemon_Running_Commands = Content{}
View Source
var Daemon_Web_UI = Content{}
View Source
var Exchange_Bitswap = Content{}
View Source
var Exchange_Getting_Blocks = Content{}
View Source
var Exchange_Intro = Content{}
View Source
var Exchange_Strategies = Content{}
View Source
var FileBasicsAdding = Content{
	Title: "Adding Files",
	Text: `ipfs add
	`,
}
View Source
var FileBasicsDirectories = Content{
	Title: "Directories",
	Text: `ipfs ls
	`,
}
View Source
var FileBasicsDistributed = Content{
	Title: "Distributed",
	Text: `ipfs cat from mars
	`,
}
View Source
var FileBasicsFilesystem = Content{
	Title: "Filesystem",
	Text: `
	`,
}
View Source
var FileBasicsGetting = Content{
	Title: "Getting Files",
	Text: `ipfs cat
	`,
}
View Source
var FileBasicsMounting = Content{
	Title: "Getting Files",
	Text: `ipfs mount (simple)
	`,
}
View Source
var Formats_MerkleDag = Content{}
View Source
var Formats_Multiaddr = Content{}
View Source
var Formats_Multicodec = Content{}
View Source
var Formats_Multihash = Content{}
View Source
var Formats_Multikey = Content{}
View Source
var Formats_Protocol_Specific = Content{}
View Source
var IDs []ID

Topics is a sorted list of topic IDs

View Source
var IntroAboutIpfs = Content{
	Title: "About IPFS",
}
View Source
var IntroHelloMars = Content{
	Title: "Hello Mars",
	Text: `
	check things work
	`,
}
View Source
var IntroTour = Content{
	Title: "Hello Mars",
	Text: `
	how this works
	`,
}
View Source
var Ipns_Consistency = Content{}
View Source
var Ipns_Mutability = Content{}
View Source
var Ipns_Name_System = Content{}
View Source
var Ipns_PKI_Review = Content{
	Title: "PKI Review",
	Text: `
	TODO sign verify
	`,
}
View Source
var Ipns_Publishing = Content{}
View Source
var Ipns_Records_Etc = Content{}
View Source
var Ipns_Resolving = Content{}
View Source
var MerkleDagContentAddressing = Content{}
View Source
var MerkleDagContentAddressingLinks = Content{}
View Source
var MerkleDagImmutability = Content{
	Title: "Immutability",
	Text: `
	TODO plan9
	TODO git
	`,
}
View Source
var MerkleDagIntro = Content{}

Merkle DAG

View Source
var MerkleDagIpfsObjects = Content{}
View Source
var MerkleDagIpfsPaths = Content{}
View Source
var MerkleDagRedux = Content{}
View Source
var MerkleDagUseCaseGitObjects = Content{}
View Source
var MerkleDagUseCaseOperationalTransforms = Content{}
View Source
var MerkleDagUseCaseUnixFS = Content{}
View Source
var Mounting_General = Content{} // TODO note fuse
View Source
var Mounting_Ipfs = Content{} // TODO cd, ls, cat
View Source
var Mounting_Ipns = Content{} // TODO editing
View Source
var Network_Daemon = Content{}
View Source
var Network_Exchange = Content{}
View Source
var Network_Intro = Content{}
View Source
var Network_Ipfs_Peers = Content{}
View Source
var Network_Naming = Content{}
View Source
var Network_Routing = Content{}
View Source
var NodeBasicsConfig = Content{
	Title: "Basics - config",
	Text: `
	`,
}
View Source
var NodeBasicsHelp = Content{
	Title: "Basics - help",
	Text: `
	`,
}
View Source
var NodeBasicsInit = Content{
	Title: "Basics - init",

	Text: `
	`,
}
View Source
var NodeBasicsUpdate = Content{
	Title: "Basics - update",
	Text: `
	`,
}
View Source
var Plumbing_Intro = Content{}
View Source
var Plumbing_Ipfs_Block = Content{}
View Source
var Plumbing_Ipfs_Id = Content{}
View Source
var Plumbing_Ipfs_Object = Content{}
View Source
var Plumbing_Ipfs_Ping = Content{}
View Source
var Plumbing_Ipfs_Refs = Content{}
View Source
var Rouing_Interface = Content{}
View Source
var Routing_DHT = Content{}
View Source
var Routing_Intro = Content{}
View Source
var Routing_Other = Content{}
View Source
var Routing_Resolving = Content{}
View Source
var Topics = map[ID]Topic{}

Topics contains a mapping of Tour Topic ID to Topic

Functions

func Chapter

func Chapter(number int) func(topic int) ID

returns a partially applied function.

It's designed to make it easy to re-order chapters with minimal fuss.

eg.

Intro := Chapter(1)
ID("1.1") == Intro(1) == Chapter(1)(1)

Types

type Content

type Content struct {
	Title string
	Text  string
}

type ID

type ID string

ID is a string identifier for topics

func NextTopic

func NextTopic(topic ID) ID

NextTopic returns the next in-order topic

func TopicID

func TopicID(t string) ID

TopicID returns a valid tour topic ID from given string

func (ID) LessThan

func (i ID) LessThan(o ID) bool

LessThan returns whether this ID is sorted earlier than another.

type IDSlice

type IDSlice []ID

IDSlice implements the sort interface for ID slices.

func (IDSlice) Len

func (a IDSlice) Len() int

func (IDSlice) Less

func (a IDSlice) Less(i, j int) bool

func (IDSlice) Swap

func (a IDSlice) Swap(i, j int)

type Topic

type Topic struct {
	ID ID
	Content
}

Topic is a type of objects that structures a tour topic.

Jump to

Keyboard shortcuts

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