MCPcopy
hub / github.com/Ne0nd0g/merlin / ServerInterface

Interface ServerInterface

pkg/servers/servers.go:50–63  ·  view source on GitHub ↗

ServerInterface is used to provide a standard set of methods a server module must support to work with Merlin

Source from the content-addressed store, hash-verified

48
49// ServerInterface is used to provide a standard set of methods a server module must support to work with Merlin
50type ServerInterface interface {
51 Addr() string
52 ConfiguredOptions() map[string]string
53 ID() uuid.UUID
54 Interface() string
55 Listen() error
56 Protocol() int
57 ProtocolString() string
58 Port() int
59 SetOption(string, string) error
60 Start()
61 Status() string
62 Stop() error
63}
64
65// Protocol is used to transform a server protocol constant into a string for use in written messages or logs
66func Protocol(protocol int) string {

Callers 48

NewListenerMethod · 0.65
GetListenersMethod · 0.65
GetListenerOptionsMethod · 0.65
AddJobChannelMethod · 0.65
NewListenerMethod · 0.65
GetListenerIDsMethod · 0.65
GetListenersMethod · 0.65
StartListenerMethod · 0.65
jobToJobInfoMethod · 0.65
agentToAgentInfoMethod · 0.65
GetAgentRowsMethod · 0.65
GetListenersMethod · 0.65

Implementers 1

Serverpkg/servers/http/http.go

Calls

no outgoing calls

Tested by

no test coverage detected