mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
18 lines
400 B
Go
18 lines
400 B
Go
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"`
|
|
}
|