MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / init

Function init

stores/server/store.go:35–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func init() {
36 autowire.Auto[IServerStore](func() reflect.Value {
37 return reflect.ValueOf(new(imlServerStore))
38 })
39
40 autowire.Auto[IServerApiStore](func() reflect.Value {
41 return reflect.ValueOf(new(storeServerApi))
42 })
43
44 autowire.Auto[IServerCommit](func() reflect.Value {
45 return reflect.ValueOf(commit.NewCommitWithKey[ServerCommit]("server", "setting"))
46 })
47 autowire.Auto[IServicePartitionStore](func() reflect.Value {
48 return reflect.ValueOf(new(storeServerPartition))
49 })
50
51}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected