package
0.0.0-20211022090819-101e1e6589cc
Repository: https://github.com/jarod2011/toolkit.git
Documentation: pkg.go.dev

# Functions

WithCodec is edit Options Codec field.
WithLogger is edit Options Logger field.
WithTask is edit Options Task field.

# Constants

this action will close connection.
nothing to do.
this action will stop server.

# Variables

ErrServerClosed will throw when server closed.

# Structs

No description provided by the author
No description provided by the author
Options defined server options.

# Interfaces

Codec will Decode receive data from client and Encode send data before write to client.
No description provided by the author
Handler is handler of client read or write data The Action of method returned can control server or connection When Action is StopServerAction: the server will stop When Action is DisconnectionAction: the connection will be close.
Server is multi address handler server.

# Type aliases

Action is control server or connection next action.
No description provided by the author
No description provided by the author