Documentation
¶
Index ¶
- type Condition
- type ConditionalValues
- type Parameter
- type ParameterGroup
- type ParameterValue
- type PersonalizationValue
- type RemoteConfig
- type RemoteConfigClient
- func (rcc *RemoteConfigClient) Get() (*RemoteConfig, error)
- func (rcc *RemoteConfigClient) ListAllVersions() ([]Version, error)
- func (rcc *RemoteConfigClient) ListVersionsByPageToken(pageToken string) (*VersionPage, error)
- func (rcc *RemoteConfigClient) Rollback(version int64) (*RemoteConfig, error)
- func (rcc *RemoteConfigClient) Update(config *RemoteConfig) (*RemoteConfig, error)
- type Rollback
- type UpdateOrigin
- type UpdateType
- type User
- type ValueType
- type Version
- type VersionPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionalValues ¶
type ConditionalValues ordered.OrderedMap[string, ParameterValue]
func (*ConditionalValues) Inner ¶
func (cv *ConditionalValues) Inner() *ordered.OrderedMap[string, ParameterValue]
func (*ConditionalValues) MarshalJSON ¶
func (cv *ConditionalValues) MarshalJSON() (res []byte, err error)
func (*ConditionalValues) UnmarshalJSON ¶
func (cv *ConditionalValues) UnmarshalJSON(data []byte) error
type Parameter ¶
type Parameter struct {
Description string `json:"description"`
ValueType ValueType `json:"valueType"`
DefaultValue *ParameterValue `json:"defaultValue"`
ConditionalValues *ConditionalValues `json:"conditionalValues"`
}
func (*Parameter) Value ¶
func (p *Parameter) Value() ParameterValue
type ParameterGroup ¶
type ParameterValue ¶
type ParameterValue struct {
Value *string `json:"value"`
UseInAppDefault *bool `json:"useInAppDefault"`
PersonalizationValue *PersonalizationValue `json:"personalizationValue"`
}
func (ParameterValue) GetValue ¶
func (dv ParameterValue) GetValue() string
type PersonalizationValue ¶
type PersonalizationValue struct {
PersonalizationId string `json:"personalizationId"`
}
type RemoteConfig ¶
type RemoteConfig struct {
ETag string `json:"-"`
Version Version `json:"version"`
Conditions []Condition `json:"conditions"`
Parameters map[string]Parameter `json:"parameters"`
ParameterGroups map[string]ParameterGroup `json:"parameterGroups"`
// contains filtered or unexported fields
}
func (*RemoteConfig) Decode ¶
func (rc *RemoteConfig) Decode(in any) error
func (*RemoteConfig) Refresh ¶
func (rc *RemoteConfig) Refresh() error
func (*RemoteConfig) Update ¶
func (rc *RemoteConfig) Update() error
type RemoteConfigClient ¶
type RemoteConfigClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, opts ...option.ClientOption) (*RemoteConfigClient, error)
func (*RemoteConfigClient) Get ¶
func (rcc *RemoteConfigClient) Get() (*RemoteConfig, error)
func (*RemoteConfigClient) ListAllVersions ¶
func (rcc *RemoteConfigClient) ListAllVersions() ([]Version, error)
func (*RemoteConfigClient) ListVersionsByPageToken ¶
func (rcc *RemoteConfigClient) ListVersionsByPageToken(pageToken string) (*VersionPage, error)
func (*RemoteConfigClient) Rollback ¶
func (rcc *RemoteConfigClient) Rollback(version int64) (*RemoteConfig, error)
func (*RemoteConfigClient) Update ¶
func (rcc *RemoteConfigClient) Update(config *RemoteConfig) (*RemoteConfig, error)
type UpdateOrigin ¶
type UpdateOrigin string
const ( UpdateOriginUnspecified UpdateOrigin = "REMOTE_CONFIG_UPDATE_ORIGIN_UNSPECIFIED" UpdateOriginConsole UpdateOrigin = "CONSOLE" UpdateOriginRESTAPI UpdateOrigin = "REST_API" UpdateOriginAdminSDKNode UpdateOrigin = "ADMIN_SDK_NODE" )
type UpdateType ¶
type UpdateType string
const ( UpdateTypeUnspecified UpdateType = "REMOTE_CONFIG_UPDATE_TYPE_UNSPECIFIED" UpdateTypeIncremental UpdateType = "INCREMENTAL_UPDATE" UpdateTypeForced UpdateType = "FORCED_UPDATE" UpdateTypeRollback UpdateType = "ROLLBACK" )
type Version ¶
type Version struct {
IsLegacy bool `json:"isLegacy"`
VersionNumber int64 `json:"versionNumber,string"`
UpdateTime time.Time `json:"updateTime"`
UpdateUser User `json:"updateUser"`
Description string `json:"description"`
UpdateOrigin UpdateOrigin `json:"updateOrigin"`
UpdateType UpdateType `json:"updateType"`
RollbackSource int64 `json:"rollbackSource,string"`
}
type VersionPage ¶
Click to show internal directories.
Click to hide internal directories.