restructure project following best practices
https://go.dev/doc/modules/layout This also enables us to later import just the db interaction part say to the gemini capsule backend go project.
This commit is contained in:
parent
928c82536f
commit
360fedbebe
11 changed files with 202 additions and 169 deletions
|
|
@ -16,7 +16,7 @@ func genBasicAuthHeader(user, password string) string {
|
|||
return fmt.Sprintf("Basic %s", auth)
|
||||
}
|
||||
|
||||
func listGemLogs(config *Config) ([]GemlogListEntry, error) {
|
||||
func ListGemLogs(config *Config) ([]GemlogListEntry, error) {
|
||||
url := fmt.Sprintf("%s:%d/gemlog/_design/gemlog-cli/_view/list", config.CouchDB.Host, config.CouchDB.Port)
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue