Documentation ¶
Index ¶
- Variables
- func HandleCaptureMetadata(h http.Handler) http.HandlerFunc
- func HandleForwardMetadataResponse(ctx context.Context, w http.ResponseWriter, _ proto.Message) error
- func NewGrpcErrorHandler(debugErr bool) runtime.ErrorHandlerFunc
- func RegisterEndpoints(ctx context.Context, gw *runtime.ServeMux, endpoints []GrpcEndpoint) error
- type EndpointRegisterHandlerFunc
- type ErrorData
- type ErrorDebugData
- type GrpcEndpoint
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var BadRequestError = Response{ Success: false, Code: "400", Message: "Bad Request", Data: nil, }
View Source
var InternalError = Response{ Success: false, Code: "500", Message: "Internal Error", Data: nil, }
View Source
var NotFoundError = Response{ Success: false, Code: "404", Message: "Not Found", Data: nil, }
Functions ¶
func HandleCaptureMetadata ¶
func HandleCaptureMetadata(h http.Handler) http.HandlerFunc
func NewGrpcErrorHandler ¶
func NewGrpcErrorHandler(debugErr bool) runtime.ErrorHandlerFunc
func RegisterEndpoints ¶
Types ¶
type ErrorData ¶
type ErrorData struct {
Debug *ErrorDebugData `json:"debug,omitempty"`
}
type ErrorDebugData ¶
type GrpcEndpoint ¶
type GrpcEndpoint struct { Name string RegisterHandler EndpointRegisterHandlerFunc Hostname string Insecure bool SSLCertificate string }
Click to show internal directories.
Click to hide internal directories.