services

package
v0.0.0-...-a6451ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 EventSearch struct {
	Source    string
	EventType string
	Priority  string
	Status    string
	Service   string
	StartDate string
	EndDate   string
}

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) GetId

func (e *EventService) GetId(id string) (*v1.Event, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL