Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewRealWorldService, NewAccountService)
ProviderSet is service providers.
Functions ¶
func GetCurrentUser ¶
func UpdateUser ¶
Types ¶
type AccountService ¶
type AccountService struct { v1.UnimplementedAccountServer // contains filtered or unexported fields }
func NewAccountService ¶
func NewAccountService(account *biz.AccountUseCase, logger log.Logger) *AccountService
func (*AccountService) Accounts ¶
func (s *AccountService) Accounts(ctx context.Context, in *v1.AccountsRequest) (*v1.AccountsReply, error)
type RealWorldService ¶
type RealWorldService struct { v1.UnimplementedRealWorldServer // contains filtered or unexported fields }
func NewRealWorldService ¶
func NewRealWorldService(auth *biz.AuthUseCase, logger log.Logger) *RealWorldService
func (*RealWorldService) Login ¶
func (s *RealWorldService) Login(ctx context.Context, in *v1.LoginRequest) (*v1.UserReply, error)
func (*RealWorldService) Register ¶
func (s *RealWorldService) Register(ctx context.Context, in *v1.RegisterRequest) (*v1.UserReply, error)
Click to show internal directories.
Click to hide internal directories.