Documentation ¶
Index ¶
Constants ¶
View Source
const ( Init = iota Connecting Connected )
Variables ¶
View Source
var ( ErrNotSofarpcCmd = errors.New("not sofarpc command") ErrNotResponseBuilder = errors.New("no response builder") )
Functions ¶
func NewSofaRPCKeepAlive ¶
func SetIdleTimeout ¶
SetIdleTimeout calculates the idle timeout as max idle count.
Types ¶
type StreamDirection ¶
type StreamDirection int
StreamDirection represent the stream's direction
const ( ServerStream StreamDirection = 1 ClientStream StreamDirection = 0 )
ServerStream = 1 ClientStream = 0
Click to show internal directories.
Click to hide internal directories.