Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NOMessage = resp.SimpleStringValue("")
Functions ¶
func ListenAndServe ¶
func ListenAndServe( host string, port int, protected func() bool, handler func(conn *Conn, msg *Message, rd *PipelineReader, w io.Writer, websocket bool) error, opened func(conn *Conn), closed func(conn *Conn), lnp *net.Listener, http bool, ) error
ListenAndServe starts a tile38 server at the specified address.
Types ¶
type Message ¶
type Message struct { Command string Values []resp.Value ConnType Type OutputType Type Auth string }
Message is a resp message
type PipelineReader ¶
type PipelineReader struct {
// contains filtered or unexported fields
}
PipelineReader ...
func NewPipelineReader ¶
func NewPipelineReader(rd io.ReadWriter) *PipelineReader
NewPipelineReader ...
func (*PipelineReader) ReadMessages ¶
func (rd *PipelineReader) ReadMessages() ([]*Message, error)
ReadMessages ...
Click to show internal directories.
Click to hide internal directories.