index

package
v0.51.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTagGenerator

func AddTagGenerator(generator IndexTagGenerator)

func GenerateTags

func GenerateTags() []string

Types

type BaseTagGenerator

type BaseTagGenerator struct {
}

BaseTagGenerator generates the <base> tag on index.html. This allow backend to change the base path of api requests from frontend to allow KHI placed under specified path.

func (*BaseTagGenerator) GenerateTags

func (b *BaseTagGenerator) GenerateTags() []string

GenerateTags implements IndexTagGenerator.

type IndexTagGenerator

type IndexTagGenerator interface {
	// GenerateTags returns the tags injected in the header.
	GenerateTags() []string
}

IndexTagGenerator generete list of tags to be injected in the index.html.

type ServerBaseMetaTagGenerator

type ServerBaseMetaTagGenerator struct {
}

ServerBaseMetaTagGenerator generates a <meta> tag and that specify the base path for API client used in frontend. The path should be usually same as the base tag generated with BaseTagGenerator, but this can be different especially when Angular dev server needs to host the frontend files whereas Golang server works on another port.

func (*ServerBaseMetaTagGenerator) GenerateTags

func (s *ServerBaseMetaTagGenerator) GenerateTags() []string

GenerateTags implements IndexTagGenerator.

Jump to

Keyboard shortcuts

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