Versions in this module Expand all Collapse all v1 v1.0.2 Dec 20, 2016 Changes in this version + func RegularSlashes(path string) (res string) + type Api struct + func NewApi(dpa *storage.DPA, dns Resolver) (self *Api) + func (self *Api) Get(uri string, nameresolver bool) (reader storage.LazySectionReader, mimeType string, status int, err error) + func (self *Api) Modify(uri, contentHash, contentType string, nameresolver bool) (newRootHash string, err error) + func (self *Api) Put(content, contentType string) (string, error) + func (self *Api) Resolve(hostPort string, nameresolver bool) (storage.Key, error) + func (self *Api) Retrieve(key storage.Key) storage.LazySectionReader + func (self *Api) Store(data io.Reader, size int64, wg *sync.WaitGroup) (key storage.Key, err error) + type Config struct + BzzKey string + EnsRoot common.Address + Path string + Port string + PublicKey string + Swap *swap.SwapParams + func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey) (self *Config, err error) + func (self *Config) Save() error + type Control struct + func NewControl(api *Api, hive *network.Hive) *Control + func (self *Control) BlockNetworkRead(on bool) + func (self *Control) Hive() string + func (self *Control) SwapEnabled(on bool) + func (self *Control) SyncEnabled(on bool) + type ErrResolve error + type FileSystem struct + func NewFileSystem(api *Api) *FileSystem + func (self *FileSystem) Download(bzzpath, localpath string) error + func (self *FileSystem) Upload(lpath, index string) (string, error) + type Resolver interface + Resolve func(string) (common.Hash, error) + type Response struct + Content string + MimeType string + Size int64 + Status int + type Storage struct + func NewStorage(api *Api) *Storage + func (self *Storage) Get(bzzpath string) (*Response, error) + func (self *Storage) Modify(rootHash, path, contentHash, contentType string) (newRootHash string, err error) + func (self *Storage) Put(content, contentType string) (string, error)