Documentation ¶
Index ¶
Constants ¶
View Source
const ( TcpServerMod string = "tcp" WsServerMod string = "websocket" )
Variables ¶
This section is empty.
Functions ¶
func NewZinxServer ¶
func NewZinxServer( logger *zap.Logger, serverSetting sfx.SettingsParams, securitySetting sfx.SecuritySettingsParams, name string, version string, deployment string, rateLimit int32, ) (result siface.IZinxServer, err error)
NewZinxServer creates a new zinx server with the given settings.
Types ¶
type ZinxServer ¶
type ZinxServer struct {
// contains filtered or unexported fields
}
ZinxServer is the struct for the zinx server. https://github.com/aceld/zinx
func (*ZinxServer) StartServing ¶
func (zs *ZinxServer) StartServing(_ context.Context) error
StartServing starts the zinx server.
func (*ZinxServer) StopServing ¶
func (zs *ZinxServer) StopServing(_ context.Context) error
StopServing stops the zinx server.
func (*ZinxServer) ZinxServer ¶
func (zs *ZinxServer) ZinxServer() ziface.IServer
ZinxServer returns the zinx server.
Click to show internal directories.
Click to hide internal directories.