fhclient

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents an authentication client.

func NewClient

func NewClient() *Client

NewClient creates a new authentication client with the given token.

func (*Client) Login

func (c *Client) Login(ctx context.Context, email, password string) (string, error)

Login performs a login request with the provided email and password.

func (*Client) SetToken

func (c *Client) SetToken(token string)

SetToken sets the token for the client.

type LoginResponse

type LoginResponse struct {
	AuthLogin struct {
		Token string
	}
}

LoginResponse represents the response structure for the Login mutation.

Jump to

Keyboard shortcuts

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