Documentation ¶
Index ¶
- type ServiceAdapter
- func (a ServiceAdapter) ChangePassword(ctx context.Context, userPassword *pb.UserPassword) error
- func (a ServiceAdapter) CreateUser(ctx context.Context, user *pb.User) (*pb.User, error)
- func (a ServiceAdapter) DeleteUser(ctx context.Context, user *pb.User) (*pb.User, error)
- func (a ServiceAdapter) GetErrors(ctx context.Context) (*pb.Errors, error)
- func (a ServiceAdapter) GetErrorsDynamic(ctx context.Context, msg string, host string, port string) *pb.Errors
- func (a ServiceAdapter) GetUsersByFilter(ctx context.Context, userFilter *pb.UserFilter) (*pb.Users, error)
- func (a ServiceAdapter) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)
- func (a ServiceAdapter) Login(ctx context.Context, loginRequest *pb.LoginRequest) (*pb.Token, error)
- func (a ServiceAdapter) Logout(ctx context.Context, token *pb.Token) error
- func (a ServiceAdapter) Refresh(ctx context.Context, token *pb.Token) (*pb.Token, error)
- func (a ServiceAdapter) UpdateUserBase(ctx context.Context, user *pb.User) (*pb.User, error)
- func (a ServiceAdapter) UpdateUserRole(ctx context.Context, user *pb.User) (*pb.User, error)
- func (a ServiceAdapter) UpdateUserStatus(ctx context.Context, user *pb.User) (*pb.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceAdapter ¶
type ServiceAdapter struct { }
func NewServiceAdapter ¶
func NewServiceAdapter() ServiceAdapter
func (ServiceAdapter) ChangePassword ¶
func (a ServiceAdapter) ChangePassword(ctx context.Context, userPassword *pb.UserPassword) error
ChangePassword changes the poassword of the given user in the database.
func (ServiceAdapter) CreateUser ¶
CreateUser insert a new user in the databse.
func (ServiceAdapter) DeleteUser ¶
DeleteUser soft-deletes the given user in the database.
func (ServiceAdapter) GetErrorsDynamic ¶
func (ServiceAdapter) GetUsersByFilter ¶
func (a ServiceAdapter) GetUsersByFilter(ctx context.Context, userFilter *pb.UserFilter) (*pb.Users, error)
GetUsersByFilter returns the users that match the given filter.
func (ServiceAdapter) Log ¶
func (a ServiceAdapter) Log(ctx context.Context, logData *pb.LogData) (*pb.LoggingResult, error)
Log sends the given log to the logging micro service.
func (ServiceAdapter) Login ¶
func (a ServiceAdapter) Login(ctx context.Context, loginRequest *pb.LoginRequest) (*pb.Token, error)
Login generates an authentication token if the given users are valid.
func (ServiceAdapter) UpdateUserBase ¶
UpdateUserBase sends the given user to the application layer for updating user base values.
func (ServiceAdapter) UpdateUserRole ¶
UpdateUserRole sends the given user to the application layer for updating user role.
func (ServiceAdapter) UpdateUserStatus ¶
UpdateUserStatus sends the given user to the application layer for updating user status.
Click to show internal directories.
Click to hide internal directories.