url

package
v0.0.0-...-3a21483 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder structure

func (*Builder) GetURL

func (b *Builder) GetURL(req request.Request) string

GetURL method prepare URL be adding required authentication parameter values

func (*Builder) SetOptions

func (b *Builder) SetOptions(o options.Basic)

SetOptions method sets WooCommerce integration options to structure's inner variable

func (*Builder) SetQueryEnricher

func (b *Builder) SetQueryEnricher(qe QueryEnricher)

SetQueryEnricher ...

type QueryEnricher

type QueryEnricher interface {
	GetEnrichedQuery(url string, query url.Values, req request.Request) url.Values
}

QueryEnricher uses package auth to enrich existing query parameters with Authentication Based ones

type QueryEnricherMock

type QueryEnricherMock struct {
	// contains filtered or unexported fields
}

QueryEnricherMock ...

func (*QueryEnricherMock) GetEnrichedQuery

func (q *QueryEnricherMock) GetEnrichedQuery(url string, query URL.Values, req request.Request) URL.Values

GetEnrichedQuery ...

Jump to

Keyboard shortcuts

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