web

package
v0.0.0-...-af33e7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2023 License: BSD-3-Clause, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package web interface for goneo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(appCtx context.Context, addr string, rootHandler http.Handler)

func NewGoneoServer

func NewGoneoServer(db goneodb.DatabaseService) http.Handler

func Serve

func Serve(ctx context.Context, addr string, handler http.Handler)

Types

type ErrorResponse

type ErrorResponse struct {
	Message    string
	Exception  string
	FullName   string `json:"Fullname"`
	Stacktrace []string
}

ErrorResponse is a representation of an error condition

type NodeResponse

type NodeResponse struct {
	Self                  string
	Property              string
	Properties            string
	Data                  map[string]string
	Labels                string
	OutgoingRelationships string `json:"Outgoing_Relationships"`
	IncomingRelationships string `json:"Incoming_Relationships"`
}

NodeResponse is a representation of a node

type RelationshipResponse

type RelationshipResponse struct {
	Start      string
	Data       map[string]string
	Self       string
	Property   string
	Properties string
	Type       string
	End        string
}

RelationshipResponse is a representation of a relationship

Notes

Bugs

  • createNodeHandler can not create nodes with labels

  • re-packaging result table into graph misses rel properties

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL