MCPcopy
hub / github.com/hoanhan101/ultimate-go / Server

Interface Server

go/design/pollution_1.go:26–30  ·  view source on GitHub ↗

Server defines a contract for tcp servers. This is a little bit of smell because this is some sort of APIs that going to be exposed to user and already that is a lot of behaviors brought in a generic interface.

Source from the content-addressed store, hash-verified

24// This is a little bit of smell because this is some sort of APIs that going to be exposed to user
25// and already that is a lot of behaviors brought in a generic interface.
26type Server interface {
27 Start() error
28 Stop() error
29 Wait() error
30}
31
32// server is our Server implementation.
33// They match the name. However, that is not necessarily bad.

Callers 10

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 2

Servergo/design/pollution_2.go
servergo/design/pollution_1.go

Calls

no outgoing calls

Tested by

no test coverage detected