# README
Running Prerequisites
- Run command
go install github.com/golang/mock/mockgen@latest
to install gomock - Run command
git clone github.com/cloudwego/netpoll
to clone netpoll in the parent directory of kitex.
User's Guidance
- Add a line under the
files
parameter of update.sh. - Fill in the go file path where the interface you want to mock is located.
- Fill in the path of the output mock file.
- Fill in the package name of the output mock file.
- Run
sh update.sh
to update mock files. - Now you can use the generated gomock class to mock interface. Refer to https://github.com/golang/mock.
# Packages
Package remote is a generated GoMock package.
Package discovery is a generated GoMock package.
Package generic is a generated GoMock package.
Package klog is a generated GoMock package.
Package limiter is a generated GoMock package.
Package loadbalance is a generated GoMock package.
Package net is a generated GoMock package.
Package mocks is a generated GoMock package.
Package proxy is a generated GoMock package.
Package remote is a generated GoMock package.
Package rpc_info is a generated GoMock package.
Package stats is a generated GoMock package.
No description provided by the author
Package utils is a generated GoMock package.
# Functions
MockFuncHandler .
MyServiceHandler .
No description provided by the author
NewMockCliTransHandlerFactory .
No description provided by the author
NewMockSvrTransHandlerFactory .
NewMockTransServerFactory .
Service2Info return mock serviceInfo.
Service3Info return mock serviceInfo.
ServiceInfo return mock serviceInfo.
# Constants
method name of mock.
method name of mock.
method name of mock.
method name of mock.
method name of mock.
method name of mock.
method name of mock.
method name of mock.
# Structs
Conn implements the net.Conn interface.
MockCliTransHandler .
MockSvrTransHandler .
No description provided by the author
MockTransServer .
MockTransServerFactory .
MyException .
MyRequest .
MyResponse .
# Interfaces
MyService .