request

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGrpcErrorInWebContext

func HandleGrpcErrorInWebContext(w http.ResponseWriter, err error) (int, error)

Types

type GenericApiResponseBody

type GenericApiResponseBody map[string]any

func NewGenericApiFailureResponseBody

func NewGenericApiFailureResponseBody(err error) GenericApiResponseBody

func NewGenericApiSuccessResponseBody

func NewGenericApiSuccessResponseBody() GenericApiResponseBody

func (*GenericApiResponseBody) ToString

func (b *GenericApiResponseBody) ToString() string

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewRequestServer

func NewRequestServer(cc *grpc.ClientConn) *Server

func (*Server) GetHandlers

func (s *Server) GetHandlers() map[string]http.HandlerFunc

Jump to

Keyboard shortcuts

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