Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilGraph when a nil graph is defined. ErrNilGraph = errors.New("nil graph") // ErrInvalidStorage when no storage configuration is given, or // something within the configuration is invalid. ErrInvalidStorage = errors.New("invalid storage") // ErrAlreadyDefined when a graph is defined more than once. ErrAlreadyDefined = errors.New("already defined") // ErrInvalidGraphType when the graph type contains invalid // characters or is the empty string. ErrInvalidGraphType = errors.New("invalid graph type") // ErrInvalidNamespace when invalid characters appear in the namespace // or the namespace is the empty string. ErrInvalidNamespace = errors.New("invalid namespace") )
Functions ¶
func LookupGraph ¶
func LookupGraph(graphType string) (*graph.Definition, bool)
LookupGraph definition that was previously registered.
func RegisterGraph ¶
RegisterGraph of the given graph type.
func RegisterMsg ¶
func RegisterMsg(v interface{}) error
RegisterMsg where v is a non-pointer protobuf message type.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for graphs.
func (*Client) TerminateGraph ¶
TerminateGraph of the given type and name.
func (*Client) Watch ¶
func (c *Client) Watch(ctx context.Context) ([]*registry.WatchEvent, <-chan *registry.WatchEvent, error)
Watch for graph registration and other lifecycle events.
Directories
¶
Path | Synopsis |
---|---|
example
|
|
batch
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
events
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
lazyipsum
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
sessions
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
wordcount
Package main is a generated protocol buffer package.
|
Package main is a generated protocol buffer package. |
internal
|
|
codec/protomessage
Package protomessage is a generated protocol buffer package.
|
Package protomessage is a generated protocol buffer package. |
msg
Package msg is a generated protocol buffer package.
|
Package msg is a generated protocol buffer package. |
jsonfile
Package jsonfile is a generated protocol buffer package.
|
Package jsonfile is a generated protocol buffer package. |
linefile
Package linefile is a generated protocol buffer package.
|
Package linefile is a generated protocol buffer package. |
primitives
Package primitives is a generated protocol buffer package.
|
Package primitives is a generated protocol buffer package. |
driver/badgerdriver
Package badgerdriver is a generated protocol buffer package.
|
Package badgerdriver is a generated protocol buffer package. |
driver/bigtabledriver
Package bigtabledriver is a generated protocol buffer package.
|
Package bigtabledriver is a generated protocol buffer package. |
driver/boltdriver
Package boltdriver is a generated protocol buffer package.
|
Package boltdriver is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.