Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Send sends a request to the method with the given name and body. Send(name string, body wire.Value) (wire.Value, error) }
Client sends Thrift requests and returns their responses.
Client is thread-safe only if the underlying transport is thread-safe.
type ErrUnknownMethod ¶
type ErrUnknownMethod string
ErrUnknownMethod is raised by Handlers to indicate that the given method is invalid.
func (ErrUnknownMethod) Error ¶
func (e ErrUnknownMethod) Error() string
type Handler ¶
type Handler interface { // Receives a request to the given method name and returns the response // body. // // Implementations should return ErrUnknownMethod if the method is invalid. Handle(name string, body wire.Value) (wire.Value, error) }
Handler handles enveloped requests.
Click to show internal directories.
Click to hide internal directories.