Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServiceIsNil = errors.New("[rpc] service 不能为nil") ErrStructPtrOnly = errors.New("[rpc] service 只能传入结构体指针") )
Functions ¶
func InitClient ¶
Types ¶
type Client ¶ added in v0.1.43
type Client struct {
// contains filtered or unexported fields
}
type Server ¶ added in v0.1.43
type Server struct {
// contains filtered or unexported fields
}
type UserServiceImpl ¶ added in v0.1.43
type UserServiceImpl struct {
testdata.UserService
}
func (*UserServiceImpl) GetUserByID ¶ added in v0.1.43
func (u *UserServiceImpl) GetUserByID(ctx context.Context, req *testdata.GetUserByIDReq) (*testdata.GetUserByIDResp, error)
Click to show internal directories.
Click to hide internal directories.