znet

package
v0.0.0-...-ee6b5e2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(name string) ziface.IServer

初始化server

Types

type Server

type Server struct {
	//服务器的名称
	Name string
	//服务器绑定的ip版本
	IPVsersion string
	//服务器绑定的IP地址
	IP string
	//服务器绑定的端口号
	Port int
}

iServer 的接口实现,定义一个server的服务器结构体

func (*Server) Serve

func (s *Server) Serve()

运行服务器

func (*Server) Start

func (s *Server) Start()

启动服务器

func (*Server) Stop

func (s *Server) Stop()

停止服务器

Jump to

Keyboard shortcuts

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