route

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	Weight uint8    `json:"weight,omitempty"`
	Pairs  []uint16 `json:"pairs,omitempty"`
}

func (*Path) DecodeMtg

func (p *Path) DecodeMtg(dec *mtgpack.Decoder) error

func (Path) EncodeMtg

func (p Path) EncodeMtg(enc *mtgpack.Encoder) error

func (Path) Share

func (p Path) Share() decimal.Decimal

func (Path) String

func (p Path) String() string

type Paths

type Paths []Path

func Single

func Single(ids ...uint16) Paths

func (*Paths) DecodeMtg

func (p *Paths) DecodeMtg(dec *mtgpack.Decoder) error

func (Paths) EncodeMtg

func (p Paths) EncodeMtg(enc *mtgpack.Encoder) error

func (Paths) String

func (p Paths) String() string

Jump to

Keyboard shortcuts

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