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 ¶
func (c *CanonicalDomainFunc) Inject(service ApplicationService) *CanonicalDomainFunc
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 ¶
func (c *CanonicalURLFunc) Inject(service ApplicationService) *CanonicalURLFunc
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
Click to show internal directories.
Click to hide internal directories.