xmidt-org/webpa-common

Create service for interacting with webhooks

joe94 opened this issue · 0 comments

joe94 commented

This service will serve as the adapter between the webhook interface and the internal operations which rely on Argus for storing the data.

The service will look something like:

type Service interface {
    Register(w W) error
    ListAll(owner string) (W[], error)
}

The constructor will provide a way to add listeners and the ability to start and stop listening.