tracer

package
v0.0.0-...-1b8f739 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2016 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func EdgeMessage

func EdgeMessage(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId string, dir MessageDir, s string)

func EdgeUpdate

func EdgeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId, s string)

func Log

func Log(gid graph.GraphID, aid graph.AlgorithmID, id, s string)

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func NewGRPCDisplayClient

func NewGRPCDisplayClient(addr string, os ...grpc.DialOption) (traceDisplay, error)

func NewGRPCServer

func NewGRPCServer(onward traceDisplay) pb.TraceServiceServer

func NewHTTPDisplay

func NewHTTPDisplay(mux *http.ServeMux, onRun func()) traceDisplay

func NewLogDisplay

func NewLogDisplay(w io.Writer) traceDisplay

func NodeUpdate

func NodeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, s string)

func RegisterTraceServiceServer

func RegisterTraceServiceServer(gs *grpc.Server, server pb.TraceServiceServer)

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

type MessageDir

type MessageDir pb.EdgeMessageRequest_Dir

func (MessageDir) String

func (m MessageDir) String() string

type Tracer

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

func New

func New(td traceDisplay) *Tracer

func (*Tracer) EdgeMessage

func (t *Tracer) EdgeMessage(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId string, dir MessageDir, str string)

func (*Tracer) EdgeUpdate

func (t *Tracer) EdgeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId, s string)

func (*Tracer) Log

func (t *Tracer) Log(gid graph.GraphID, aid graph.AlgorithmID, id, s string)

func (*Tracer) NodeUpdate

func (t *Tracer) NodeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, s string)

Directories

Path Synopsis
internal
proto
Package proto describes the RPC interface to tracer, it should not be used directly, but via the tracer package
Package proto describes the RPC interface to tracer, it should not be used directly, but via the tracer package

Jump to

Keyboard shortcuts

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