Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerHTTP ¶
type ServerHTTP struct { *http.Server // HTTP Addr string // 监听地址 Route *vweb.Route // 路由表 // contains filtered or unexported fields }
ServerHTTP 服务器HTTP
func (*ServerHTTP) ListenAndServe ¶
func (T *ServerHTTP) ListenAndServe() error
ListenAndServe 监听并启动
error 错误
func (*ServerHTTP) LoadTLS ¶
func (T *ServerHTTP) LoadTLS(CertFile, KeyFile string) error
LoadTLS 加载证书文件
CertFile 证书公钥 KeyFile 证书私钥
type ServerRPC ¶
type ServerRPC struct { *rpc.Server // RPC Addr string // 地址 // contains filtered or unexported fields }
ServerRPC 服务器,这个一个RPC服务器,客户端可以调用绑定的方法。
func (*ServerRPC) RegisterName ¶
RegisterName 注册一个struct,让客户端进行访问。
name string 包名 rcvr any 结构对象 error 错误
Click to show internal directories.
Click to hide internal directories.