userclient

package
v0.0.0-...-80df595 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeNameRequest

type ChangeNameRequest struct {
	NewName string `json:"name"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(addr string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) HandleChangeUsername

func (c *Client) HandleChangeUsername(w http.ResponseWriter, r *http.Request)

func (*Client) HandleLoginEmail

func (c *Client) HandleLoginEmail(w http.ResponseWriter, r *http.Request)

func (*Client) HandleLoginOtp

func (c *Client) HandleLoginOtp(w http.ResponseWriter, r *http.Request)

func (*Client) HandleLogout

func (c *Client) HandleLogout(w http.ResponseWriter, r *http.Request)

func (*Client) HandleProfile

func (c *Client) HandleProfile(w http.ResponseWriter, r *http.Request)

func (*Client) HandleRefresh

func (c *Client) HandleRefresh(w http.ResponseWriter, r *http.Request)

func (*Client) Target

func (c *Client) Target() string

type LoginRequest

type LoginRequest struct {
	Login string `json:"login"`
}

type OTPRequest

type OTPRequest struct {
	Otp   string `json:"otp"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL