core

package
v0.0.0-...-942794f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 9 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 {
	Host          string
	Port          int
	Timeout       time.Duration
	MaxRetryTimes int
	RetryDuration time.Duration
	// contains filtered or unexported fields
}

func (*Client) Close

func (cli *Client) Close() error

func (*Client) Do

func (cli *Client) Do(request proto.Marshaler, response proto.Unmarshaler) error

type Hub

type Hub struct {
	Clients []Client
	// contains filtered or unexported fields
}

todo: 链接池,无感切换

func (*Hub) Do

func (hub *Hub) Do() error

Jump to

Keyboard shortcuts

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