48 lines
1.0 KiB
Go
48 lines
1.0 KiB
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
// "encoding/json"
|
|
// "fmt"
|
|
//"io"
|
|
// "log"
|
|
"net/http"
|
|
// "os"
|
|
// "os/signal"
|
|
//"strings"
|
|
// "sync"
|
|
// "time"
|
|
// "github.com/gorilla/mux"
|
|
"github.com/neo4j/neo4j-go-driver/v5/neo4j"
|
|
)
|
|
|
|
func create_new_post(driver neo4j.DriverWithContext, driver_ctx context.Context) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
return
|
|
}
|
|
}
|
|
|
|
func retrieve_all_posts(driver neo4j.DriverWithContext, driver_ctx context.Context) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
return
|
|
}
|
|
}
|
|
|
|
func retrieve_post(driver neo4j.DriverWithContext, driver_ctx context.Context) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
return
|
|
}
|
|
}
|
|
|
|
func update_post(driver neo4j.DriverWithContext, driver_ctx context.Context) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
return
|
|
}
|
|
}
|
|
|
|
func delete_post(driver neo4j.DriverWithContext, driver_ctx context.Context) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
return
|
|
}
|
|
}
|