Documentation ¶
Index ¶
- func RegisterOverlayNetworkServer(s *grpc.Server, srv OverlayNetworkServer)
- type AutonomousSystem
- func (*AutonomousSystem) Descriptor() ([]byte, []int)
- func (m *AutonomousSystem) GetCost() int32
- func (m *AutonomousSystem) GetLinkCapacity() int32
- func (m *AutonomousSystem) GetNumber() int32
- func (*AutonomousSystem) ProtoMessage()
- func (m *AutonomousSystem) Reset()
- func (m *AutonomousSystem) String() string
- func (m *AutonomousSystem) XXX_DiscardUnknown()
- func (m *AutonomousSystem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AutonomousSystem) XXX_Merge(src proto.Message)
- func (m *AutonomousSystem) XXX_Size() int
- func (m *AutonomousSystem) XXX_Unmarshal(b []byte) error
- type Hash
- func (*Hash) Descriptor() ([]byte, []int)
- func (m *Hash) GetMd5() string
- func (m *Hash) GetSha256() string
- func (*Hash) ProtoMessage()
- func (m *Hash) Reset()
- func (m *Hash) String() string
- func (m *Hash) XXX_DiscardUnknown()
- func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Hash) XXX_Merge(src proto.Message)
- func (m *Hash) XXX_Size() int
- func (m *Hash) XXX_Unmarshal(b []byte) error
- type KeyExchangeRequest
- func (*KeyExchangeRequest) Descriptor() ([]byte, []int)
- func (m *KeyExchangeRequest) GetKey() string
- func (m *KeyExchangeRequest) GetNonce() string
- func (m *KeyExchangeRequest) GetUUID() string
- func (*KeyExchangeRequest) ProtoMessage()
- func (m *KeyExchangeRequest) Reset()
- func (m *KeyExchangeRequest) String() string
- func (m *KeyExchangeRequest) XXX_DiscardUnknown()
- func (m *KeyExchangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyExchangeRequest) XXX_Merge(src proto.Message)
- func (m *KeyExchangeRequest) XXX_Size() int
- func (m *KeyExchangeRequest) XXX_Unmarshal(b []byte) error
- type KeyExchangeResponse
- func (*KeyExchangeResponse) Descriptor() ([]byte, []int)
- func (m *KeyExchangeResponse) GetIsOk() bool
- func (m *KeyExchangeResponse) GetUUID() string
- func (*KeyExchangeResponse) ProtoMessage()
- func (m *KeyExchangeResponse) Reset()
- func (m *KeyExchangeResponse) String() string
- func (m *KeyExchangeResponse) XXX_DiscardUnknown()
- func (m *KeyExchangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyExchangeResponse) XXX_Merge(src proto.Message)
- func (m *KeyExchangeResponse) XXX_Size() int
- func (m *KeyExchangeResponse) XXX_Unmarshal(b []byte) error
- type OverlayNetworkClient
- type OverlayNetworkServer
- type RouteController
- func (*RouteController) Descriptor() ([]byte, []int)
- func (m *RouteController) GetAutonomousSystemNumber() int32
- func (m *RouteController) GetID() int32
- func (m *RouteController) GetIP() string
- func (*RouteController) ProtoMessage()
- func (m *RouteController) Reset()
- func (m *RouteController) String() string
- func (m *RouteController) XXX_DiscardUnknown()
- func (m *RouteController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RouteController) XXX_Merge(src proto.Message)
- func (m *RouteController) XXX_Size() int
- func (m *RouteController) XXX_Unmarshal(b []byte) error
- type UnimplementedOverlayNetworkServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetDestinationAutonomousSystem() *AutonomousSystem
- func (m *UpdateRequest) GetSourceRouteController() *RouteController
- func (m *UpdateRequest) GetUUID() string
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (m *UpdateResponse) GetDestinationAutonomousSystem() *AutonomousSystem
- func (m *UpdateResponse) GetPath() []int32
- func (m *UpdateResponse) GetUUID() string
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOverlayNetworkServer ¶
func RegisterOverlayNetworkServer(s *grpc.Server, srv OverlayNetworkServer)
RegisterOverlayNetworkServer ...
Types ¶
type AutonomousSystem ¶
type AutonomousSystem struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` LinkCapacity int32 `protobuf:"varint,2,opt,name=link_capacity,json=linkCapacity,proto3" json:"link_capacity,omitempty"` Cost int32 `protobuf:"varint,3,opt,name=cost,proto3" json:"cost,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AutonomousSystem ...
func (*AutonomousSystem) Descriptor ¶
func (*AutonomousSystem) Descriptor() ([]byte, []int)
Descriptor ...
func (*AutonomousSystem) GetLinkCapacity ¶
func (m *AutonomousSystem) GetLinkCapacity() int32
GetLinkCapacity ...
func (*AutonomousSystem) XXX_DiscardUnknown ¶
func (m *AutonomousSystem) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*AutonomousSystem) XXX_Marshal ¶
func (m *AutonomousSystem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*AutonomousSystem) XXX_Merge ¶
func (m *AutonomousSystem) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*AutonomousSystem) XXX_Unmarshal ¶
func (m *AutonomousSystem) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...
type Hash ¶
type Hash struct { Md5 string `protobuf:"bytes,1,opt,name=md5,proto3" json:"md5,omitempty"` Sha256 string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Hash ...
func (*Hash) XXX_Marshal ¶
XXX_Marshal ...
type KeyExchangeRequest ¶
type KeyExchangeRequest struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
KeyExchangeRequest ...
func (*KeyExchangeRequest) Descriptor ¶
func (*KeyExchangeRequest) Descriptor() ([]byte, []int)
Descriptor ...
func (*KeyExchangeRequest) ProtoMessage ¶
func (*KeyExchangeRequest) ProtoMessage()
ProtoMessage ...
func (*KeyExchangeRequest) XXX_DiscardUnknown ¶
func (m *KeyExchangeRequest) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*KeyExchangeRequest) XXX_Marshal ¶
func (m *KeyExchangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*KeyExchangeRequest) XXX_Merge ¶
func (m *KeyExchangeRequest) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*KeyExchangeRequest) XXX_Unmarshal ¶
func (m *KeyExchangeRequest) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...
type KeyExchangeResponse ¶
type KeyExchangeResponse struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` IsOk bool `protobuf:"varint,2,opt,name=is_ok,json=isOk,proto3" json:"is_ok,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
KeyExchangeResponse ...
func (*KeyExchangeResponse) Descriptor ¶
func (*KeyExchangeResponse) Descriptor() ([]byte, []int)
Descriptor ...
func (*KeyExchangeResponse) ProtoMessage ¶
func (*KeyExchangeResponse) ProtoMessage()
ProtoMessage ...
func (*KeyExchangeResponse) XXX_DiscardUnknown ¶
func (m *KeyExchangeResponse) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*KeyExchangeResponse) XXX_Marshal ¶
func (m *KeyExchangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*KeyExchangeResponse) XXX_Merge ¶
func (m *KeyExchangeResponse) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*KeyExchangeResponse) XXX_Unmarshal ¶
func (m *KeyExchangeResponse) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...
type OverlayNetworkClient ¶
type OverlayNetworkClient interface { EstimateCost(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) KeyExchange(ctx context.Context, in *KeyExchangeRequest, opts ...grpc.CallOption) (*KeyExchangeResponse, error) }
OverlayNetworkClient is the client API for OverlayNetwork service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOverlayNetworkClient ¶
func NewOverlayNetworkClient(cc *grpc.ClientConn) OverlayNetworkClient
NewOverlayNetworkClient ...
type OverlayNetworkServer ¶
type OverlayNetworkServer interface { EstimateCost(context.Context, *UpdateRequest) (*UpdateResponse, error) KeyExchange(context.Context, *KeyExchangeRequest) (*KeyExchangeResponse, error) }
OverlayNetworkServer is the server API for OverlayNetwork service.
type RouteController ¶
type RouteController struct { ID int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AutonomousSystemNumber int32 `` /* 130-byte string literal not displayed */ IP string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RouteController ...
func (*RouteController) Descriptor ¶
func (*RouteController) Descriptor() ([]byte, []int)
Descriptor ...
func (*RouteController) GetAutonomousSystemNumber ¶
func (m *RouteController) GetAutonomousSystemNumber() int32
GetAutonomousSystemNumber ...
func (*RouteController) XXX_DiscardUnknown ¶
func (m *RouteController) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*RouteController) XXX_Marshal ¶
func (m *RouteController) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*RouteController) XXX_Merge ¶
func (m *RouteController) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*RouteController) XXX_Unmarshal ¶
func (m *RouteController) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...
type UnimplementedOverlayNetworkServer ¶
type UnimplementedOverlayNetworkServer struct { }
UnimplementedOverlayNetworkServer can be embedded to have forward compatible implementations.
func (*UnimplementedOverlayNetworkServer) EstimateCost ¶
func (*UnimplementedOverlayNetworkServer) EstimateCost(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
EstimateCost ...
func (*UnimplementedOverlayNetworkServer) KeyExchange ¶
func (*UnimplementedOverlayNetworkServer) KeyExchange(ctx context.Context, req *KeyExchangeRequest) (*KeyExchangeResponse, error)
KeyExchange ...
type UpdateRequest ¶
type UpdateRequest struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` SourceRouteController *RouteController `` /* 126-byte string literal not displayed */ DestinationAutonomousSystem *AutonomousSystem `` /* 144-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpdateRequest ...
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
Descriptor ...
func (*UpdateRequest) GetDestinationAutonomousSystem ¶
func (m *UpdateRequest) GetDestinationAutonomousSystem() *AutonomousSystem
GetDestinationAutonomousSystem ...
func (*UpdateRequest) GetSourceRouteController ¶
func (m *UpdateRequest) GetSourceRouteController() *RouteController
GetSourceRouteController ...
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...
type UpdateResponse ¶
type UpdateResponse struct { UUID string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` DestinationAutonomousSystem *AutonomousSystem `` /* 144-byte string literal not displayed */ Path []int32 `protobuf:"varint,3,rep,packed,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
UpdateResponse ...
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
Descriptor ...
func (*UpdateResponse) GetDestinationAutonomousSystem ¶
func (m *UpdateResponse) GetDestinationAutonomousSystem() *AutonomousSystem
GetDestinationAutonomousSystem ...
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
XXX_DiscardUnknown ...
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
XXX_Marshal ...
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
XXX_Merge ...
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
XXX_Unmarshal ...