MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / validate

Method validate

pkg/httpsrv/http.go:43–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (s *Server) validate() error {
44 if s.server == nil {
45 return errors.New("server must be specified")
46 }
47 if s.tlser != nil {
48 return s.tlser.Validate()
49 }
50 return nil
51}
52
53// Run starts the server according to the provided configuration.
54func (s *Server) Run() error {

Callers 3

RunMethod · 0.95
TestServer_NewFunction · 0.45
TestServer_Run_WithTLSerFunction · 0.45

Calls 1

ValidateMethod · 0.65

Tested by 2

TestServer_NewFunction · 0.36
TestServer_Run_WithTLSerFunction · 0.36