Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
type ConnPool ¶
type ConnPool struct {
// contains filtered or unexported fields
}
ConnPool 连接池
func (*ConnPool) Achieve ¶
func (pool *ConnPool) Achieve(ctx context.Context) (permission Permission, err error)
Achieve 获取连接
type Data ¶
type Data struct { Name string // service name Args []interface{} // request's or response's body Err string // remote server error }
Data presents the pb transported between server and client
type Permission ¶
type Permission struct { NextConnIndex RpcCli *Client CreateAt time.Time MaxLifeTime time.Duration }
Permission 权限,包装连接
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server struct
Click to show internal directories.
Click to hide internal directories.