Documentation ¶
Index ¶
- Constants
- func NewWireGuard(pool *wgtypes.IPPool) types.Service
- type WireGuard
- func (w *WireGuard) AddPeer(data []byte) (result []byte, err error)
- func (w *WireGuard) Info() []byte
- func (w *WireGuard) Init(home string) (err error)
- func (w *WireGuard) Peers() ([]types.Peer, error)
- func (w *WireGuard) PeersCount() int
- func (w *WireGuard) RemovePeer(data []byte) error
- func (w *WireGuard) Start() error
- func (w *WireGuard) Stop() error
- func (w *WireGuard) Type() uint64
Constants ¶
View Source
const (
InfoLen = 2 + 32
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WireGuard ¶
type WireGuard struct {
// contains filtered or unexported fields
}
func (*WireGuard) PeersCount ¶
func (*WireGuard) RemovePeer ¶
Click to show internal directories.
Click to hide internal directories.