INNER CODE UNIT · Go

destory

aliez-ren/mongood · go/main.go:88

func destory() {
	clients.Range(func(k, v interface{}) bool {
		v.(*mongo.Client).Disconnect(ctx)
		return true
	})
}

func listConnections(w http.ResponseWriter, r *http.Request) {
	opts := os.Getenv("MONGO_URIS")
	if opts == "" {
		opts = "[]"
	}
	w.Header().Set("Content-Type", "application/json")
	w.Write([]byte(opts))
}

type HTMLDir struct {
	d http.FileSystem

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…