Help us shape the future of Go! Take the 2026 Go Developer Survey

socket

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(meta *reader.Meta, conf conf.MapConf) (reader.Reader, error)

Types

type Reader

type Reader struct {
	ServiceAddress  string
	MaxConnections  int
	ReadBufferSize  int
	ReadTimeout     time.Duration
	KeepAlivePeriod time.Duration

	// resource need  close
	ReadChan chan []byte

	Closer io.Closer
	// contains filtered or unexported fields
}

func (*Reader) Close

func (sr *Reader) Close() error

func (*Reader) Name

func (sr *Reader) Name() string

func (*Reader) ReadLine

func (sr *Reader) ReadLine() (data string, err error)

func (*Reader) SetMode

func (sr *Reader) SetMode(mode string, v interface{}) error

func (*Reader) Source

func (sr *Reader) Source() string

func (*Reader) Start

func (sr *Reader) Start() error

func (*Reader) SyncMeta

func (sr *Reader) SyncMeta()

Jump to

Keyboard shortcuts

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