jsonapi

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2024 Louis Royer and the NextMN-SRv6-ctrl contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackboneIP

type BackboneIP struct {
	netip.Addr
}

func (*BackboneIP) UnmarshalText

func (b *BackboneIP) UnmarshalText(text []byte) error

type ControlURI

type ControlURI struct {
	url.URL
}

func (ControlURI) MarshalJSON

func (u ControlURI) MarshalJSON() ([]byte, error)

func (*ControlURI) UnmarshalText

func (u *ControlURI) UnmarshalText(text []byte) error

type Locator

type Locator struct {
	netip.Prefix
}

func (Locator) Overlaps

func (l Locator) Overlaps(o Locator) bool

func (*Locator) UnmarshalText

func (l *Locator) UnmarshalText(text []byte) error

type Router

type Router struct {
	Locator  Locator    `json:"locator"`  // locator (ipv6 prefix)
	Backbone BackboneIP `json:"backbone"` // data plane backbone ipv6 address
	Control  ControlURI `json:"control"`  // url used for control
}

type RouterMap

type RouterMap map[uuid.UUID]Router

Jump to

Keyboard shortcuts

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