daemon

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinkType_name = map[int32]string{
		0: "LINK_TYPE_UNSPECIFIED",
		1: "LINK_TYPE_DIRECT",
		2: "LINK_TYPE_MULTI_HOP",
		3: "LINK_TYPE_OPEN_NET",
	}
	LinkType_value = map[string]int32{
		"LINK_TYPE_UNSPECIFIED": 0,
		"LINK_TYPE_DIRECT":      1,
		"LINK_TYPE_MULTI_HOP":   2,
		"LINK_TYPE_OPEN_NET":    3,
	}
)

Enum value maps for LinkType.

View Source
var File_proto_daemon_v1_daemon_proto protoreflect.FileDescriptor

Functions

func RegisterDaemonServiceServer

func RegisterDaemonServiceServer(s *grpc.Server, srv DaemonServiceServer)

Types

type ASRequest

type ASRequest struct {
	IsdAs uint64 `protobuf:"varint,1,opt,name=isd_as,json=isdAs,proto3" json:"isd_as,omitempty"`
	// contains filtered or unexported fields
}

func (*ASRequest) Descriptor deprecated

func (*ASRequest) Descriptor() ([]byte, []int)

Deprecated: Use ASRequest.ProtoReflect.Descriptor instead.

func (*ASRequest) GetIsdAs

func (x *ASRequest) GetIsdAs() uint64

func (*ASRequest) ProtoMessage

func (*ASRequest) ProtoMessage()

func (*ASRequest) ProtoReflect

func (x *ASRequest) ProtoReflect() protoreflect.Message

func (*ASRequest) Reset

func (x *ASRequest) Reset()

func (*ASRequest) String

func (x *ASRequest) String() string

type ASResponse

type ASResponse struct {
	IsdAs uint64 `protobuf:"varint,1,opt,name=isd_as,json=isdAs,proto3" json:"isd_as,omitempty"`
	Core  bool   `protobuf:"varint,2,opt,name=core,proto3" json:"core,omitempty"`
	Mtu   uint32 `protobuf:"varint,3,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// contains filtered or unexported fields
}

func (*ASResponse) Descriptor deprecated

func (*ASResponse) Descriptor() ([]byte, []int)

Deprecated: Use ASResponse.ProtoReflect.Descriptor instead.

func (*ASResponse) GetCore

func (x *ASResponse) GetCore() bool

func (*ASResponse) GetIsdAs

func (x *ASResponse) GetIsdAs() uint64

func (*ASResponse) GetMtu

func (x *ASResponse) GetMtu() uint32

func (*ASResponse) ProtoMessage

func (*ASResponse) ProtoMessage()

func (*ASResponse) ProtoReflect

func (x *ASResponse) ProtoReflect() protoreflect.Message

func (*ASResponse) Reset

func (x *ASResponse) Reset()

func (*ASResponse) String

func (x *ASResponse) String() string

type DaemonServiceClient

type DaemonServiceClient interface {
	Paths(ctx context.Context, in *PathsRequest, opts ...grpc.CallOption) (*PathsResponse, error)
	AS(ctx context.Context, in *ASRequest, opts ...grpc.CallOption) (*ASResponse, error)
	Interfaces(ctx context.Context, in *InterfacesRequest, opts ...grpc.CallOption) (*InterfacesResponse, error)
	Services(ctx context.Context, in *ServicesRequest, opts ...grpc.CallOption) (*ServicesResponse, error)
	NotifyInterfaceDown(ctx context.Context, in *NotifyInterfaceDownRequest, opts ...grpc.CallOption) (*NotifyInterfaceDownResponse, error)
}

DaemonServiceClient is the client API for DaemonService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DaemonServiceServer

DaemonServiceServer is the server API for DaemonService service.

type GeoCoordinates

type GeoCoordinates struct {
	Latitude  float32 `protobuf:"fixed32,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude float32 `protobuf:"fixed32,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Address   string  `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*GeoCoordinates) Descriptor deprecated

func (*GeoCoordinates) Descriptor() ([]byte, []int)

Deprecated: Use GeoCoordinates.ProtoReflect.Descriptor instead.

func (*GeoCoordinates) GetAddress

func (x *GeoCoordinates) GetAddress() string

func (*GeoCoordinates) GetLatitude

func (x *GeoCoordinates) GetLatitude() float32

func (*GeoCoordinates) GetLongitude

func (x *GeoCoordinates) GetLongitude() float32

func (*GeoCoordinates) ProtoMessage

func (*GeoCoordinates) ProtoMessage()

func (*GeoCoordinates) ProtoReflect

func (x *GeoCoordinates) ProtoReflect() protoreflect.Message

func (*GeoCoordinates) Reset

func (x *GeoCoordinates) Reset()

func (*GeoCoordinates) String

func (x *GeoCoordinates) String() string

type Interface

type Interface struct {
	Address *Underlay `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Interface) Descriptor deprecated

func (*Interface) Descriptor() ([]byte, []int)

Deprecated: Use Interface.ProtoReflect.Descriptor instead.

func (*Interface) GetAddress

func (x *Interface) GetAddress() *Underlay

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect

func (x *Interface) ProtoReflect() protoreflect.Message

func (*Interface) Reset

func (x *Interface) Reset()

func (*Interface) String

func (x *Interface) String() string

type InterfacesRequest

type InterfacesRequest struct {
	// contains filtered or unexported fields
}

func (*InterfacesRequest) Descriptor deprecated

func (*InterfacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use InterfacesRequest.ProtoReflect.Descriptor instead.

func (*InterfacesRequest) ProtoMessage

func (*InterfacesRequest) ProtoMessage()

func (*InterfacesRequest) ProtoReflect

func (x *InterfacesRequest) ProtoReflect() protoreflect.Message

func (*InterfacesRequest) Reset

func (x *InterfacesRequest) Reset()

func (*InterfacesRequest) String

func (x *InterfacesRequest) String() string

type InterfacesResponse

type InterfacesResponse struct {
	Interfaces map[uint64]*Interface `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*InterfacesResponse) Descriptor deprecated

func (*InterfacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use InterfacesResponse.ProtoReflect.Descriptor instead.

func (*InterfacesResponse) GetInterfaces

func (x *InterfacesResponse) GetInterfaces() map[uint64]*Interface

func (*InterfacesResponse) ProtoMessage

func (*InterfacesResponse) ProtoMessage()

func (*InterfacesResponse) ProtoReflect

func (x *InterfacesResponse) ProtoReflect() protoreflect.Message

func (*InterfacesResponse) Reset

func (x *InterfacesResponse) Reset()

func (*InterfacesResponse) String

func (x *InterfacesResponse) String() string

type LinkType

type LinkType int32
const (
	LinkType_LINK_TYPE_UNSPECIFIED LinkType = 0
	LinkType_LINK_TYPE_DIRECT      LinkType = 1
	LinkType_LINK_TYPE_MULTI_HOP   LinkType = 2
	LinkType_LINK_TYPE_OPEN_NET    LinkType = 3
)

func (LinkType) Descriptor

func (LinkType) Descriptor() protoreflect.EnumDescriptor

func (LinkType) Enum

func (x LinkType) Enum() *LinkType

func (LinkType) EnumDescriptor deprecated

func (LinkType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LinkType.Descriptor instead.

func (LinkType) Number

func (x LinkType) Number() protoreflect.EnumNumber

func (LinkType) String

func (x LinkType) String() string

func (LinkType) Type

type ListService

type ListService struct {
	Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	// contains filtered or unexported fields
}

func (*ListService) Descriptor deprecated

func (*ListService) Descriptor() ([]byte, []int)

Deprecated: Use ListService.ProtoReflect.Descriptor instead.

func (*ListService) GetServices

func (x *ListService) GetServices() []*Service

func (*ListService) ProtoMessage

func (*ListService) ProtoMessage()

func (*ListService) ProtoReflect

func (x *ListService) ProtoReflect() protoreflect.Message

func (*ListService) Reset

func (x *ListService) Reset()

func (*ListService) String

func (x *ListService) String() string

type NotifyInterfaceDownRequest

type NotifyInterfaceDownRequest struct {
	IsdAs uint64 `protobuf:"varint,1,opt,name=isd_as,json=isdAs,proto3" json:"isd_as,omitempty"`
	Id    uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyInterfaceDownRequest) Descriptor deprecated

func (*NotifyInterfaceDownRequest) Descriptor() ([]byte, []int)

Deprecated: Use NotifyInterfaceDownRequest.ProtoReflect.Descriptor instead.

func (*NotifyInterfaceDownRequest) GetId

func (*NotifyInterfaceDownRequest) GetIsdAs

func (x *NotifyInterfaceDownRequest) GetIsdAs() uint64

func (*NotifyInterfaceDownRequest) ProtoMessage

func (*NotifyInterfaceDownRequest) ProtoMessage()

func (*NotifyInterfaceDownRequest) ProtoReflect

func (*NotifyInterfaceDownRequest) Reset

func (x *NotifyInterfaceDownRequest) Reset()

func (*NotifyInterfaceDownRequest) String

func (x *NotifyInterfaceDownRequest) String() string

type NotifyInterfaceDownResponse

type NotifyInterfaceDownResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyInterfaceDownResponse) Descriptor deprecated

func (*NotifyInterfaceDownResponse) Descriptor() ([]byte, []int)

Deprecated: Use NotifyInterfaceDownResponse.ProtoReflect.Descriptor instead.

func (*NotifyInterfaceDownResponse) ProtoMessage

func (*NotifyInterfaceDownResponse) ProtoMessage()

func (*NotifyInterfaceDownResponse) ProtoReflect

func (*NotifyInterfaceDownResponse) Reset

func (x *NotifyInterfaceDownResponse) Reset()

func (*NotifyInterfaceDownResponse) String

func (x *NotifyInterfaceDownResponse) String() string

type Path

type Path struct {
	Raw          []byte               `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
	Interface    *Interface           `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
	Interfaces   []*PathInterface     `protobuf:"bytes,3,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	Mtu          uint32               `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
	Expiration   *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Latency      []*duration.Duration `protobuf:"bytes,6,rep,name=latency,proto3" json:"latency,omitempty"`
	Bandwidth    []uint64             `protobuf:"varint,7,rep,packed,name=bandwidth,proto3" json:"bandwidth,omitempty"`
	Geo          []*GeoCoordinates    `protobuf:"bytes,8,rep,name=geo,proto3" json:"geo,omitempty"`
	LinkType     []LinkType           `protobuf:"varint,9,rep,packed,name=link_type,json=linkType,proto3,enum=proto.daemon.v1.LinkType" json:"link_type,omitempty"`
	InternalHops []uint32             `protobuf:"varint,10,rep,packed,name=internal_hops,json=internalHops,proto3" json:"internal_hops,omitempty"`
	Notes        []string             `protobuf:"bytes,11,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*Path) Descriptor deprecated

func (*Path) Descriptor() ([]byte, []int)

Deprecated: Use Path.ProtoReflect.Descriptor instead.

func (*Path) GetBandwidth

func (x *Path) GetBandwidth() []uint64

func (*Path) GetExpiration

func (x *Path) GetExpiration() *timestamp.Timestamp

func (*Path) GetGeo

func (x *Path) GetGeo() []*GeoCoordinates

func (*Path) GetInterface

func (x *Path) GetInterface() *Interface

func (*Path) GetInterfaces

func (x *Path) GetInterfaces() []*PathInterface

func (*Path) GetInternalHops

func (x *Path) GetInternalHops() []uint32

func (*Path) GetLatency

func (x *Path) GetLatency() []*duration.Duration

func (*Path) GetLinkType

func (x *Path) GetLinkType() []LinkType

func (*Path) GetMtu

func (x *Path) GetMtu() uint32

func (*Path) GetNotes

func (x *Path) GetNotes() []string

func (*Path) GetRaw

func (x *Path) GetRaw() []byte

func (*Path) ProtoMessage

func (*Path) ProtoMessage()

func (*Path) ProtoReflect

func (x *Path) ProtoReflect() protoreflect.Message

func (*Path) Reset

func (x *Path) Reset()

func (*Path) String

func (x *Path) String() string

type PathInterface

type PathInterface struct {
	IsdAs uint64 `protobuf:"varint,1,opt,name=isd_as,json=isdAs,proto3" json:"isd_as,omitempty"`
	Id    uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PathInterface) Descriptor deprecated

func (*PathInterface) Descriptor() ([]byte, []int)

Deprecated: Use PathInterface.ProtoReflect.Descriptor instead.

func (*PathInterface) GetId

func (x *PathInterface) GetId() uint64

func (*PathInterface) GetIsdAs

func (x *PathInterface) GetIsdAs() uint64

func (*PathInterface) ProtoMessage

func (*PathInterface) ProtoMessage()

func (*PathInterface) ProtoReflect

func (x *PathInterface) ProtoReflect() protoreflect.Message

func (*PathInterface) Reset

func (x *PathInterface) Reset()

func (*PathInterface) String

func (x *PathInterface) String() string

type PathsRequest

type PathsRequest struct {
	SourceIsdAs      uint64 `protobuf:"varint,1,opt,name=source_isd_as,json=sourceIsdAs,proto3" json:"source_isd_as,omitempty"`
	DestinationIsdAs uint64 `protobuf:"varint,2,opt,name=destination_isd_as,json=destinationIsdAs,proto3" json:"destination_isd_as,omitempty"`
	Refresh          bool   `protobuf:"varint,3,opt,name=refresh,proto3" json:"refresh,omitempty"`
	Hidden           bool   `protobuf:"varint,4,opt,name=hidden,proto3" json:"hidden,omitempty"`
	// contains filtered or unexported fields
}

func (*PathsRequest) Descriptor deprecated

func (*PathsRequest) Descriptor() ([]byte, []int)

Deprecated: Use PathsRequest.ProtoReflect.Descriptor instead.

func (*PathsRequest) GetDestinationIsdAs

func (x *PathsRequest) GetDestinationIsdAs() uint64

func (*PathsRequest) GetHidden

func (x *PathsRequest) GetHidden() bool

func (*PathsRequest) GetRefresh

func (x *PathsRequest) GetRefresh() bool

func (*PathsRequest) GetSourceIsdAs

func (x *PathsRequest) GetSourceIsdAs() uint64

func (*PathsRequest) ProtoMessage

func (*PathsRequest) ProtoMessage()

func (*PathsRequest) ProtoReflect

func (x *PathsRequest) ProtoReflect() protoreflect.Message

func (*PathsRequest) Reset

func (x *PathsRequest) Reset()

func (*PathsRequest) String

func (x *PathsRequest) String() string

type PathsResponse

type PathsResponse struct {
	Paths []*Path `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*PathsResponse) Descriptor deprecated

func (*PathsResponse) Descriptor() ([]byte, []int)

Deprecated: Use PathsResponse.ProtoReflect.Descriptor instead.

func (*PathsResponse) GetPaths

func (x *PathsResponse) GetPaths() []*Path

func (*PathsResponse) ProtoMessage

func (*PathsResponse) ProtoMessage()

func (*PathsResponse) ProtoReflect

func (x *PathsResponse) ProtoReflect() protoreflect.Message

func (*PathsResponse) Reset

func (x *PathsResponse) Reset()

func (*PathsResponse) String

func (x *PathsResponse) String() string

type Service

type Service struct {
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetUri

func (x *Service) GetUri() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServicesRequest

type ServicesRequest struct {
	// contains filtered or unexported fields
}

func (*ServicesRequest) Descriptor deprecated

func (*ServicesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServicesRequest.ProtoReflect.Descriptor instead.

func (*ServicesRequest) ProtoMessage

func (*ServicesRequest) ProtoMessage()

func (*ServicesRequest) ProtoReflect

func (x *ServicesRequest) ProtoReflect() protoreflect.Message

func (*ServicesRequest) Reset

func (x *ServicesRequest) Reset()

func (*ServicesRequest) String

func (x *ServicesRequest) String() string

type ServicesResponse

type ServicesResponse struct {
	Services map[string]*ListService `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ServicesResponse) Descriptor deprecated

func (*ServicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServicesResponse.ProtoReflect.Descriptor instead.

func (*ServicesResponse) GetServices

func (x *ServicesResponse) GetServices() map[string]*ListService

func (*ServicesResponse) ProtoMessage

func (*ServicesResponse) ProtoMessage()

func (*ServicesResponse) ProtoReflect

func (x *ServicesResponse) ProtoReflect() protoreflect.Message

func (*ServicesResponse) Reset

func (x *ServicesResponse) Reset()

func (*ServicesResponse) String

func (x *ServicesResponse) String() string

type Underlay

type Underlay struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*Underlay) Descriptor deprecated

func (*Underlay) Descriptor() ([]byte, []int)

Deprecated: Use Underlay.ProtoReflect.Descriptor instead.

func (*Underlay) GetAddress

func (x *Underlay) GetAddress() string

func (*Underlay) ProtoMessage

func (*Underlay) ProtoMessage()

func (*Underlay) ProtoReflect

func (x *Underlay) ProtoReflect() protoreflect.Message

func (*Underlay) Reset

func (x *Underlay) Reset()

func (*Underlay) String

func (x *Underlay) String() string

type UnimplementedDaemonServiceServer

type UnimplementedDaemonServiceServer struct {
}

UnimplementedDaemonServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDaemonServiceServer) AS

func (*UnimplementedDaemonServiceServer) Interfaces

func (*UnimplementedDaemonServiceServer) NotifyInterfaceDown

func (*UnimplementedDaemonServiceServer) Paths

func (*UnimplementedDaemonServiceServer) Services

Jump to

Keyboard shortcuts

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