schema

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package schema defines the entgo schema types for PeeringDB objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Campus

type Campus struct {
	ent.Schema
}

Campus holds the schema definition for the Campus entity. Maps to the PeeringDB "campus" object type.

func (Campus) Annotations

func (Campus) Annotations() []schema.Annotation

Annotations of the Campus.

func (Campus) Edges

func (Campus) Edges() []ent.Edge

Edges of the Campus.

func (Campus) Fields

func (Campus) Fields() []ent.Field

Fields of the Campus.

func (Campus) Hooks

func (Campus) Hooks() []ent.Hook

Hooks returns Campus mutation hooks for OTel tracing per D-46.

func (Campus) Indexes

func (Campus) Indexes() []ent.Index

Indexes of the Campus.

type Carrier

type Carrier struct {
	ent.Schema
}

Carrier holds the schema definition for the Carrier entity. Maps to the PeeringDB "carrier" object type.

func (Carrier) Annotations

func (Carrier) Annotations() []schema.Annotation

Annotations of the Carrier.

func (Carrier) Edges

func (Carrier) Edges() []ent.Edge

Edges of the Carrier.

func (Carrier) Fields

func (Carrier) Fields() []ent.Field

Fields of the Carrier.

func (Carrier) Hooks

func (Carrier) Hooks() []ent.Hook

Hooks returns Carrier mutation hooks for OTel tracing per D-46.

func (Carrier) Indexes

func (Carrier) Indexes() []ent.Index

Indexes of the Carrier.

type CarrierFacility

type CarrierFacility struct {
	ent.Schema
}

CarrierFacility holds the schema definition for the CarrierFacility entity. Maps to the PeeringDB "carrierfac" object type.

func (CarrierFacility) Annotations

func (CarrierFacility) Annotations() []schema.Annotation

Annotations of the CarrierFacility.

func (CarrierFacility) Edges

func (CarrierFacility) Edges() []ent.Edge

Edges of the CarrierFacility.

func (CarrierFacility) Fields

func (CarrierFacility) Fields() []ent.Field

Fields of the CarrierFacility.

func (CarrierFacility) Hooks

func (CarrierFacility) Hooks() []ent.Hook

Hooks returns CarrierFacility mutation hooks for OTel tracing per D-46.

func (CarrierFacility) Indexes

func (CarrierFacility) Indexes() []ent.Index

Indexes of the CarrierFacility.

type Facility

type Facility struct {
	ent.Schema
}

Facility holds the schema definition for the Facility entity. Maps to the PeeringDB "fac" object type.

func (Facility) Annotations

func (Facility) Annotations() []schema.Annotation

Annotations of the Facility.

func (Facility) Edges

func (Facility) Edges() []ent.Edge

Edges of the Facility.

func (Facility) Fields

func (Facility) Fields() []ent.Field

Fields of the Facility.

func (Facility) Hooks

func (Facility) Hooks() []ent.Hook

Hooks returns Facility mutation hooks for OTel tracing per D-46.

func (Facility) Indexes

func (Facility) Indexes() []ent.Index

Indexes of the Facility.

type InternetExchange

type InternetExchange struct {
	ent.Schema
}

InternetExchange holds the schema definition for the InternetExchange entity. Maps to the PeeringDB "ix" object type.

func (InternetExchange) Annotations

func (InternetExchange) Annotations() []schema.Annotation

Annotations of the InternetExchange.

func (InternetExchange) Edges

func (InternetExchange) Edges() []ent.Edge

Edges of the InternetExchange.

func (InternetExchange) Fields

func (InternetExchange) Fields() []ent.Field

Fields of the InternetExchange.

func (InternetExchange) Hooks

func (InternetExchange) Hooks() []ent.Hook

Hooks returns InternetExchange mutation hooks for OTel tracing per D-46.

func (InternetExchange) Indexes

func (InternetExchange) Indexes() []ent.Index

Indexes of the InternetExchange.

type IxFacility

type IxFacility struct {
	ent.Schema
}

IxFacility holds the schema definition for the IxFacility entity. Maps to the PeeringDB "ixfac" object type.

func (IxFacility) Annotations

func (IxFacility) Annotations() []schema.Annotation

Annotations of the IxFacility.

func (IxFacility) Edges

func (IxFacility) Edges() []ent.Edge

Edges of the IxFacility.

func (IxFacility) Fields

func (IxFacility) Fields() []ent.Field

Fields of the IxFacility.

func (IxFacility) Hooks

func (IxFacility) Hooks() []ent.Hook

Hooks returns IxFacility mutation hooks for OTel tracing per D-46.

func (IxFacility) Indexes

func (IxFacility) Indexes() []ent.Index

Indexes of the IxFacility.

type IxLan

type IxLan struct {
	ent.Schema
}

IxLan holds the schema definition for the IxLan entity. Maps to the PeeringDB "ixlan" object type.

func (IxLan) Annotations

func (IxLan) Annotations() []schema.Annotation

Annotations of the IxLan.

func (IxLan) Edges

func (IxLan) Edges() []ent.Edge

Edges of the IxLan.

func (IxLan) Fields

func (IxLan) Fields() []ent.Field

Fields of the IxLan.

func (IxLan) Hooks

func (IxLan) Hooks() []ent.Hook

Hooks returns IxLan mutation hooks for OTel tracing per D-46.

func (IxLan) Indexes

func (IxLan) Indexes() []ent.Index

Indexes of the IxLan.

type IxPrefix

type IxPrefix struct {
	ent.Schema
}

IxPrefix holds the schema definition for the IxPrefix entity. Maps to the PeeringDB "ixpfx" object type.

func (IxPrefix) Annotations

func (IxPrefix) Annotations() []schema.Annotation

Annotations of the IxPrefix.

func (IxPrefix) Edges

func (IxPrefix) Edges() []ent.Edge

Edges of the IxPrefix.

func (IxPrefix) Fields

func (IxPrefix) Fields() []ent.Field

Fields of the IxPrefix.

func (IxPrefix) Hooks

func (IxPrefix) Hooks() []ent.Hook

Hooks returns IxPrefix mutation hooks for OTel tracing per D-46.

func (IxPrefix) Indexes

func (IxPrefix) Indexes() []ent.Index

Indexes of the IxPrefix.

type Network

type Network struct {
	ent.Schema
}

Network holds the schema definition for the Network entity. Maps to the PeeringDB "net" object type.

func (Network) Annotations

func (Network) Annotations() []schema.Annotation

Annotations of the Network.

func (Network) Edges

func (Network) Edges() []ent.Edge

Edges of the Network.

func (Network) Fields

func (Network) Fields() []ent.Field

Fields of the Network.

func (Network) Hooks

func (Network) Hooks() []ent.Hook

Hooks returns Network mutation hooks for OTel tracing per D-46.

func (Network) Indexes

func (Network) Indexes() []ent.Index

Indexes of the Network.

type NetworkFacility

type NetworkFacility struct {
	ent.Schema
}

NetworkFacility holds the schema definition for the NetworkFacility entity. Maps to the PeeringDB "netfac" object type.

func (NetworkFacility) Annotations

func (NetworkFacility) Annotations() []schema.Annotation

Annotations of the NetworkFacility.

func (NetworkFacility) Edges

func (NetworkFacility) Edges() []ent.Edge

Edges of the NetworkFacility.

func (NetworkFacility) Fields

func (NetworkFacility) Fields() []ent.Field

Fields of the NetworkFacility.

func (NetworkFacility) Hooks

func (NetworkFacility) Hooks() []ent.Hook

Hooks returns NetworkFacility mutation hooks for OTel tracing per D-46.

func (NetworkFacility) Indexes

func (NetworkFacility) Indexes() []ent.Index

Indexes of the NetworkFacility.

type NetworkIxLan

type NetworkIxLan struct {
	ent.Schema
}

NetworkIxLan holds the schema definition for the NetworkIxLan entity. Maps to the PeeringDB "netixlan" object type.

func (NetworkIxLan) Annotations

func (NetworkIxLan) Annotations() []schema.Annotation

Annotations of the NetworkIxLan.

func (NetworkIxLan) Edges

func (NetworkIxLan) Edges() []ent.Edge

Edges of the NetworkIxLan.

func (NetworkIxLan) Fields

func (NetworkIxLan) Fields() []ent.Field

Fields of the NetworkIxLan.

func (NetworkIxLan) Hooks

func (NetworkIxLan) Hooks() []ent.Hook

Hooks returns NetworkIxLan mutation hooks for OTel tracing per D-46.

func (NetworkIxLan) Indexes

func (NetworkIxLan) Indexes() []ent.Index

Indexes of the NetworkIxLan.

type Organization

type Organization struct {
	ent.Schema
}

Organization holds the schema definition for the Organization entity. Maps to the PeeringDB "org" object type.

func (Organization) Annotations

func (Organization) Annotations() []schema.Annotation

Annotations of the Organization.

func (Organization) Edges

func (Organization) Edges() []ent.Edge

Edges of the Organization.

func (Organization) Fields

func (Organization) Fields() []ent.Field

Fields of the Organization.

func (Organization) Hooks

func (Organization) Hooks() []ent.Hook

Hooks returns Organization mutation hooks for OTel tracing per D-46.

func (Organization) Indexes

func (Organization) Indexes() []ent.Index

Indexes of the Organization.

type Poc

type Poc struct {
	ent.Schema
}

Poc holds the schema definition for the Poc entity. Maps to the PeeringDB "poc" object type.

func (Poc) Annotations

func (Poc) Annotations() []schema.Annotation

Annotations of the Poc.

func (Poc) Edges

func (Poc) Edges() []ent.Edge

Edges of the Poc.

func (Poc) Fields

func (Poc) Fields() []ent.Field

Fields of the Poc.

func (Poc) Hooks

func (Poc) Hooks() []ent.Hook

Hooks returns Poc mutation hooks for OTel tracing per D-46.

func (Poc) Indexes

func (Poc) Indexes() []ent.Index

Indexes of the Poc.

type SocialMedia

type SocialMedia struct {
	Service    string `json:"service"`
	Identifier string `json:"identifier"`
}

SocialMedia represents a social media link from PeeringDB. Used by Organization, Network, Facility, InternetExchange, Carrier, and Campus schemas.

Jump to

Keyboard shortcuts

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