Skip to content

Commit

Permalink
optimize ws network module
Browse files Browse the repository at this point in the history
  • Loading branch information
dobyte committed Jun 28, 2024
1 parent 7841028 commit f80c388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/transporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ type Client interface {
type Transporter interface {
// Name 获取传输器组件名
Name() string
// SetDefaultDiscovery 设置默认的服务发现组件
SetDefaultDiscovery(discovery registry.Discovery)
// NewServer 新建传输服务器
NewServer() (Server, error)
// NewClient 新建传输务客户端
NewClient(target string) (Client, error)
// SetDefaultDiscovery 设置默认的服务发现组件
SetDefaultDiscovery(discovery registry.Discovery)
}

0 comments on commit f80c388

Please sign in to comment.