summaryrefslogtreecommitdiffhomepage
path: root/tempfork/device/peer.go
blob: c4f4d42ff5ef43f411bd00b9736003d8e1b03328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
 */

package device

import (
	"container/list"

	"tailscale.com/types/key"
)

type Peer struct {
	trieEntries list.List

	key key.NodePublic
}

func NewPeer(k key.NodePublic) *Peer {
	return &Peer{
		key: k,
	}
}

func (p *Peer) Key() key.NodePublic {
	return p.key
}