rpctype

package
v0.0.0-...-d8ff00b Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rpctype contains types of message passed via net/rpc connections between various parts of the system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RpcCall

func RpcCall(addr, method string, args, reply interface{}) error

Types

type CheckArgs

type CheckArgs struct {
	Name           string
	Kcov           bool
	Leak           bool
	Fault          bool
	UserNamespaces bool
	Calls          []string
}

type ConnectArgs

type ConnectArgs struct {
	Name string
}

type ConnectRes

type ConnectRes struct {
	Prios        [][]float32
	Inputs       []RpcInput
	MaxSignal    []uint32
	Candidates   []RpcCandidate
	EnabledCalls string
	NeedCheck    bool
}

type HubConnectArgs

type HubConnectArgs struct {
	Name   string
	Key    string
	Fresh  bool
	Calls  []string
	Corpus [][]byte
}

type HubSyncArgs

type HubSyncArgs struct {
	Name string
	Key  string
	Add  [][]byte
	Del  []string
}

type HubSyncRes

type HubSyncRes struct {
	Inputs [][]byte
	More   int
}

type NewInputArgs

type NewInputArgs struct {
	Name string
	RpcInput
}

type PollArgs

type PollArgs struct {
	Name      string
	MaxSignal []uint32
	Stats     map[string]uint64
}

type PollRes

type PollRes struct {
	Candidates []RpcCandidate
	NewInputs  []RpcInput
	MaxSignal  []uint32
}

type RpcCandidate

type RpcCandidate struct {
	Prog      []byte
	Minimized bool
}

type RpcClient

type RpcClient struct {
	// contains filtered or unexported fields
}

func NewRpcClient

func NewRpcClient(addr string) (*RpcClient, error)

func (*RpcClient) Call

func (cli *RpcClient) Call(method string, args, reply interface{}) error

func (*RpcClient) Close

func (cli *RpcClient) Close()

type RpcInput

type RpcInput struct {
	Call      string
	Prog      []byte
	CallIndex int
	Signal    []uint32
	Cover     []uint32
}

type RpcServer

type RpcServer struct {
	// contains filtered or unexported fields
}

func NewRpcServer

func NewRpcServer(addr string, receiver interface{}) (*RpcServer, error)

func (*RpcServer) Addr

func (serv *RpcServer) Addr() net.Addr

func (*RpcServer) Serve

func (serv *RpcServer) Serve()

Jump to

Keyboard shortcuts

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