MCPcopy Index your code
hub / github.com/DoNewsCode/core / Modular

Interface Modular

di/module.go:9–12  ·  view source on GitHub ↗

Modular is a special interface. A type implements Modular to indicate it contains a valid core module. This property is examined and executed by the core.Provide in package core. Other than that, the interface bears no further meaning. If the module is not a by-product of dependency construction vi

Source from the content-addressed store, hash-verified

7// If the module is not a by-product of dependency construction via core.Provide,
8// then there is no need to use this mechanism.
9type Modular interface {
10 // Module returns a core module
11 Module() interface{}
12}
13
14// Deps is a set of providers grouped together. This is used by core.Provide
15// method to identify provider sets.

Callers 2

provideMethod · 0.65
ExampleFunction · 0.65

Implementers 9

m1c_test.go
m2c_test.go
RequestDurationSecondssrvhttp/metrics.go
factoryOutotredis/dependency.go
CronJobMetricscron/metrics.go
databaseOutotgorm/dependency.go
RequestDurationSecondssrvgrpc/metrics.go
factoryOutotkafka/dependency.go
outleader/dependency.go

Calls

no outgoing calls

Tested by

no test coverage detected