Skip to content

Commit

Permalink
feat: create new structs for application and network configurations
Browse files Browse the repository at this point in the history
- Add a new file `app.go` in the `app/infra/configx` directory
- Define the `Application` struct with a `Networks` field
- Define the `Network` struct with a `Name` field

Signed-off-by: Sean Zheng <[email protected]>
  • Loading branch information
blackhorseya committed Jul 26, 2024
1 parent ce359ca commit f895e9d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/infra/configx/app.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package configx

// Application is the application configuration
type Application struct {
Networks map[string]*Network `json:"networks" yaml:"networks"`
}

// Network is the network configuration
type Network struct {
Name string `json:"name" yaml:"name"`
}

0 comments on commit f895e9d

Please sign in to comment.