maintenance

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateInput

type CreateInput struct {
	Title           string
	Description     string
	DescriptionJSON models.RichTextDocument
	VisibilityState models.IncidentVisibilityState
	Components      []string
	StartTime       string
	EndTime         string
	CreatorIDHex    string
	CreatorUsername string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(repo repository.MaintenanceRepository) *Service

func (*Service) Create

func (s *Service) Create(ctx context.Context, input CreateInput) (models.Maintenance, error)

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id primitive.ObjectID) error

func (*Service) GetByID

func (*Service) List

func (s *Service) List(ctx context.Context, page, limit int) ([]models.Maintenance, int64, error)

func (*Service) ListHistory

func (s *Service) ListHistory(ctx context.Context, id primitive.ObjectID) ([]models.AuditLog, error)

func (*Service) ListPublic

func (s *Service) ListPublic(ctx context.Context, page, limit int) ([]models.Maintenance, int64, error)

func (*Service) Update

type UpdateInput

type UpdateInput struct {
	Title           string
	Description     string
	DescriptionJSON models.RichTextDocument
	VisibilityState models.IncidentVisibilityState
	Status          models.MaintenanceStatus
	StartTime       string
	EndTime         string
}

Jump to

Keyboard shortcuts

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