server

package
v0.0.0-...-cdd27d5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongId = errors.New("Block id mismatch decode <> locally calculated")

Functions

This section is empty.

Types

type Server

type Server struct {
	// We have our own tree (rooted at 'rootName')
	hugger.Hugger

	Family, Address string
	Fs              *fs.Fs
	Storage         *storage.Storage
}

func (*Server) ClearBlocksInName

func (self *Server) ClearBlocksInName(ctx context.Context, n *BlockName) (*ClearResult, error)

func (*Server) Close

func (self *Server) Close()

func (*Server) GetBlockById

func (self *Server) GetBlockById(ctx context.Context, req *GetBlockRequest) (*Block, error)

func (*Server) GetBlockIdByName

func (self *Server) GetBlockIdByName(ctx context.Context, name *BlockName) (*BlockId, error)

func (Server) Init

func (self Server) Init() *Server

func (*Server) MergeBlockNameTo

func (self *Server) MergeBlockNameTo(ctx context.Context, req *MergeRequest) (*MergeResult, error)

func (*Server) SetNameToBlockId

func (self *Server) SetNameToBlockId(ctx context.Context, req *SetNameRequest) (*SetNameResult, error)

func (*Server) StoreBlock

func (self *Server) StoreBlock(ctx context.Context, req *StoreRequest) (*Block, error)

func (*Server) UpgradeBlockNonWeak

func (self *Server) UpgradeBlockNonWeak(ctx context.Context, rbid *BlockId) (*Block, error)

Jump to

Keyboard shortcuts

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