auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(user string) error

Login authenticates the user and saves the credentials in the system keychain.

func Logout

func Logout(user string) error

func Whoami

func Whoami() error

Types

type Client

type Client struct {
	Client *apiclient.GoToSocialSwaggerDocumentation
	Auth   runtime.ClientAuthInfoWriter
	// contains filtered or unexported fields
}

Client is a GtS API client with attached authentication credentials and rate limiter. Credentials may be no-op.

func NewAuthClient

func NewAuthClient(user string) (*Client, error)

func (*Client) Wait

func (c *Client) Wait() error

Jump to

Keyboard shortcuts

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