fedi

package
v0.0.0-...-5767ed4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCantCast = errors.New("unable to cast interface to type")

Functions

This section is empty.

Types

type Module

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

func New

func New(d db.DB, h fedihelper.HTTP, k kv.KV, t *token.Tokenizer) (*Module, error)

func (*Module) CreateAccountHandler

func (m *Module) CreateAccountHandler(ctx context.Context, accountI fedihelper.Account) (err error)

func (*Module) CreateInstanceHandler

func (m *Module) CreateInstanceHandler(ctx context.Context, instanceI fedihelper.Instance) (err error)

func (*Module) GetAccountHandler

func (m *Module) GetAccountHandler(ctx context.Context, instanceI fedihelper.Instance, username string) (fedihelper.Account, bool, error)

func (*Module) GetInstanceHandler

func (m *Module) GetInstanceHandler(ctx context.Context, domain string) (fedihelper.Instance, bool, error)

func (*Module) GetLoginURL

func (m *Module) GetLoginURL(ctx context.Context, act string) (*url.URL, error)

func (*Module) GetTokenHandler

func (m *Module) GetTokenHandler(_ context.Context, o interface{}) (token string)

func (*Module) Helper

func (*Module) NewAccountHandler

func (*Module) NewAccountHandler(_ context.Context) (account fedihelper.Account, err error)

func (*Module) NewFediAccountFromUsername

func (m *Module) NewFediAccountFromUsername(ctx context.Context, username string, instance *models.FediInstance) (*models.FediAccount, error)

func (*Module) NewFediInstanceFromDomain

func (m *Module) NewFediInstanceFromDomain(ctx context.Context, domain string) (*models.FediInstance, error)

func (*Module) NewInstanceHandler

func (*Module) NewInstanceHandler(_ context.Context) (instance fedihelper.Instance, err error)

func (*Module) UpdateInstanceHandler

func (m *Module) UpdateInstanceHandler(ctx context.Context, instanceI fedihelper.Instance) (err error)

Jump to

Keyboard shortcuts

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