points

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DirectionUp    = Directions.Register("UP", "Upward.")
	DirectionDown  = Directions.Register("DOWN", "Downward.")
	DirectionLeft  = Directions.Register("LEFT", "Leftward.")
	DirectionRight = Directions.Register("RIGHT", "Rightward.")
	DirectionInert = Directions.Register("INERT", "No direction.")
)
View Source
var Directions = dagql.NewEnum[Direction]()

Functions

func Install

func Install[R dagql.Typed](srv *dagql.Server)

Types

type Direction

type Direction string

func (Direction) Decoder

func (Direction) Decoder() dagql.InputDecoder

func (Direction) ToLiteral

func (d Direction) ToLiteral() call.Literal

func (Direction) Type

func (Direction) Type() *ast.Type

func (Direction) TypeDescription

func (Direction) TypeDescription() string

type Line

type Line struct {
	From *Point `field:"true"`
	To   *Point `field:"true"`
}

func (*Line) Type

func (*Line) Type() *ast.Type

func (*Line) TypeDescription

func (*Line) TypeDescription() string

type Point

type Point struct {
	X int `field:"true"`
	Y int `field:"true"`
}

func (*Point) Type

func (*Point) Type() *ast.Type

func (*Point) TypeDescription

func (*Point) TypeDescription() string

Jump to

Keyboard shortcuts

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