Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrServiceIsNil = errors.New("[rpc] service 不能为nil") ErrStructPtrOnly = errors.New("[rpc] service 只能传入结构体指针") )
Functions ¶
func ClientWithSerializer ¶ added in v0.1.46
func ClientWithSerializer(s serialize.Serializer) clientOption
func ContextWithOneway ¶ added in v0.1.46
func IsOneWayContext ¶ added in v0.1.46
Types ¶
type Server ¶ added in v0.1.43
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterSerializer ¶ added in v0.1.46
func (s *Server) RegisterSerializer(serializer serialize.Serializer)
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)
func (*UserServiceImpl) GetUserByIDProto ¶ added in v0.1.46
func (u *UserServiceImpl) GetUserByIDProto(ctx context.Context, req *gen.GetUserByIdReq) (*gen.GetUserByIdResp, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.