interfaces

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 2 Imported by: 2

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
}

type CanonicalDomainFunc

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

CanonicalDomainFunc is exported as a template function

func (*CanonicalDomainFunc) Func

func (c *CanonicalDomainFunc) Func() 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() 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