Documentation
¶
Index ¶
- Variables
- func AnyOf(s *Source, choices []string) (string, error)
- func Bool(s *Source) (bool, error)
- func Datetime(s *Source) (time.Time, error)
- func Duration(s *Source) (time.Duration, error)
- func EOF(s *Source) error
- func Float(s *Source) (float64, error)
- func Float32(s *Source) (float32, error)
- func IlluminateObjective(s *Source) (string, error)
- func Integer(s *Source) (int, error)
- func Objective(s *Source) (string, error)
- func String(s *Source) (string, error)
- func Validate(input string) error
- func Value(s *Source) (any, error)
- func Verb(s *Source) (string, error)
- type AddEdge
- type DeleteEdge
- type DeleteVertex
- type GetEdge
- type GetVertex
- type Illuminate
- type PutEdge
- type PutVertex
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Verbs = []string{ "get", "put", "add", "delete", "illuminate", "exit", } Objectives = []string{ "vertex", "edge", } IlluminateObjectives = []string{ "neighbor", "spt_relevance", "spt_cost", "mst_relevance", "mst_cost", } ErrNotFound = errors.New("not found") ErrNotEOF = errors.New("not EOF") )
View Source
var (
ErrOutOfIndex = errors.New("out of index")
)
View Source
var ErrParse = errors.New("parse error")
Functions ¶
func IlluminateObjective ¶
Types ¶
type AddEdge ¶
func AddEdgeParam ¶
type DeleteEdge ¶
func DeleteEdgeParam ¶
func DeleteEdgeParam(s *Source) (*DeleteEdge, error)
type DeleteVertex ¶
type DeleteVertex struct {
Key string
}
func DeleteVertexParam ¶
func DeleteVertexParam(s *Source) (*DeleteVertex, error)
type GetEdge ¶
func GetEdgeParam ¶
type Illuminate ¶
func IlluminateParam ¶
func IlluminateParam(s *Source) (*Illuminate, error)
type PutEdge ¶
func PutEdgeParam ¶
type PutVertex ¶
func PutVertexParam ¶
Click to show internal directories.
Click to hide internal directories.