neard

package
v0.0.0-...-985d544 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

Package neard implements NEAR daemon related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NEARDaemon

type NEARDaemon struct {
	Head string
	// contains filtered or unexported fields
}

NEARDaemon wraps a neard.

func LoadFromBinary

func LoadFromBinary(binaryPath string, head string) (*NEARDaemon, error)

LoadFromBinary loads NEARDaemon from existing binary.

func LoadFromRepo

func LoadFromRepo(repoPath string, release bool, build bool) (*NEARDaemon, error)

LoadFromRepo loads NEARDaemon from repo by provided path (and build if requested).

func (*NEARDaemon) RestoreLocalData

func (daemon *NEARDaemon) RestoreLocalData(source string) error

RestoreLocalData restores local data of a NEARDaemon from given directory.

func (*NEARDaemon) SetupLocalData

func (daemon *NEARDaemon) SetupLocalData() error

SetupLocalData initializes local data of a NEARDaemon.

func (*NEARDaemon) Start

func (daemon *NEARDaemon) Start() error

Start NEARDaemon.

func (*NEARDaemon) Stop

func (daemon *NEARDaemon) Stop() error

Stop NEARDaemon.

Jump to

Keyboard shortcuts

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