Documentation ¶
Index ¶
- func InitClient(dstService string, opts ...client.Option)
- func Login(ctx context.Context, req *user.LoginReq, callOptions ...callopt.Option) (resp *user.LoginResp, err error)
- func Register(ctx context.Context, req *user.RegisterReq, callOptions ...callopt.Option) (resp *user.RegisterResp, err error)
- type RPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
Types ¶
type RPCClient ¶
type RPCClient interface { KitexClient() userservice.Client Service() string Register(ctx context.Context, Req *user.RegisterReq, callOptions ...callopt.Option) (r *user.RegisterResp, err error) Login(ctx context.Context, Req *user.LoginReq, callOptions ...callopt.Option) (r *user.LoginResp, err error) }
func DefaultClient ¶
func DefaultClient() RPCClient
Click to show internal directories.
Click to hide internal directories.