metadata

package
v0.3.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(cacheFilename string) *Cache

Function which will provide a new cache struct An cache must be provided a file that it can read/write it's data to so that the cache is preserved between launches

func (*Cache) Load

func (c *Cache) Load(filename string) error

Method which will load the provided cache data file. Will overwrite the internal state of the object. Should pretty much only be used when the object is created but it is left public in case a client needs to load old data or something

func (*Cache) Lookup

func (c *Cache) Lookup(resourceID string) (title string)

func (*Cache) Store

func (c *Cache) Store(ipfsPath string, title string) (err error)

func (*Cache) Write

func (c *Cache) Write(filename string) error

Method which will write the cache data to the provided file. Will overwrite a file if one already exists at that location.

Jump to

Keyboard shortcuts

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