Skip to content

Database groups#23

Open
langbeinmovio wants to merge 6 commits into
marianogappa:masterfrom
langbeinmovio:database-groups
Open

Database groups#23
langbeinmovio wants to merge 6 commits into
marianogappa:masterfrom
langbeinmovio:database-groups

Conversation

@langbeinmovio
Copy link
Copy Markdown

Main feature: configure groups of databases, include/exclude groups of database. See updated README for usage.

Other changes:

  • configure maximum number of concurrent requests via same AppServer
  • update dependencies in build docker container
  • fix build status on README

Copy link
Copy Markdown
Owner

@marianogappa marianogappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Thanks for contributing! 👍 How about keeping the camelCase for the JSON? I added suggestions for how to do it in the struct, but will require changes on the example. Otherwise do merge it.

Comment thread config.go
const DefaultMaxAppServerConnections = 5

type settings struct {
MaxAppServerConnections int64
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MaxAppServerConnections int64
MaxAppServerConnections int64 `json:"maxAppServerConnections"`

Comment thread config.go

type settings struct {
MaxAppServerConnections int64
Databases map[string]database
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Databases map[string]database
Databases map[string]database `json:"databases"`

Comment thread config.go
type settings struct {
MaxAppServerConnections int64
Databases map[string]database
DatabaseGroups map[string][]string
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DatabaseGroups map[string][]string
DatabaseGroups map[string][]string `json:"databaseGroups"`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants