WithName sets the name of the vertex. The name is useful for debugging.
(name string)
| 8 | |
| 9 | // WithName sets the name of the vertex. The name is useful for debugging. |
| 10 | func WithName(name string) VertexOption { |
| 11 | return func(vertex *vertex) { |
| 12 | vertex.name = name |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | // WithLogger sets the logger for the vertex. The logger can be set to arbitrary |
| 17 | // log level before passing in. |
no outgoing calls