models

package
v0.0.0-...-86323e0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMap

func AddMap(node NodeRecv) func(m store.Map) (store.Map, error)

AddMap adds new node does not not realign missing ids

func DelMap

func DelMap(node NodeRecv) func(m store.Map) (store.Map, error)

DelMap only uses node.ID and WILL ignore the other fields retains the id numbers; there could have missing numbers

func SetMap

func SetMap(node NodeRecv) func(m store.Map) (store.Map, error)

Types

type NodeRecv

type NodeRecv struct {
	Action string  `json:"action"`
	ID     int     `json:"id"`
	X      float32 `json:"x"`
	Y      float32 `json:"y"`
	Type   string  `json:"type"`
}

Jump to

Keyboard shortcuts

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