MCPcopy
hub / github.com/nirui/sshwifty / New

Method New

application/command/commander.go:49–68  ·  view source on GitHub ↗

New Adds a new client

(
	cfg Configuration,
	receiver rw.FetchReader,
	sender io.Writer,
	senderLock *sync.Mutex,
	receiveDelay time.Duration,
	sendDelay time.Duration,
	l log.Logger,
)

Source from the content-addressed store, hash-verified

47
48// New Adds a new client
49func (c Commander) New(
50 cfg Configuration,
51 receiver rw.FetchReader,
52 sender io.Writer,
53 senderLock *sync.Mutex,
54 receiveDelay time.Duration,
55 sendDelay time.Duration,
56 l log.Logger,
57) (Handler, error) {
58 return newHandler(
59 cfg,
60 &c.commands,
61 receiver,
62 sender,
63 senderLock,
64 receiveDelay,
65 sendDelay,
66 l,
67 ), nil
68}

Callers 15

staticFileGenFunction · 0.80
getSocketAuthKeyFunction · 0.80
GetMethod · 0.80
getHashFunction · 0.80
buildListFileFunction · 0.80
buildListFileDevFunction · 0.80
buildDataFileFunction · 0.80
string.goFile · 0.80
ssh.goFile · 0.80
integer.goFile · 0.80
telnet.goFile · 0.80
address.goFile · 0.80

Calls 1

newHandlerFunction · 0.85

Tested by

no test coverage detected