maches

package
v0.0.0-...-64d7a94 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxConnect = 100
	BufSize    = 1024
)

Variables

This section is empty.

Functions

func GetClientChanRcv

func GetClientChanRcv() chan []byte

func GetClientChanSed

func GetClientChanSed() chan []byte

func GetServerChanRcv

func GetServerChanRcv() chan []byte

func GetServerChanSed

func GetServerChanSed() chan []byte

Types

type Mache

type Mache struct {
	// contains filtered or unexported fields
}

func GetMache

func GetMache() *Mache

func (*Mache) RunClient

func (m *Mache) RunClient(addr string)

TODO: add ctx handling to close the goroutine

func (*Mache) RunServer

func (m *Mache) RunServer(addr string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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