Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLogin = errors.New("login failed")
Functions ¶
func Login ¶
func Login(ctx context.Context, client *http.Client, loginURL, baseURL, username, password string) error
Login performs a login request to the specified loginURL using the provided username and password. It returns an error if the request fails or the response status code is not 200 OK.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.