processgoim

package
v0.0.0-...-8ba6176 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MaxBodySize = int32(1 << 12)
)

Variables

View Source
var GoImD = &GoImDecoder{}

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	WithStream(stream *bufio.Reader) Decoder
	Decode() Decoder
	Result() (TcpObj, error)
}

type GoImDecoder

type GoImDecoder struct {
	// contains filtered or unexported fields
}

func (*GoImDecoder) Decode

func (decoder *GoImDecoder) Decode() Decoder

func (*GoImDecoder) Result

func (decoder *GoImDecoder) Result() (TcpObj, error)

func (*GoImDecoder) WithStream

func (decoder *GoImDecoder) WithStream(stream *bufio.Reader) Decoder

type TcpObj

type TcpObj interface {
	Pretty() (string, error)
	Body() (string, error)
}

type TcpObj4GoIm

type TcpObj4GoIm struct {
	ProtocolVersion int32
	Operation       int32
	Seq             int32
	Content         string
}

func (*TcpObj4GoIm) Body

func (obj *TcpObj4GoIm) Body() (string, error)

func (*TcpObj4GoIm) Pretty

func (obj *TcpObj4GoIm) Pretty() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL