adapt

package
v0.0.0-...-13113db Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package adapt is used for morphing wgtypes into gRPC message types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndPointToMsg

func EndPointToMsg(ep *net.UDPAddr) *wghost.Endpoint

EndPointToMsg adapts a net.UDPAddrs into a gRPC Endpoint message

func PeerListToMsg

func PeerListToMsg(ps []wgtypes.Peer) (*wghost.PeerList, error)

PeerListToMsg adapts a slice of wgtypes.Peer into a gRPC PeerList message

func PeerToMsg

func PeerToMsg(p *wgtypes.Peer) (*wghost.Peer, error)

PeerToMsg adapts a wgtypes.Peer into a gRPC Peer message

Types

This section is empty.

Jump to

Keyboard shortcuts

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