Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGCMSession ¶ added in v0.3.0
func NewGCMSessionManager ¶ added in v0.3.0
func NewGCMSessionManager() protocol.SessionManager
func NewInsecureSessionManager ¶ added in v0.3.0
func NewInsecureSessionManager() protocol.SessionManager
NewInsecureSessionManager returns a `protocol.SessionManager` that does no ecryption/authentication. Messages are read/written from/to connections as without modification or processing.
Types ¶
type Handshaker ¶
type Handshaker interface { // Handshake with a remote server by initiating, and then interactively // completing, a handshake protocol. The remote server is accessed by // reading/writing to the `io.ReaderWriter`. Handshake(ctx context.Context, rw io.ReadWriter) (protocol.Session, error) // AcceptHandshake from a remote client by waiting for the initiation of, // and then interactively completing, a handshake protocol. The remote // client is accessed by reading/writing to the `io.ReaderWriter`. AcceptHandshake(ctx context.Context, rw io.ReadWriter) (protocol.Session, error) }
func New ¶
func New(signVerifier protocol.SignVerifier, sessionManager protocol.SessionManager) Handshaker
Click to show internal directories.
Click to hide internal directories.