Documentation ¶
Index ¶
- Constants
- func RegisterRPCService(log kitlog.Logger, repo rel.Repository)
- type RpcUserService
- func (s *RpcUserService) CreateUserApp(args *user.UserApp, reply *int) error
- func (s *RpcUserService) Delete(userID *int, reply *int) error
- func (s *RpcUserService) FindByAccount(account string, reply *user.User) error
- func (s *RpcUserService) FindByID(userID *int, reply *user.User) error
- func (s *RpcUserService) Insert(args *user.User, reply *int) error
- func (s *RpcUserService) Update(args *user.User, reply *int) error
Constants ¶
View Source
const ( Success = 1 Fail = 0 )
Variables ¶
This section is empty.
Functions ¶
func RegisterRPCService ¶
func RegisterRPCService(log kitlog.Logger, repo rel.Repository)
Types ¶
type RpcUserService ¶
type RpcUserService struct { Repo rel.Repository Log kitlog.Logger // contains filtered or unexported fields }
func (*RpcUserService) CreateUserApp ¶
func (s *RpcUserService) CreateUserApp(args *user.UserApp, reply *int) error
func (*RpcUserService) FindByAccount ¶
func (s *RpcUserService) FindByAccount(account string, reply *user.User) error
Click to show internal directories.
Click to hide internal directories.