Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
ID int `json:"id"`
Type string `json:"type,omitempty"`
Data map[string]interface{} `json:"-"`
}
Entity represents a stored entity with its data
func (*Entity) MarshalJSON ¶
MarshalJSON implements custom marshaling for Entity
func (*Entity) UnmarshalJSON ¶
UnmarshalJSON implements custom unmarshaling for Entity
type ErrorResponse ¶
type ErrorResponse struct {
Error struct {
Message string `json:"message"`
Status int `json:"status"`
} `json:"error"`
}
ErrorResponse represents an API error response
type GraphEdge ¶
type GraphEdge struct {
From string `json:"from"`
To string `json:"to"`
Relationship string `json:"relationship"`
}
GraphEdge represents an edge in the graph
type GraphNode ¶
type GraphNode struct {
ID string `json:"id"`
Type string `json:"type"`
Properties map[string]interface{} `json:"properties,omitempty"`
}
GraphNode represents a node in the graph
type PagedResponse ¶
type PagedResponse struct {
Data interface{} `json:"data"`
Pagination struct {
Page int `json:"page"`
PerPage int `json:"per_page"`
TotalItems int `json:"total_items"`
TotalPages int `json:"total_pages"`
} `json:"pagination"`
Links map[string]string `json:"links,omitempty"`
}
PagedResponse represents a paginated response
type PaginationParams ¶
PaginationParams represents pagination parameters
type PathInfo ¶
type PathInfo struct {
From string `json:"from"`
To string `json:"to"`
Length int `json:"length"`
Path []interface{} `json:"path"`
}
PathInfo represents a path between two nodes
type Query ¶
type Query struct {
ID string `json:"id"`
QueryString string `json:"query"`
Status string `json:"status"` // pending, running, completed, failed
Result interface{} `json:"result,omitempty"`
Error string `json:"error,omitempty"`
Stats QueryStats `json:"stats"`
ParsedQuery map[string]interface{} `json:"parsed_query,omitempty"`
}
Query represents a stored query with its execution state
type QueryStats ¶
type QueryStats struct {
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time,omitempty"`
Duration float64 `json:"duration,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
QueryStats tracks query execution statistics
type Reference ¶
type Reference struct {
Type string `json:"type"`
Entity string `json:"entity"`
ID int `json:"id"`
}
Reference represents a reference to another entity
func IsReference ¶
IsReference checks if a value is a reference
type ResourceResponse ¶
type ResourceResponse struct {
Type string `json:"type"`
ID string `json:"id,omitempty"`
Data interface{} `json:"data"`
Links interface{} `json:"links,omitempty"`
Meta interface{} `json:"meta,omitempty"`
}
ResourceResponse represents a resource-based response
type SuccessResponse ¶
type SuccessResponse struct {
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
SuccessResponse represents a generic success response