Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFixedSizeBuffer ¶
func NewFixedSizeBuffer(size int) *fixedSizeBuffer
Types ¶
type Frame ¶
type Frame interface { Messages() [][]byte Release() }
Frame represents single frame received from clients. For more details read `frame` documentations.
type ListenerConfig ¶
type NewWorkerConstructor ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader exposes unix socket and reads the messages send by clients and forwards it further to the 'Frame' channel.
Reader implements very simple separator based protocol in order to receive multiple messages on single UNIX stream connection. Protocol is specified as series of following: <message_data><separator>
Where:
- <separator> is message separator character: `;`
- <message_data> is any arbitrary data forming single message with following restrictions: it could not contain <separator> and maximal message size is 64kB - 1(for separator)
func (*Reader) OutChannel ¶
Click to show internal directories.
Click to hide internal directories.