Documentation
¶
Overview ¶
Package service contains the business logic for exceptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exception ¶
type Exception struct {
ID uuid.UUID
EntityID uuid.UUID
RuleTypeID uuid.UUID
ExpiresAt time.Time
CreatedAt time.Time
}
Exception represents an exception.
type Service ¶
type Service interface {
Create(ctx context.Context, exception Exception) (*Exception, error)
List(ctx context.Context, projectID uuid.UUID) ([]Exception, error)
Delete(ctx context.Context, id uuid.UUID, projectID uuid.UUID) error
}
Service encapsulates logic related to exceptions.
func NewService ¶
NewService creates a new exception service.
Click to show internal directories.
Click to hide internal directories.