Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

func NewService(store db.Store) Service

NewService creates a new exception service.

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

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