application

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouterRouter

type RouterRouter interface {
	Base() *url.URL
}

type Service

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

Service exposes helper methods to handle canonical base urls

func (*Service) GetBaseDomain

func (s *Service) GetBaseDomain() string

GetBaseDomain returns the canonical base domain

func (*Service) GetBaseUrl

func (s *Service) GetBaseUrl() string

GetBaseUrl returns the canonical base url

func (*Service) GetCanonicalUrlForCurrentRequest

func (s *Service) GetCanonicalUrlForCurrentRequest(ctx context.Context) string

GetCanonicalUrlForCurrentRequest return the canonical url for the current request @todo: Add logic to add allowed parameters via controller

func (*Service) Inject

func (s *Service) Inject(router RouterRouter, config *struct {
	BaseURL string `inject:"config:canonicalurl.baseurl"`
}) *Service

Inject Service dependencies

Jump to

Keyboard shortcuts

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