Discover Packages
github.com/cz-it/magline
package
module
Version:
v0.0.0-...-9aed184
Opens a new window with list of versions in this module.
Published: Mar 5, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
magline
Long connection framework
Workflow
When a client connect to magline. It must send L1 then L2 CMD on order before comunication
with other business logic moudlues. And if L1 or L2 return an error, magline will return an error message to client and broker the connection.
Expand ▾
Collapse ▴
Documentation
¶
type Options struct {
Host string `json:"host" toml:"host"`
Port uint32 `json:"port" toml:"port"`
}
Options is config option for magline
NewOptions return a default Options
Load load options from a toml or json file
Server is a magline TCP server
func NewServer() (svr *Server )
NewServer create a magline's TCP server
Source Files
¶
Directories
¶
app
Package proto is proto define * * Author: CZ cz.theng@gmail.com
Package proto is proto define * * Author: CZ cz.theng@gmail.com
Click to show internal directories.
Click to hide internal directories.