-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sideload node and service #1637
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple minor things. 💯
sideload.go
Outdated
bufferPool *bufpool.Pool | ||
} | ||
|
||
// Create a new SideloadNode which shifts points and batches in time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which shifts points and batches in time.
Is this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope,:)
sideload.go
Outdated
order: make([]string, len(n.OrderList)), | ||
orderTmpls: make([]orderTmpl, len(n.OrderList)), | ||
} | ||
u, err := url.Parse(n.Source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should lines 40-49 go into the et.tm.SideloadService.Source method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would make more sense.
} | ||
n.order[i] = p | ||
} | ||
if len(n.s.Fields) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sucks that the logic for fields and tags can't be pulled into a common method without adding reflection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:(
aac1a45
to
3499cfe
Compare
3499cfe
to
216b381
Compare
Add sideload node and service
Adds a sideload node that acts similar to the default node but allows the data to be loaded from external sources.
TODO
{tag}
syntax.