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

Method OnComplete

service/service/iml.go:157–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (i *imlServiceService) OnComplete() {
158 i.IServiceGet = universally.NewGetSoftDelete[Service, service.Service](i.store, FromEntity)
159
160 i.IServiceDelete = universally.NewSoftDelete[service.Service](i.store)
161
162 i.IServiceCreate = universally.NewCreatorSoftDelete[Create, service.Service](i.store, "service", createEntityHandler, uniquestHandler, labelHandler)
163
164 i.IServiceEdit = universally.NewEdit[Edit, service.Service](i.store, updateHandler, labelHandler)
165 auto.RegisterService("service", i)
166}
167
168func labelHandler(e *service.Service) []string {
169 return []string{e.Name, e.UUID, e.Description}

Callers

nothing calls this directly

Calls 3

NewGetSoftDeleteFunction · 0.92
NewCreatorSoftDeleteFunction · 0.92
NewEditFunction · 0.92

Tested by

no test coverage detected