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

Method OnComplete

service/ai-key/iml.go:209–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (i *imlAIKeyService) OnComplete() {
210 i.IServiceGet = universally.NewGet[Key, ai.Key](i.store, FromEntity)
211 i.IServiceCreate = universally.NewCreator[Create, ai.Key](i.store, "ai_key", createEntityHandler, uniquestHandler, labelHandler)
212 i.IServiceEdit = universally.NewEdit[Edit, ai.Key](i.store, updateHandler, labelHandler)
213 i.IServiceDelete = universally.NewDelete[ai.Key](i.store)
214}
215
216func labelHandler(e *ai.Key) []string {
217 return []string{e.Name}

Callers

nothing calls this directly

Calls 3

NewGetFunction · 0.92
NewCreatorFunction · 0.92
NewEditFunction · 0.92

Tested by

no test coverage detected