client

package
v0.0.0-...-ad160b0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(e string) bool

func NewClient

func NewClient(ip string, port int, sType ...string)

func On

func On(event string, f Handler)

func Recv

func Recv()

接受服务器信息

func Send

func Send(str string)

发送到客户端

func Start

func Start()

开始服务器

func ToConsole

func ToConsole(str string)

发送到用户台

Types

type Client

type Client interface {
	Conn()
}

func GetClient

func GetClient() Client

默认的服务器

type Handler

type Handler func()

type Opt

type Opt map[string]Handler

type Register

type Register struct {
}

Jump to

Keyboard shortcuts

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