fake_client

package
v0.0.0-...-3d82958 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(network string, addr string, ops ...Option) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Dial

func (c *Client) Dial()

type Option

type Option func(c *Client)

func ConnectSuccess

func ConnectSuccess(fn func(conn net.Conn)) Option

func OnMessage

func OnMessage(fn func(conn net.Conn, msg []byte) error) Option

Jump to

Keyboard shortcuts

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