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 ListResponse ¶
type ListResponse struct {
Items []ErrorEvent `json:"items"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) List ¶
func (s *Service) List(ctx context.Context, request ListRequest) (ListResponse, error)
Click to show internal directories.
Click to hide internal directories.