tracker

package
v0.0.0-...-0b7cff5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 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 MetaTracker

type MetaTracker struct {
	Following map[string]string
	// contains filtered or unexported fields
}

func MetaOpen

func MetaOpen(meta_path string) (MetaTracker, error)

func (*MetaTracker) Append

func (m *MetaTracker) Append(peer string, hash string) error

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

func NewTracker

func NewTracker(ctx context.Context, meta_path string, ipfs_api string) (Tracker, error)

func (*Tracker) Follow

func (t *Tracker) Follow(id string) error

Just pin the id

func (*Tracker) GetUsersFollowed

func (t *Tracker) GetUsersFollowed() ([]string, error)

Just check the list of pinned items, return a slice of id

func (*Tracker) Start

func (t *Tracker) Start()

func (*Tracker) UnFollow

func (t *Tracker) UnFollow(id string) error

Not implemented yet TODO: should unpin the id

Jump to

Keyboard shortcuts

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