kungfu

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mi = 1 << 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kungfu

type Kungfu struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() (*Kungfu, error)

func (*Kungfu) Close

func (kf *Kungfu) Close() int

func (*Kungfu) CurrentSession

func (kf *Kungfu) CurrentSession() *session

func (*Kungfu) GetCheckpoint

func (kf *Kungfu) GetCheckpoint() string

func (*Kungfu) ResizeCluster

func (kf *Kungfu) ResizeCluster(ckpt string, newSize int) (bool, error)

func (*Kungfu) Save

func (kf *Kungfu) Save(version, name string, buf *kb.Vector) error

func (*Kungfu) Start

func (kf *Kungfu) Start() int

func (*Kungfu) Update

func (kf *Kungfu) Update() bool

type Workspace

type Workspace struct {
	SendBuf *kb.Vector
	RecvBuf *kb.Vector // TODO: if nil, will use SendBuf as in-place result
	OP      kb.OP
	Name    string
}

Workspace contains the data that a Kungfu operation will be performed on.

Jump to

Keyboard shortcuts

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