auth

package
v0.0.0-...-33d7cd8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAccount

func AddAccount(ad *AccountData) *mastodon.Client

func GetSecret

func GetSecret(s string) string

Types

type Account

type Account struct {
	Name         string
	Server       string
	ClientID     string
	ClientSecret string
	AccessToken  string
}

type AccountData

type AccountData struct {
	Accounts []Account `yaml:"accounts"`
}

func GetAccounts

func GetAccounts(filepath string) (*AccountData, error)

func StartAuth

func StartAuth(newUser bool) *AccountData

func (*AccountData) Save

func (ad *AccountData) Save(filepath string) error

Jump to

Keyboard shortcuts

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