Documentation ¶
Index ¶
- type Server
- func (s *Server) CanI(ctx context.Context, r *account.CanIRequest) (*account.CanIResponse, error)
- func (s *Server) CreateToken(ctx context.Context, r *account.CreateTokenRequest) (*account.CreateTokenResponse, error)
- func (s *Server) DeleteToken(ctx context.Context, r *account.DeleteTokenRequest) (*account.EmptyResponse, error)
- func (s *Server) GetAccount(ctx context.Context, r *account.GetAccountRequest) (*account.Account, error)
- func (s *Server) ListAccounts(ctx context.Context, r *account.ListAccountRequest) (*account.AccountsList, error)
- func (s *Server) UpdatePassword(ctx context.Context, q *account.UpdatePasswordRequest) (*account.UpdatePasswordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Session service
func NewServer ¶
func NewServer(sessionMgr *session.SessionManager, settingsMgr *settings.SettingsManager, enf *rbac.Enforcer) *Server
NewServer returns a new instance of the Session service
func (*Server) CanI ¶ added in v1.4.0
func (s *Server) CanI(ctx context.Context, r *account.CanIRequest) (*account.CanIResponse, error)
func (*Server) CreateToken ¶ added in v1.5.0
func (s *Server) CreateToken(ctx context.Context, r *account.CreateTokenRequest) (*account.CreateTokenResponse, error)
func (*Server) DeleteToken ¶ added in v1.5.0
func (s *Server) DeleteToken(ctx context.Context, r *account.DeleteTokenRequest) (*account.EmptyResponse, error)
func (*Server) GetAccount ¶ added in v1.5.0
func (*Server) ListAccounts ¶ added in v1.5.0
func (s *Server) ListAccounts(ctx context.Context, r *account.ListAccountRequest) (*account.AccountsList, error)
func (*Server) UpdatePassword ¶
func (s *Server) UpdatePassword(ctx context.Context, q *account.UpdatePasswordRequest) (*account.UpdatePasswordResponse, error)
UpdatePassword updates the password of the currently authenticated account or the account specified in the request.
Click to show internal directories.
Click to hide internal directories.