model

package
v0.0.0-...-b9f6a0d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) GetCost

func (m *AutonomousSystem) GetCost() int32

GetCost ...

func (*AutonomousSystem) GetLinkCapacity

func (m *AutonomousSystem) GetLinkCapacity() int32

GetLinkCapacity ...

func (*AutonomousSystem) GetNumber

func (m *AutonomousSystem) GetNumber() int32

GetNumber ...

func (*AutonomousSystem) ProtoMessage

func (*AutonomousSystem) ProtoMessage()

ProtoMessage ...

func (*AutonomousSystem) Reset

func (m *AutonomousSystem) Reset()

Reset ...

func (*AutonomousSystem) String

func (m *AutonomousSystem) String() string

String ...

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_Size

func (m *AutonomousSystem) XXX_Size() int

XXX_Size ...

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) Descriptor

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

Descriptor ...

func (*Hash) GetMd5

func (m *Hash) GetMd5() string

GetMd5 ...

func (*Hash) GetSha256

func (m *Hash) GetSha256() string

GetSha256 ...

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

ProtoMessage ...

func (*Hash) Reset

func (m *Hash) Reset()

Reset ...

func (*Hash) String

func (m *Hash) String() string

String ...

func (*Hash) XXX_DiscardUnknown

func (m *Hash) XXX_DiscardUnknown()

XXX_DiscardUnknown ...

func (*Hash) XXX_Marshal

func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

XXX_Marshal ...

func (*Hash) XXX_Merge

func (m *Hash) XXX_Merge(src proto.Message)

XXX_Merge ...

func (*Hash) XXX_Size

func (m *Hash) XXX_Size() int

XXX_Size ...

func (*Hash) XXX_Unmarshal

func (m *Hash) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

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) GetKey

func (m *KeyExchangeRequest) GetKey() string

GetKey ...

func (*KeyExchangeRequest) GetNonce

func (m *KeyExchangeRequest) GetNonce() string

GetNonce ...

func (*KeyExchangeRequest) GetUUID

func (m *KeyExchangeRequest) GetUUID() string

GetUUID ...

func (*KeyExchangeRequest) ProtoMessage

func (*KeyExchangeRequest) ProtoMessage()

ProtoMessage ...

func (*KeyExchangeRequest) Reset

func (m *KeyExchangeRequest) Reset()

Reset ...

func (*KeyExchangeRequest) String

func (m *KeyExchangeRequest) String() string

String ...

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_Size

func (m *KeyExchangeRequest) XXX_Size() int

XXX_Size ...

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) GetIsOk

func (m *KeyExchangeResponse) GetIsOk() bool

GetIsOk ...

func (*KeyExchangeResponse) GetUUID

func (m *KeyExchangeResponse) GetUUID() string

GetUUID ...

func (*KeyExchangeResponse) ProtoMessage

func (*KeyExchangeResponse) ProtoMessage()

ProtoMessage ...

func (*KeyExchangeResponse) Reset

func (m *KeyExchangeResponse) Reset()

Reset ...

func (*KeyExchangeResponse) String

func (m *KeyExchangeResponse) String() string

String ...

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_Size

func (m *KeyExchangeResponse) XXX_Size() int

XXX_Size ...

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) GetID

func (m *RouteController) GetID() int32

GetID ...

func (*RouteController) GetIP

func (m *RouteController) GetIP() string

GetIP ...

func (*RouteController) ProtoMessage

func (*RouteController) ProtoMessage()

ProtoMessage ...

func (*RouteController) Reset

func (m *RouteController) Reset()

Reset ...

func (*RouteController) String

func (m *RouteController) String() string

String ...

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_Size

func (m *RouteController) XXX_Size() int

XXX_Size ...

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

EstimateCost ...

func (*UnimplementedOverlayNetworkServer) KeyExchange

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) GetUUID

func (m *UpdateRequest) GetUUID() string

GetUUID ...

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

ProtoMessage ...

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

Reset ...

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

String ...

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_Size

func (m *UpdateRequest) XXX_Size() int

XXX_Size ...

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) GetPath

func (m *UpdateResponse) GetPath() []int32

GetPath ...

func (*UpdateResponse) GetUUID

func (m *UpdateResponse) GetUUID() string

GetUUID ...

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

ProtoMessage ...

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

Reset ...

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

String ...

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_Size

func (m *UpdateResponse) XXX_Size() int

XXX_Size ...

func (*UpdateResponse) XXX_Unmarshal

func (m *UpdateResponse) XXX_Unmarshal(b []byte) error

XXX_Unmarshal ...

Jump to

Keyboard shortcuts

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