MCPcopy Create free account
hub / github.com/apache/dubbo-go / initProviderMethodConfig

Function initProviderMethodConfig

config/method_config.go:64–76  ·  view source on GitHub ↗
(sc *ServiceConfig)

Source from the content-addressed store, hash-verified

62}
63
64func initProviderMethodConfig(sc *ServiceConfig) error {
65 methods := sc.Methods
66 if methods == nil {
67 return nil
68 }
69 for _, method := range methods {
70 if err := method.check(); err != nil {
71 return err
72 }
73 }
74 sc.Methods = methods
75 return nil
76}
77
78// check set default value and verify
79func (m *MethodConfig) check() error {

Callers 1

InitMethod · 0.85

Calls 1

checkMethod · 0.45

Tested by

no test coverage detected