Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
Pluggable Transports
Snowflake
Commits
3d4f2942
Verified
Commit
3d4f2942
authored
Mar 28, 2022
by
shelikhoo
Browse files
Add Bridge List Definition
parent
f38c91f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
broker/bridge-list.go
0 → 100644
View file @
3d4f2942
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"`
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment