application

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package application holds the review use cases — recording a reviewer and decorating the PR message on a "Start review" click — behind the domain's use-case interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler records a reviewer and appends an in-review marker to the PR message on a verified "Start review" click.

func NewHandler

func NewHandler(params domain.HandlerParams) *Handler

NewHandler builds a Handler from its params. Now defaults to time.Now.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, command domain.StartReviewCommand) error

Handle implements domain.StartReview. Unactionable input is logged and ignored (returns nil); a returned error is reserved for genuine infrastructure failures. A duplicate click (same user) is a no-op.

Jump to

Keyboard shortcuts

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