Documentation
¶
Index ¶
Constants ¶
View Source
const CName = "common.net.secure"
Variables ¶
View Source
var ( // ProtoVersion 0 - first any-sync version with raw tcp connections // ProtoVersion 1 - version with yamux over tcp and quic // ProtoVersion 2 - acl compatible version ProtoVersion = uint32(2) )
Functions ¶
This section is empty.
Types ¶
type SecureService ¶
type SecureService interface {
SecureOutbound(ctx context.Context, conn net.Conn) (cctx context.Context, err error)
SecureInbound(ctx context.Context, conn net.Conn) (cctx context.Context, err error)
HandshakeInbound(ctx context.Context, conn io.ReadWriteCloser, remotePeerId string) (cctx context.Context, err error)
ServerTlsConfig() (*tls.Config, error)
app.Component
}
func New ¶
func New() SecureService
Click to show internal directories.
Click to hide internal directories.