MCPcopy
hub / github.com/gliderlabs/ssh / WrapConn

Function WrapConn

options.go:79–84  ·  view source on GitHub ↗

WrapConn returns a functional option that sets ConnCallback on the server.

(fn ConnCallback)

Source from the content-addressed store, hash-verified

77
78// WrapConn returns a functional option that sets ConnCallback on the server.
79func WrapConn(fn ConnCallback) Option {
80 return func(srv *Server) error {
81 srv.ConnCallback = fn
82 return nil
83 }
84}

Callers 1

TestConnWrappingFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestConnWrappingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…