Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerInfoMUS = serverInfoMUS{}
ServerInfoMUS is a ServerInfo MUS serializer.
Functions ¶
This section is empty.
Types ¶
type PongResult ¶
type PongResult struct{}
func (PongResult) LastOne ¶
func (r PongResult) LastOne() bool
type ServerInfo ¶
type ServerInfo []byte
ServerInfo allows the client to identify a compatible server.
type Transport ¶
type Transport[T, V any] interface { LocalAddr() net.Addr RemoteAddr() net.Addr SetSendDeadline(deadline time.Time) error Send(seq core.Seq, t T) (n int, err error) Flush() error SetReceiveDeadline(deadline time.Time) error Receive() (seq core.Seq, v V, n int, err error) Close() error }
Transport is a common transport for the client and server delegates.
Click to show internal directories.
Click to hide internal directories.