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

Method OnComplete

service/ai-local/iml.go:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (i *imlLocalModelPackageService) OnComplete() {
95 i.IServiceGet = universally.NewGet[LocalModelPackage, ai.LocalModelPackage](i.store, i.fromEntity)
96 i.IServiceCreate = universally.NewCreator[CreateLocalModelPackage, ai.LocalModelPackage](i.store, "ai_local_model_package", i.createEntityHandler, i.uniquestHandler, i.labelHandler)
97 i.IServiceEdit = universally.NewEdit[EditLocalModelPackage, ai.LocalModelPackage](i.store, i.updateHandler, i.labelHandler)
98 i.IServiceDelete = universally.NewDelete[ai.LocalModelPackage](i.store)
99}
100
101func (i *imlLocalModelPackageService) labelHandler(e *ai.LocalModelPackage) []string {
102 return []string{e.Uuid}

Callers

nothing calls this directly

Calls 3

NewGetFunction · 0.92
NewCreatorFunction · 0.92
NewEditFunction · 0.92

Tested by

no test coverage detected