types

package
v0.0.0-...-a701c08 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTranslation

type BaseTranslation interface {
	Key() string
}

type FirebaseRemoteConfig

type FirebaseRemoteConfig struct {
	Conditions      []interface{}                             `json:"conditions"`
	Parameters      map[string]*FirebaseRemoteConfigParameter `json:"parameters"`
	Version         interface{}                               `json:"version"`
	ParameterGroups []interface{}                             `json:"parameterGroups"`
}

A response to/reply from the Firebase Remote Config API.

Parameters is the only important field in this application, so the other fields' types are not defined.

type FirebaseRemoteConfigParameter

type FirebaseRemoteConfigParameter struct {
	DefaultValue      *FirebaseRemoteConfigValue            `json:"defaultValue"`
	ConditionalValues map[string]*FirebaseRemoteConfigValue `json:"conditionalValues"`
	Description       string                                `json:"description"`
	ValueType         string                                `json:"valueType"`
}

type FirebaseRemoteConfigValue

type FirebaseRemoteConfigValue struct {
	Value                *string      `json:"value"`
	UseInAppDefault      *bool        `json:"useInAppDefault"`
	PersonalizationValue *interface{} `json:"personalizationValue"`
	RolloutValue         *interface{} `json:"rolloutValue"`
}

type JsonTranslations

type JsonTranslations struct {
	En map[string]interface{}
	Sv map[string]interface{}
}

type Translation

type Translation struct {
	En string
	Sv string
	// contains filtered or unexported fields
}

func NewTranslation

func NewTranslation(key, en, sv string) Translation

func (Translation) Key

func (t Translation) Key() string

type TranslationGroup

type TranslationGroup struct {

	// A list of translations or nested groups.
	Data []BaseTranslation
	// contains filtered or unexported fields
}

A group of translations or nested groups.

func NewTranslationGroup

func NewTranslationGroup(key string, data []BaseTranslation) TranslationGroup

func (TranslationGroup) Key

func (t TranslationGroup) Key() string

Jump to

Keyboard shortcuts

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