Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geerpc #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gee-rpc/day5-http-debug/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func Register(rcvr interface{}) error { return DefaultServer.Register(rcvr) }

const (
connected = "200 Connected to Gee RPC"
defaultRPCPath = "/_geeprc_"
defaultRPCPath = "/_geerpc_"
defaultDebugPath = "/debug/geerpc"
)

Expand Down
2 changes: 1 addition & 1 deletion gee-rpc/day6-load-balance/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func Register(rcvr interface{}) error { return DefaultServer.Register(rcvr) }

const (
connected = "200 Connected to Gee RPC"
defaultRPCPath = "/_geeprc_"
defaultRPCPath = "/_geerpc_"
defaultDebugPath = "/debug/geerpc"
)

Expand Down
2 changes: 1 addition & 1 deletion gee-rpc/day7-registry/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func Register(rcvr interface{}) error { return DefaultServer.Register(rcvr) }

const (
connected = "200 Connected to Gee RPC"
defaultRPCPath = "/_geeprc_"
defaultRPCPath = "/_geerpc_"
defaultDebugPath = "/debug/geerpc"
)

Expand Down
4 changes: 2 additions & 2 deletions gee-rpc/doc/geerpc-day5.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ HTTP/1.0 200 Connected to Gee RPC
```go
const (
connected = "200 Connected to Gee RPC"
defaultRPCPath = "/_geeprc_"
defaultRPCPath = "/_geerpc_"
defaultDebugPath = "/debug/geerpc"
)

Expand Down Expand Up @@ -120,7 +120,7 @@ package http
func Handle(pattern string, handler Handler) { DefaultServeMux.Handle(pattern, handler) }
```

第一个参数是支持通配的字符串 pattern,在这里,我们固定传入 `/_geeprc_`,第二个参数是 Handler 类型,Handler 是一个接口类型,定义如下:
第一个参数是支持通配的字符串 pattern,在这里,我们固定传入 `/_geerpc_`,第二个参数是 Handler 类型,Handler 是一个接口类型,定义如下:

```go
type Handler interface {
Expand Down