Documentation
¶
Index ¶
- Variables
- func FastHTTPTransport(client *Client) *fasthttp.Transport
- func HTTPHandler(service *Service) *http.Handler
- func HTTPTransport(client *Client) *http.Transport
- func SocketHandler(service *Service) *socket.Handler
- func SocketTransport(client *Client) *socket.Transport
- func UDPHandler(service *Service) *udp.Handler
- func UDPTransport(client *Client) *udp.Transport
- func WebSocketHandler(service *Service) *websocket.Handler
- func WebSocketTransport(client *Client) *websocket.Transport
- type Client
- type ClientCodec
- type ClientContext
- type CodecOption
- type Context
- type InvalidRequestError
- type InvalidResponseError
- type Method
- type NextIOHandler
- type NextInvokeHandler
- type PanicError
- type Service
- type ServiceCodec
- type ServiceContext
- type UnsupportedProtocolError
- type UnsupportedServerTypeError
- type WorkerPool
Constants ¶
This section is empty.
Variables ¶
var ( // ErrClosed represents a error. ErrClosed = core.ErrClosed // ErrRequestEntityTooLarge represents a error. ErrRequestEntityTooLarge = core.ErrRequestEntityTooLarge // ErrTimeout represents a error. ErrTimeout = core.ErrTimeout // IsTemporaryError returns true if err is a temporary error. IsTemporaryError = core.IsTemporaryError // IsTimeoutError returns true if err is a timeout error. IsTimeoutError = core.IsTimeoutError // RegisterHandler for Service. RegisterHandler = core.RegisterHandler // RegisterTransport for Client. RegisterTransport = core.RegisterTransport // WithContext returns a copy of the parent context and associates it with a rpc.Context. WithContext = core.WithContext // GetClientContext returns the *rpc.ClientContext bound to the context. GetClientContext = core.GetClientContext // NewClientContext returns a rpc.ClientContext. NewClientContext = core.NewClientContext // GetServiceContext returns the *rpc.ServiceContext bound to the context. GetServiceContext = core.GetServiceContext // NewServiceContext returns a rpc.ServiceContext. NewServiceContext = core.NewServiceContext // FromContext returns the rpc.Context bound to the context. FromContext = core.FromContext // NewContext returns a rpc.Context. NewContext = core.NewContext // NewPanicError return a panic error. NewPanicError = core.NewPanicError // MissingMethod returns a missing Method object. MissingMethod = core.MissingMethod // NewMethod returns a Method object. NewMethod = core.NewMethod // NewClientCodec returns the ClientCodec. NewClientCodec = core.NewClientCodec // NewServiceCodec returns the ServiceCodec. NewServiceCodec = core.NewServiceCodec // WithDebug returns a debug Option for clientCodec & serviceCodec. WithDebug = core.WithDebug // WithSimple returns a simple Option for clientCodec & serviceCodec. WithSimple = core.WithSimple // WithLongType returns a longType Option for clientCodec & serviceCodec. WithLongType = core.WithLongType // WithRealType returns a realType Option for clientCodec & serviceCodec. WithRealType = core.WithRealType // WithMapType returns a mapType Option for clientCodec & serviceCodec. WithMapType = core.WithMapType // WithStructType returns a structType Option for clientCodec & serviceCodec. WithStructType = core.WithStructType // WithListType returns a listType Option for clientCodec & serviceCodec. WithListType = core.WithListType )
var NewClient = core.NewClient
NewClient returns an instance of Client.
var NewService = core.NewService
NewService returns an instance of Service.
Functions ¶
func FastHTTPTransport ¶ added in v3.0.6
FastHTTPTransport returns fasthttp.Transport of Client.
func HTTPHandler ¶
HTTPHandler returns http.Handler of Service.
func HTTPTransport ¶
HTTPTransport returns http.Transport of Client.
func SocketHandler ¶
SocketHandler returns socket.Handler of Service.
func SocketTransport ¶
SocketTransport returns socket.Transport of Client.
func UDPHandler ¶
UDPHandler returns udp.Handler of Service.
func UDPTransport ¶
UDPTransport returns udp.Transport of Client.
func WebSocketHandler ¶
WebSocketHandler returns websocket.Handler of Service.
func WebSocketTransport ¶
WebSocketTransport returns websocket.Transport of Client.
Types ¶
type InvalidRequestError ¶
type InvalidRequestError = core.InvalidRequestError
InvalidRequestError represents a error.
type InvalidResponseError ¶
type InvalidResponseError = core.InvalidResponseError
InvalidResponseError represents a error.
type UnsupportedProtocolError ¶
type UnsupportedProtocolError = core.UnsupportedProtocolError
UnsupportedProtocolError represents a error.
type UnsupportedServerTypeError ¶
type UnsupportedServerTypeError = core.UnsupportedServerTypeError
UnsupportedServerTypeError represents a error.