state

package
v0.0.0-...-4cc0894 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Connected time.Time
	Added     int
	Deleted   int
	New       int
	Calls     map[string]struct{}
	Corpus    *db.DB
	// contains filtered or unexported fields
}

Manager represents one syz-manager instance.

type State

type State struct {
	Corpus   *db.DB
	Managers map[string]*Manager
	// contains filtered or unexported fields
}

State holds all internal syz-hub state including corpus and information about managers. It is persisted to and can be restored from a directory.

func Make

func Make(dir string) (*State, error)

Make creates State and initializes it from dir.

func (*State) Connect

func (st *State) Connect(name string, fresh bool, calls []string, corpus [][]byte) error

func (*State) Sync

func (st *State) Sync(name string, add [][]byte, del []string) ([][]byte, int, error)

Jump to

Keyboard shortcuts

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