mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
chore: add comments to export functions
This commit is contained in:
1 parent
417ac556f7
commit
8a2e95b17e
9 files changed
+33
-12
No files matched your search
@@ -10,15 +10,18 @@ import (
|
||||
"github.com/nadoo/glider/proxy/ss/cipher/internal/shadowstream"
|
||||
)
|
||||
|
||||
// Cipher interface.
|
||||
type Cipher interface {
|
||||
StreamConnCipher
|
||||
PacketConnCipher
|
||||
}
|
||||
|
||||
// StreamConnCipher is the stream connection cipher.
|
||||
type StreamConnCipher interface {
|
||||
StreamConn(net.Conn) net.Conn
|
||||
}
|
||||
|
||||
// StreamConnCipher is the packet connection cipher.
|
||||
type PacketConnCipher interface {
|
||||
PacketConn(net.PacketConn) net.PacketConn
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user