Documentation ¶
Index ¶
Constants ¶
View Source
const ( UDP = iota UDP4 UDP6 TCP TCP4 TCP6 UNIX )
View Source
const ( SendOnly = iota SendRecv SendRecvMultiplex SendStreamOnly SendStreamAndRecv SendAndRecvStream SendStreamAndRecvStream )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Option ¶
type Option func(*client)
func WithRpcType ¶
WithRpcType specify the rpc type, support SendOnly, SendRecv, SendRecvWithMultiplex, etc.
func WithSelector ¶
WithSelector specify the selector
func WithTransportType ¶
func WithTransportType(typ TransportType) Option
WithTransportType specify the transport type, support UDP, TCP, Unix
type TransportType ¶
type TransportType int
TransportType options
func (TransportType) String ¶
func (t TransportType) String() string
func (TransportType) Valid ¶
func (t TransportType) Valid() bool
Click to show internal directories.
Click to hide internal directories.