errors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(service *Service) *Controller

func (*Controller) HandleList

func (c *Controller) HandleList(w http.ResponseWriter, r *http.Request)

HandleList is intentionally not registered until authentication and internal authorization are implemented.

type ErrorEvent

type ErrorEvent struct {
	OccurredAt    time.Time `json:"occurred_at"`
	CorrelationID string    `json:"correlation_id"`
	Method        string    `json:"method"`
	Path          string    `json:"path"`
	Endpoint      string    `json:"endpoint"`
	StatusCode    int       `json:"status_code"`
	ErrorCode     string    `json:"error_code"`
	Message       string    `json:"message"`
}

type ListRequest

type ListRequest struct {
	Endpoint string
	Limit    int
}

type ListResponse

type ListResponse struct {
	Items []ErrorEvent `json:"items"`
}

type Service

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

func NewService

func NewService(store errstore.Store) *Service

func (*Service) List

func (s *Service) List(ctx context.Context, request ListRequest) (ListResponse, error)

Jump to

Keyboard shortcuts

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