providers

package
v0.0.0-...-b2d281f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	CreateCarbonEstimate(carbon int) (*models.Estimate, error)
	RetrieveEstimate(slug string) (*models.Estimate, error)
	Purchase(estimate models.EstimateIn) (*models.Purchase, error)
}

Provider is the interface that describes the behaviour a carbon offset provider is expected to implement.

func GetProviderAPI

func GetProviderAPI(p models.Provider) (Provider, error)

GetProviderAPI is used to get the active API object for the given provider model name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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