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

Method OnComplete

service/subscribe/iml.go:170–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (i *imlSubscribeService) OnComplete() {
171 i.IServiceGet = universally.NewGet[Subscribe, subscribe.Subscribe](i.store, FromEntity)
172 i.IServiceCreate = universally.NewCreator[CreateSubscribe, subscribe.Subscribe](i.store, "subscribe", i.createEntityHandler, i.uniquestHandler, i.labelHandler)
173 i.IServiceDelete = universally.NewDelete[subscribe.Subscribe](i.store)
174 i.IServiceEdit = universally.NewEdit[UpdateSubscribe, subscribe.Subscribe](i.store, i.updateHandler, i.labelHandler)
175}
176
177func (i *imlSubscribeService) idHandler(e *subscribe.Subscribe) int64 {
178 return e.Id

Callers

nothing calls this directly

Calls 3

NewGetFunction · 0.92
NewCreatorFunction · 0.92
NewEditFunction · 0.92

Tested by

no test coverage detected