sea

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package sea provides the client platform for sea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Sea *tpSea.Sea
	*lib.ClientFramework
}

Client provides the platform for sea providing the storage resources in the P2P network.

func NewSeaClient

func NewSeaClient(name, keyFile string) (*Client, error)

NewSeaClient is the construct for Sea Client.

func (*Client) Bootstrap

func (c *Client) Bootstrap(keyFile, storagePath string, size int64, bootstrapAddrs []ma.Multiaddr)

Bootstrap start the node process for providing storage resources.

func (*Client) ConfirmSeaOperations

func (c *Client) ConfirmSeaOperations()

ConfirmSeaOperations get the sea's operations from blockchain and operate them.

func (*Client) SeaRegister

func (c *Client) SeaRegister() error

SeaRegister register the sea in the blockchain.

func (*Client) Sync

func (c *Client) Sync() error

Sync get the sea's data from blockchain.

Jump to

Keyboard shortcuts

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