-
Notifications
You must be signed in to change notification settings - Fork 8
/
deps.fn.go
42 lines (32 loc) · 1.02 KB
/
deps.fn.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// This file was automatically generated by Namespace.
// DO NOT EDIT. To update, re-run `ns generate`.
package controllers
import (
"context"
fncore "namespacelabs.dev/foundation/std/core"
"namespacelabs.dev/foundation/std/go/core"
"namespacelabs.dev/foundation/std/go/server"
)
// Dependencies that are instantiated once for the lifetime of the service.
type ServiceDeps struct {
Ready core.Check
}
// Verify that WireService is present and has the appropriate type.
type checkWireService func(context.Context, server.Registrar, ServiceDeps)
var _ checkWireService = WireService
var (
Package__6f40u5 = &core.Package{
PackageName: "namespacelabs.dev/foundation/orchestration/controllers",
}
Provider__6f40u5 = core.Provider{
Package: Package__6f40u5,
Instantiate: makeDeps__6f40u5,
}
)
func makeDeps__6f40u5(ctx context.Context, di core.Dependencies) (_ interface{}, err error) {
var deps ServiceDeps
if deps.Ready, err = fncore.ProvideReadinessCheck(ctx, nil); err != nil {
return nil, err
}
return deps, nil
}