Documentation ¶
Index ¶
- Variables
- type Module
- func (m *Module) CreateAccountHandler(ctx context.Context, accountI fedihelper.Account) (err error)
- func (m *Module) CreateInstanceHandler(ctx context.Context, instanceI fedihelper.Instance) (err error)
- func (m *Module) GetAccountHandler(ctx context.Context, instanceI fedihelper.Instance, username string) (fedihelper.Account, bool, error)
- func (m *Module) GetInstanceHandler(ctx context.Context, domain string) (fedihelper.Instance, bool, error)
- func (m *Module) GetLoginURL(ctx context.Context, act string) (*url.URL, error)
- func (m *Module) GetTokenHandler(_ context.Context, o interface{}) (token string)
- func (m *Module) Helper(s fedihelper.Software) fedihelper.Helper
- func (*Module) NewAccountHandler(_ context.Context) (account fedihelper.Account, err error)
- func (m *Module) NewFediAccountFromUsername(ctx context.Context, username string, instance *models.FediInstance) (*models.FediAccount, error)
- func (m *Module) NewFediInstanceFromDomain(ctx context.Context, domain string) (*models.FediInstance, error)
- func (*Module) NewInstanceHandler(_ context.Context) (instance fedihelper.Instance, err error)
- func (m *Module) UpdateInstanceHandler(ctx context.Context, instanceI fedihelper.Instance) (err 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) CreateInstanceHandler ¶
func (*Module) GetAccountHandler ¶
func (m *Module) GetAccountHandler(ctx context.Context, instanceI fedihelper.Instance, username string) (fedihelper.Account, bool, error)
func (*Module) GetInstanceHandler ¶
func (*Module) GetLoginURL ¶
func (*Module) GetTokenHandler ¶
func (*Module) Helper ¶
func (m *Module) Helper(s fedihelper.Software) fedihelper.Helper
func (*Module) NewAccountHandler ¶
func (*Module) NewFediAccountFromUsername ¶
func (m *Module) NewFediAccountFromUsername(ctx context.Context, username string, instance *models.FediInstance) (*models.FediAccount, error)
func (*Module) NewFediInstanceFromDomain ¶
func (*Module) NewInstanceHandler ¶
func (*Module) UpdateInstanceHandler ¶
Click to show internal directories.
Click to hide internal directories.