Skip to content

When to implement service.go and connection_config.go? #371

Answered by e-gineer
51stpage asked this question in FAQ
Discussion options

You must be logged in to vote

It really depends on the complexity of the plugin. We commonly use those files in more complex plugins for:

  • connection_config.go defines the connection options, e.g. token or regions or similar.
  • service.go breaks out service connection setup code, rather than simpler plugins that keep it in utils.go.

It's really up to the plugin on the best way to arrange these internal files, but our turbot/steampipe-plugin-* code is definitely good as examples, and should be fairly consistent.

Hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 51stpage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants