MCPcopy Create free account
hub / github.com/DoNewsCode/core / Providers

Function Providers

ots3/dependency.go:30–38  ·  view source on GitHub ↗

* Providers returns a set of dependencies providers related to S3. It includes the s3 Manager, the Maker and exported configurations. Depends On: log.Logger contract.ConfigAccessor opentracing.Tracer `optional:"true"` contract.DIPopulator `optional:"true"` Provide: Factory Maker *Man

(optionFunc ...ProvidersOptionFunc)

Source from the content-addressed store, hash-verified

28 Uploader
29*/
30func Providers(optionFunc ...ProvidersOptionFunc) di.Deps {
31 option := providersOption{
32 ctor: newManager,
33 }
34 for _, f := range optionFunc {
35 f(&option)
36 }
37 return di.Deps{provideFactory(&option), provideManager, provideConfig}
38}
39
40// Uploader models UploadService
41type Uploader interface {

Callers

nothing calls this directly

Calls 1

provideFactoryFunction · 0.70

Tested by

no test coverage detected