You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
374 B
18 lines
374 B
2 years ago
|
package clientserver
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
"net/http"
|
||
|
customtypes "sample-choose-ad/cmd/custom_types"
|
||
|
)
|
||
|
|
||
|
func StartServer(port string, partners []customtypes.PartnersAddress) {
|
||
|
|
||
|
http.HandleFunc("/placements/request", handleRequest(partners))
|
||
|
// http.HandleFunc("/placements/request", decorate(test2))
|
||
|
|
||
|
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%v", port), nil))
|
||
|
|
||
|
}
|