Documentation
¶
Index ¶
- Constants
- type AccountsServiceHandler
- func (h *AccountsServiceHandler) ChangePassword(ctx context.Context, in *accounts_service.ChangePasswordRequest) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) CreateAccount(ctx context.Context, in *accounts_service.CreateAccountRequest) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) DeleteAccount(ctx context.Context, _ *emptypb.Empty) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) GetAccountID(ctx context.Context, _ *emptypb.Empty) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) GetAllSessions(ctx context.Context, _ *emptypb.Empty) (res *accounts_service.AllSessionsResponse, err error)
- func (h *AccountsServiceHandler) Logout(ctx context.Context, _ *emptypb.Empty) (_ *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) RequestAccountVerificationToken(ctx context.Context, in *accounts_service.VerificationTokenRequest) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) RequestChangePasswordToken(ctx context.Context, in *accounts_service.ChangePasswordTokenRequest) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) SignIn(ctx context.Context, in *accounts_service.SignInRequest) (res *accounts_service.AccessResponse, err error)
- func (h *AccountsServiceHandler) TerminateSessions(ctx context.Context, in *accounts_service.TerminateSessionsRequest) (res *emptypb.Empty, err error)
- func (h *AccountsServiceHandler) VerifyAccount(ctx context.Context, in *accounts_service.VerifyAccountRequest) (res *emptypb.Empty, err error)
Constants ¶
View Source
const ( AccountIDContext = "X-Account-Id" SessionIDContext = "X-Session-Id" MachineIDContext = "X-Machine-Id" )
--------------------- CONTEXTS ---------------------
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsServiceHandler ¶
type AccountsServiceHandler struct {
accounts_service.UnimplementedAccountsServiceV1Server
// contains filtered or unexported fields
}
func NewAccountsServiceHandler ¶
func NewAccountsServiceHandler(logger *logrus.Logger, accountsService service.AccountsService) *AccountsServiceHandler
func (*AccountsServiceHandler) ChangePassword ¶
func (h *AccountsServiceHandler) ChangePassword(ctx context.Context, in *accounts_service.ChangePasswordRequest) (res *emptypb.Empty, err error)
func (*AccountsServiceHandler) CreateAccount ¶
func (h *AccountsServiceHandler) CreateAccount(ctx context.Context, in *accounts_service.CreateAccountRequest) (res *emptypb.Empty, err error)
func (*AccountsServiceHandler) DeleteAccount ¶
func (*AccountsServiceHandler) GetAccountID ¶
func (*AccountsServiceHandler) GetAllSessions ¶
func (h *AccountsServiceHandler) GetAllSessions(ctx context.Context, _ *emptypb.Empty) (res *accounts_service.AllSessionsResponse, err error)
func (*AccountsServiceHandler) RequestAccountVerificationToken ¶
func (h *AccountsServiceHandler) RequestAccountVerificationToken(ctx context.Context, in *accounts_service.VerificationTokenRequest) (res *emptypb.Empty, err error)
func (*AccountsServiceHandler) RequestChangePasswordToken ¶
func (h *AccountsServiceHandler) RequestChangePasswordToken(ctx context.Context, in *accounts_service.ChangePasswordTokenRequest) (res *emptypb.Empty, err error)
func (*AccountsServiceHandler) SignIn ¶
func (h *AccountsServiceHandler) SignIn(ctx context.Context, in *accounts_service.SignInRequest) (res *accounts_service.AccessResponse, err error)
func (*AccountsServiceHandler) TerminateSessions ¶
func (h *AccountsServiceHandler) TerminateSessions(ctx context.Context, in *accounts_service.TerminateSessionsRequest) (res *emptypb.Empty, err error)
func (*AccountsServiceHandler) VerifyAccount ¶
func (h *AccountsServiceHandler) VerifyAccount(ctx context.Context, in *accounts_service.VerifyAccountRequest) (res *emptypb.Empty, err error)
Click to show internal directories.
Click to hide internal directories.