Small code refactoring. Added more comments and parseToNode func

This commit is contained in:
Milos Gajdos
2019-06-13 23:28:47 +02:00
parent 6a33b7576b
commit 322eaae529
7 changed files with 64 additions and 52 deletions

View File

@@ -13,16 +13,16 @@ var (
type AddPolicy int
const (
// Override overrides existing routing table route
// OverrideIfExists overrides route if it already exists
OverrideIfExists AddPolicy = iota
// IgnoreIfExists does not add new route
// IgnoreIfExists does not modify existing route
IgnoreIfExists
)
// RouteOption is used to define routing table entry options
// RouteOption is used to set routing table entry options
type RouteOption func(*RouteOptions)
// RouteOptions defines micro network routing table route options
// RouteOptions are route options
type RouteOptions struct {
// DestAddr is destination address
DestAddr string