feature

package
v3.45.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateLevelParams

type CreateLevelParams struct {
	Name        string `json:"name,omitempty"`
	Value       string `json:"value,omitempty"`
	IsUnlimited *bool  `json:"is_unlimited,omitempty"`
	Level       *int32 `json:"level,omitempty"`
}

type CreateRequestParams

type CreateRequestParams struct {
	Id          string               `json:"id,omitempty"`
	Name        string               `json:"name"`
	Description string               `json:"description,omitempty"`
	Type        featureEnum.Type     `json:"type,omitempty"`
	Unit        string               `json:"unit,omitempty"`
	Levels      []*CreateLevelParams `json:"levels,omitempty"`
}

type Feature

type Feature struct {
	Id              string                 `json:"id"`
	Name            string                 `json:"name"`
	Description     string                 `json:"description"`
	Status          featureEnum.Status     `json:"status"`
	Type            featureEnum.Type       `json:"type"`
	Unit            string                 `json:"unit"`
	ResourceVersion int64                  `json:"resource_version"`
	UpdatedAt       int64                  `json:"updated_at"`
	CreatedAt       int64                  `json:"created_at"`
	Levels          []*Level               `json:"levels"`
	CustomField     map[string]interface{} `json:"custom_field"`
	Object          string                 `json:"object"`
}

type Level

type Level struct {
	Name        string `json:"name"`
	Value       string `json:"value"`
	Level       int32  `json:"level"`
	IsUnlimited bool   `json:"is_unlimited"`
	Object      string `json:"object"`
}

type ListRequestParams

type ListRequestParams struct {
	Limit  *int32               `json:"limit,omitempty"`
	Offset string               `json:"offset,omitempty"`
	Name   *filter.StringFilter `json:"name,omitempty"`
	Id     *filter.StringFilter `json:"id,omitempty"`
	Status *filter.EnumFilter   `json:"status,omitempty"`
	Type   *filter.EnumFilter   `json:"type,omitempty"`
}

type UpdateLevelParams

type UpdateLevelParams struct {
	Name        string `json:"name,omitempty"`
	Value       string `json:"value,omitempty"`
	IsUnlimited *bool  `json:"is_unlimited,omitempty"`
	Level       *int32 `json:"level,omitempty"`
}

type UpdateRequestParams

type UpdateRequestParams struct {
	Name        string               `json:"name,omitempty"`
	Description string               `json:"description,omitempty"`
	Unit        string               `json:"unit,omitempty"`
	Levels      []*UpdateLevelParams `json:"levels,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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