client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(clientID string, clientSecret string) (*gocancel.Client, error)

Create returns a gocancel Client.

Types

type CategoriesService added in v0.2.1

type CategoriesService interface {
	List(opts *gocancel.CategoriesListOptions) ([]*gocancel.Category, error)
	Get(categoryID string) (*gocancel.Category, error)
}

CategoriesService is the interface that wraps the gocancel CategoriesService.

func NewCategoriesService added in v0.2.1

func NewCategoriesService(client *gocancel.Client) CategoriesService

NewCategoriesService builds an instance of CategoriesService.

type LettersService added in v0.2.1

type LettersService interface {
	List() ([]*gocancel.Letter, error)
	Create(request *gocancel.LetterRequest) (*gocancel.Letter, error)
	Get(letterID string) (*gocancel.Letter, error)
}

LettersService is the interface that wraps the gocancel LettersService.

func NewLettersService added in v0.2.1

func NewLettersService(client *gocancel.Client) LettersService

NewLettersService builds an instance of LettersService.

type OrganizationsService added in v0.2.1

type OrganizationsService interface {
	List(opts *gocancel.OrganizationsListOptions) ([]*gocancel.Organization, error)
	Get(organizationID string) (*gocancel.Organization, error)
	ListProducts(organizationID string, opts *gocancel.OrganizationProductsListOptions) ([]*gocancel.Product, error)
	GetProduct(organizationID string, productID string) (*gocancel.Product, error)
}

OrganizationsService is the interface that wraps the gocancel OrganizationsService.

func NewOrganizationsService added in v0.2.1

func NewOrganizationsService(client *gocancel.Client) OrganizationsService

NewOrganizationsService builds an instance of OrganizationsService.

type ProductsService added in v0.2.1

type ProductsService interface {
	Get(productID string) (*gocancel.Product, error)
}

ProductsService is the interface that wraps the gocancel ProductsService.

func NewProductsService added in v0.2.1

func NewProductsService(client *gocancel.Client) ProductsService

NewProductsService builds an instance of ProductsService.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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