interfaces

package
v3.0.0-alpha4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: OSL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService interface {
	GetBaseDomain() string
	GetCanonicalURLForCurrentRequest(context.Context) string
}

ApplicationService interface for general canonicalURL usage

type CanonicalDomainFunc

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

CanonicalDomainFunc is exported as a template function

func (*CanonicalDomainFunc) Func

func (c *CanonicalDomainFunc) Func(context.Context) interface{}

Func returns the canonicalDomain func

func (*CanonicalDomainFunc) Inject

Inject CanonicalDomainFunc dependencies

type CanonicalURLFunc

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

CanonicalURLFunc is exported as a template function

func (*CanonicalURLFunc) Func

func (c *CanonicalURLFunc) Func(ctx context.Context) interface{}

Func returns the CanonicalURLFunc function

func (*CanonicalURLFunc) Inject

Inject CanonicalURLFunc dependencies

type IsExternalURL

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

IsExternalURL is exported as a template function

func (*IsExternalURL) Func

func (c *IsExternalURL) Func(context.Context) interface{}

Func returns a boolean if a given URL is external

func (*IsExternalURL) Inject

func (c *IsExternalURL) Inject(service ApplicationService) *IsExternalURL

Inject CanonicalURLFunc dependencies

Jump to

Keyboard shortcuts

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