Documentation ¶
Index ¶
- Variables
- type Module
- func (m *Module) CreateAccountHandler(ctx context.Context, accountI fedihelper.Account) (err error)
- func (m *Module) FetchActor(ctx context.Context, actorIRI *url.URL) (*fedihelper.Actor, error)
- func (m *Module) FetchHostMeta(ctx context.Context, domain string) (*fedihelper.HostMeta, error)
- func (m *Module) FetchWebFinger(ctx context.Context, wfURI fedihelper.WebfingerURI, username, domain string) (*fedihelper.WebFinger, error)
- func (m *Module) GenInstanceFromDomain(ctx context.Context, domain string) (*models.Instance, error)
- func (m *Module) GetAccountHandler(ctx context.Context, instanceI fedihelper.Instance, username string) (fedihelper.Account, bool, error)
- func (m *Module) GetLoginURL(ctx context.Context, redirectURI *url.URL, instance *models.Instance) (*url.URL, bool, error)
- func (m *Module) Helper(s fedihelper.SoftwareName) (fedihelper.Helper, error)
- func (m *Module) NewAccountFromUsername(ctx context.Context, username string, instance *models.Instance) (*models.Account, error)
- func (*Module) NewAccountHandler(_ context.Context) (account fedihelper.Account, err error)
- func (m *Module) NewInstanceFromDomain(ctx context.Context, domain string) (*models.Instance, error)
- func (m *Module) UpdateAccountInfo(ctx context.Context, account *models.Account) error
- func (m *Module) UpdateInstanceInfo(ctx context.Context, instance *models.Instance) error
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 (*Module) CreateAccountHandler ¶
func (*Module) FetchActor ¶
func (*Module) FetchHostMeta ¶
func (*Module) FetchWebFinger ¶
func (m *Module) FetchWebFinger(ctx context.Context, wfURI fedihelper.WebfingerURI, username, domain string) (*fedihelper.WebFinger, error)
func (*Module) GenInstanceFromDomain ¶
func (*Module) GetAccountHandler ¶
func (m *Module) GetAccountHandler(ctx context.Context, instanceI fedihelper.Instance, username string) (fedihelper.Account, bool, error)
func (*Module) GetLoginURL ¶
func (*Module) Helper ¶
func (m *Module) Helper(s fedihelper.SoftwareName) (fedihelper.Helper, error)
func (*Module) NewAccountFromUsername ¶
func (*Module) NewAccountHandler ¶
func (*Module) NewInstanceFromDomain ¶
func (*Module) UpdateAccountInfo ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.