transport

package
v0.0.0-...-f2c0506 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Unlicense Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCreateJobRequest

func DecodeCreateJobRequest(ctx context.Context, r *http.Request) (interface{}, error)

func DecodeGetJobRequest

func DecodeGetJobRequest(ctx context.Context, r *http.Request) (interface{}, error)

func DecodeLukeRequestFunc

func DecodeLukeRequestFunc(_ context.Context, req interface{}) (request interface{}, err error)

func EncodeHTTPResponse

func EncodeHTTPResponse(_ context.Context, w http.ResponseWriter, response interface{}) error

func EncodeLukeResponseFunc

func EncodeLukeResponseFunc(_ context.Context, response interface{}) (interface{}, error)

EncodeLukeResponseFunc is a transport/grpc.EncodeResponseFunc that converts a user-domain generic response to a gRPC generic reply. Primarily useful in a server.

func MakeGRPCServer

func MakeGRPCServer(endpoints endpoint.LukeEndPoints) pb.LukeServiceServer

MakeGRPCServer makes a set of endpoints available as a gRPC LukeServiceServer.

func MakeHTTPHandler

func MakeHTTPHandler(endpoints endpoint.LukeEndPoints) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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