controllers

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslationController

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

TranslationController to be used to return translations for all labels as array

func (*TranslationController) GetAllTranslations

func (c *TranslationController) GetAllTranslations(ctx context.Context, r *web.Request) web.Result

GetAllTranslations controller for TranslationController

func (*TranslationController) Inject

func (c *TranslationController) Inject(
	responder *web.Responder,
	labelService *application.LabelService,
)

Inject dependencies

type TranslationJSON

type TranslationJSON struct {
	Key         string `json:"key"`
	Translation string `json:"translation"`
}

TranslationJSON helper struct to map the result

Jump to

Keyboard shortcuts

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