-
Notifications
You must be signed in to change notification settings - Fork 19
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
WIP: crate: Added Ping method #18
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: John Andersen <[email protected]>
Hello, @pdxjohnny! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information. |
crate.go
Outdated
@@ -33,6 +35,14 @@ func (c *CrateDriver) Open(crate_url string) (driver.Conn, error) { | |||
return c, nil | |||
} | |||
|
|||
func (c *CrateDriver) Ping(ctx context.Context) error { |
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.
exported method CrateDriver.Ping should have comment or be unexported
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.
oooooo fancy
Signed-off-by: John Andersen <[email protected]>
crate.go
Outdated
) | ||
|
||
// Crate conn structure | ||
type CrateDriver struct { | ||
Url string // Crate http endpoint url | ||
Url string // Crate http endpoint url |
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.
struct field Url should be URL
crate: For sql.Open the URL now accepts query parameters. So far these are time.Duration formatted values for the http client's Timeout and KeepAlive parameters. Signed-off-by: John Andersen <[email protected]>
Signed-off-by: John Andersen <[email protected]>
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/herenow/go-crate/pulls/18. |
Signed-off-by: John Andersen [email protected]