Documentation ¶
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
}
func NewHandler ¶
func (*Handler) RegisterPublicRoutes ¶
func (h *Handler) RegisterPublicRoutes(public *x.RouterPublic)
type ManagementProvider ¶
type ManagementProvider interface {
ErrorManager() Manager
}
type Manager ¶
type Manager interface { // Add adds an error to the manager and returns a unique identifier or an error if insertion fails. Add(...error) (string, error) // Read returns an error by its unique identifier and marks the error as read. If an error occurs during retrieval // the second return parameter is an error. Read(id string) ([]error, error) // Clear clears read containers that are older than a certain amount of time. If force is set to true, unread // errors will be cleared as well. Clear(olderThan time.Duration, force bool) error ForwardError(http.ResponseWriter, *http.Request, ...error) }
func NewMemoryManager ¶
func NewMemoryManager( l logrus.FieldLogger, w herodot.Writer, c configuration.Provider, ) Manager
type MemoryManager ¶
func (*MemoryManager) Clear ¶
func (m *MemoryManager) Clear(olderThan time.Duration, force bool) error
func (*MemoryManager) ForwardError ¶
func (m *MemoryManager) ForwardError(w http.ResponseWriter, r *http.Request, errs ...error)
type Registry ¶
type Registry interface { ErrorManager() Manager x.WriterProvider }
Click to show internal directories.
Click to hide internal directories.