handler

package
v0.0.0-...-62c1080 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyGetLawsuitInformationHandler

func KeyGetLawsuitInformationHandler(orderID string) string

func Respond

func Respond(w http.ResponseWriter, r *http.Request, status int, data interface{})

Types

type Handler

type Handler struct {
	DB    *gorm.DB
	Cache *redis.Client
	Queue *amqp.Channel
}

func (*Handler) GetLawsuitInformationHandler

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

func (*Handler) HealthCheckHandle

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

func (*Handler) LawsuitInformationHandler

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

func (*Handler) WebHookFinishHandler

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

func (*Handler) WebHookIdempotencyHandler

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

type LawsuitInformationRequest

type LawsuitInformationRequest struct {
	LawsuitNumber string `json:"lawsuit-number"`
}

func (*LawsuitInformationRequest) Ok

type LawsuitInformationResponse

type LawsuitInformationResponse struct {
	OrderID       string `json:"order-id"`
	LawsuitNumber string `json:"lawsuit-number"`
}

Jump to

Keyboard shortcuts

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