Documentation ¶
Index ¶
- type LoginService
- func (l *LoginService) DefaultLogin(ctx context.Context) (*SessionResponse, error)
- func (l *LoginService) LogMeIn(ctx context.Context, account string, password string) (*SessionResponse, error)
- func (l *LoginService) SignUp(ctx context.Context, email, password string, invitedToken string) (*SessionResponse, error)
- type SessionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginService ¶
type LoginService struct {
// contains filtered or unexported fields
}
func NewLoginService ¶
func NewLoginService(client *lshttp.Client) *LoginService
func (*LoginService) DefaultLogin ¶
func (l *LoginService) DefaultLogin(ctx context.Context) (*SessionResponse, error)
func (*LoginService) LogMeIn ¶
func (l *LoginService) LogMeIn(ctx context.Context, account string, password string) (*SessionResponse, error)
func (*LoginService) SignUp ¶
func (l *LoginService) SignUp(ctx context.Context, email, password string, invitedToken string) (*SessionResponse, error)
SignUp allows a new user to be registered into labelstudio invitedToken is required when the public registered is diabled when LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK is turned on.
type SessionResponse ¶
type SessionResponse struct {
SessionID string `json:"sessionid"`
}
Click to show internal directories.
Click to hide internal directories.