receiver

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 12 Imported by: 0

README

receiver

This service provides a mock of receiving service.

Documentation

Index

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)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳