Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataProvider ¶
type DataProvider interface { Create(RegisteredEvent) error Update(RegisteredEvent) error GetByTypeAndEvent(string, string, string) (*RegisteredEvent, error) GetLast(limit int) ([]*RegisteredEvent, error) }
todo: add unit tests
type RegisteredEvent ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) Create ¶
func (r *Repo) Create(e RegisteredEvent) error
func (*Repo) GetByTypeAndEvent ¶
func (r *Repo) GetByTypeAndEvent(id, t, event string) (*RegisteredEvent, error)
func (*Repo) Update ¶
func (r *Repo) Update(e RegisteredEvent) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(r DataProvider) (*Service, error)
func (*Service) EventExist ¶
Click to show internal directories.
Click to hide internal directories.