mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
implement /index endpoint (#1630)
* implement /index endpoint * rename to Module to Path
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package config
|
||||
|
||||
// Postgres config
|
||||
type Postgres struct {
|
||||
Host string `validate:"required" envconfig:"ATHENS_INDEX_POSTGRES_HOST"`
|
||||
Port int `validate:"required" envconfig:"ATHENS_INDEX_POSTGRES_PORT"`
|
||||
User string `validate:"required" envconfig:"ATHENS_INDEX_POSTGRES_USER"`
|
||||
Password string `validate:"" envconfig:"ATHENS_INDEX_POSTGRES_PASSWORD"`
|
||||
Database string `validate:"required" envconfig:"ATHENS_INDEX_POSTGRES_DATABASE"`
|
||||
Params map[string]string `validate:"required" envconfig:"ATHENS_INDEX_POSTGRES_PARAMS"`
|
||||
}
|
||||
Reference in New Issue
Block a user