Documentation
¶
Index ¶
- Variables
- type Handler
- func (h *Handler) HandleAccessRequest(ctx context.Context, request *types.AccessRequest) (*types.AccessResponse, error)
- func (h *Handler) HandleCorrectionRequest(ctx context.Context, request *types.CorrectionRequest) (*types.CorrectionResponse, error)
- func (h *Handler) HandleDeleteRequest(ctx context.Context, request *types.DeleteRequest) (*types.DeleteResponse, error)
- func (h *Handler) HandleRestrictProcessingRequest(ctx context.Context, request *types.RestrictProcessingRequest) (*types.RestrictProcessingResponse, error)
- func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("receiver", server.Module, fx.Provide( NewHandler, fx.Annotate(func(handler *Handler) http.Handler { mux := chi.NewMux() mux.Post("/endpoint", handler.ServeHTTP) return mux }, fx.ResultTags(`name:"server"`)), ), )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) HandleAccessRequest ¶
func (h *Handler) HandleAccessRequest(ctx context.Context, request *types.AccessRequest) (*types.AccessResponse, error)
func (*Handler) HandleCorrectionRequest ¶
func (h *Handler) HandleCorrectionRequest(ctx context.Context, request *types.CorrectionRequest) (*types.CorrectionResponse, error)
func (*Handler) HandleDeleteRequest ¶
func (h *Handler) HandleDeleteRequest(ctx context.Context, request *types.DeleteRequest) (*types.DeleteResponse, error)
func (*Handler) HandleRestrictProcessingRequest ¶
func (h *Handler) HandleRestrictProcessingRequest(ctx context.Context, request *types.RestrictProcessingRequest) (*types.RestrictProcessingResponse, error)
Click to show internal directories.
Click to hide internal directories.