This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "DOCUMENTATION", | |
"description": "", | |
"termsOfService": "YOUR_TERMS_OF_SERVICE_URL", | |
"license": { | |
"name": "Apache 2.0", | |
"url": "https://www.apache.org/licenses/LICENSE-2.0.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// domain/product_api.go | |
package domain | |
type ProductAPI interface { | |
ProductList() (domain.ProductList, error) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"example.com/dingo_example" | |
"example.com/dingo_example/interfaces" | |
"flamingo.me/dingo" | |
"log" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package infrastructure | |
import ( | |
"encoding/json" | |
"example.com/dingo_example/domain" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interfaces | |
import ( | |
"example.com/dingo_example/infrastructure" | |
"log" | |
) | |
type AppController struct { | |
productAPI infrastructure.ProductAPI | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dingo_example | |
import ( | |
"example.com/dingo_example/infrastructure" | |
"example.com/dingo_example/interfaces" | |
"flamingo.me/dingo" | |
) | |
const ProductApiUrl = "https://my-product-api.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dingo_example | |
import ( | |
"example.com/dingo_example/infrastructure" | |
"example.com/dingo_example/interfaces" | |
) | |
const ProductApi = "https://my-product-api.com" | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package interfaces | |
import ( | |
"example.com/dingo_example/infrastructure" | |
"log" | |
) | |
type AppController struct { | |
productAPI infrastructure.ProductAPI | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package infrastructure | |
import ( | |
"encoding/json" | |
"example.com/dingo_example/domain" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// domain/product_list.go | |
package domain | |
type ProductList []Product |
NewerOlder