mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Add Bridge List Definition
This commit is contained in:
parent
f38c91f906
commit
3d4f294241
1 changed files with 18 additions and 0 deletions
18
broker/bridge-list.go
Normal file
18
broker/bridge-list.go
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "sync"
|
||||||
|
|
||||||
|
type bridgeListHolder struct {
|
||||||
|
bridgeInfo map[[20]byte]BridgeInfo
|
||||||
|
accessBridgeInfo sync.RWMutex
|
||||||
|
}
|
||||||
|
|
||||||
|
type BridgeListHolder interface {
|
||||||
|
GetBridgeInfo(fingerprint [20]byte) (BridgeInfo, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type BridgeInfo struct {
|
||||||
|
DisplayName string `json:"displayName"`
|
||||||
|
WebSocketAddress string `json:"webSocketAddress"`
|
||||||
|
Fingerprint string `json:"fingerprint"`
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue