toth

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MPL-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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