Documentation ¶
Index ¶
- type EventListOutput
- type EventOutput
- type EventSearch
- type EventService
- func (e *EventService) Count() (int64, error)
- func (e *EventService) Create(event *v1.Event) (*EventOutput, error)
- func (e *EventService) GetId(id string) (*v1.Event, error)
- func (e *EventService) List() (*EventListOutput, error)
- func (e *EventService) Search(Query *v1.EventSearch) (*EventListOutput, error)
- type IEventService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListOutput ¶
type EventListOutput []EventOutput
type EventOutput ¶
type EventOutput struct { Title string `json:"title" example:"Deployment service lambda"` Attributes v1.EventAttributes Links v1.EventLinks Metadata v1.EventMetadata }
type EventSearch ¶
type EventService ¶
type EventService struct {
EventRepository v1.EventInterface
}
func (*EventService) Count ¶
func (e *EventService) Count() (int64, error)
func (*EventService) Create ¶
func (e *EventService) Create(event *v1.Event) (*EventOutput, error)
func (*EventService) List ¶
func (e *EventService) List() (*EventListOutput, error)
func (*EventService) Search ¶
func (e *EventService) Search(Query *v1.EventSearch) (*EventListOutput, error)
type IEventService ¶
type IEventService interface { Create(event *v1.Event) (*EventOutput, error) List() (*EventListOutput, error) Count() (int64, error) GetId(id string) (*v1.Event, error) Search(query *v1.EventSearch) (*EventListOutput, error) }
func NewEventService ¶
func NewEventService(EventRepository v1.EventInterface) IEventService
Click to show internal directories.
Click to hide internal directories.