Documentation ¶
Index ¶
- func DecodeThriftFooRequest(r *thriftTestThrift.FooRequest) (req endpoints.FooRequest, err error)
- func EncodeThriftFooResponse(reply interface{}) (rep thriftTestThrift.FooReply, err error)
- func MakeThriftHandler(ctx context.Context, endpoints endpoints.Endpoints) (req thriftTestThrift.TestThriftService)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeThriftFooRequest ¶
func DecodeThriftFooRequest(r *thriftTestThrift.FooRequest) (req endpoints.FooRequest, err error)
DecodeThriftFooRequest is a func that converts a thrift request to a user-domain request. Primarily useful in a server. TODO: Do not forget to implement the decoder.
func EncodeThriftFooResponse ¶
func EncodeThriftFooResponse(reply interface{}) (rep thriftTestThrift.FooReply, err error)
EncodeThriftFooResponse is a func that converts a user-domain response to a thrift reply. Primarily useful in a server. TODO: Do not forget to implement the encoder.
func MakeThriftHandler ¶
func MakeThriftHandler(ctx context.Context, endpoints endpoints.Endpoints) (req thriftTestThrift.TestThriftService)
MakeThriftHandler makes a set of endpoints available as a thrift server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.