Documentation ¶
Overview ¶
package toth is a clone of goth, but modified for multi-tenant usage instead of using
globals everywhere
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TothInstance ¶
type TothInstance struct {
// contains filtered or unexported fields
}
TothInstance wraps a goth configuration
func (*TothInstance) ClearProviders ¶
func (t *TothInstance) ClearProviders()
ClearProviders will remove all providers currently in use. This is useful, mostly, for testing purposes.
func (*TothInstance) GetProvider ¶
func (t *TothInstance) GetProvider(name string) (goth.Provider, error)
GetProvider returns a previously created provider. If Goth has not been told to use the named provider it will return an error.
func (*TothInstance) GetProviders ¶
func (t *TothInstance) GetProviders() goth.Providers
GetProviders returns a list of all the providers currently in use.
func (*TothInstance) Init ¶
func (t *TothInstance) Init()
Init just creates the basic configuration objects
func (*TothInstance) UseProviders ¶
func (t *TothInstance) UseProviders(viders ...goth.Provider)
UseProviders sets a list of available providers for use with Goth.
Click to show internal directories.
Click to hide internal directories.