Documentation ¶
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func EdgeMessage(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId string, dir MessageDir, ...)
- func EdgeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId, s string)
- func Log(gid graph.GraphID, aid graph.AlgorithmID, id, s string)
- func MustAsset(name string) []byte
- func NewGRPCDisplayClient(addr string, os ...grpc.DialOption) (traceDisplay, error)
- func NewGRPCServer(onward traceDisplay) pb.TraceServiceServer
- func NewHTTPDisplay(mux *http.ServeMux, onRun func()) traceDisplay
- func NewLogDisplay(w io.Writer) traceDisplay
- func NodeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, s string)
- func RegisterTraceServiceServer(gs *grpc.Server, server pb.TraceServiceServer)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type MessageDir
- type Tracer
- func (t *Tracer) EdgeMessage(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId string, dir MessageDir, ...)
- func (t *Tracer) EdgeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId, s string)
- func (t *Tracer) Log(gid graph.GraphID, aid graph.AlgorithmID, id, s string)
- func (t *Tracer) NodeUpdate(gid graph.GraphID, aid graph.AlgorithmID, id, s string)
Constants ¶
This section is empty.
Variables ¶
var ( DefaultTracer *Tracer EMDirIN MessageDir = MessageDir(pb.EdgeMessageRequest_IN) EMDirOUT MessageDir = MessageDir(pb.EdgeMessageRequest_OUT) EMDirQUEUE MessageDir = MessageDir(pb.EdgeMessageRequest_QUEUE) )
Functions ¶
func Asset ¶
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 ¶
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 ¶
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 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 MustAsset ¶
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 NewLogDisplay ¶
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 ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
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 (*Tracer) EdgeMessage ¶
func (t *Tracer) EdgeMessage(gid graph.GraphID, aid graph.AlgorithmID, id, edgeId string, dir MessageDir, str string)