models

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.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 AuthenticationRequest

type AuthenticationRequest struct {
	GrantType    string `json:"grant_type"`
	Scope        string `json:"scope"`
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

type AuthenticationResponse

type AuthenticationResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type Campaign

type Campaign struct {
	ID              string           `json:"id"`
	ProjectID       string           `json:"project_id"`
	Name            string           `json:"name"`
	Description     string           `json:"description"`
	Type            string           `json:"type"`
	Status          string           `json:"status"`
	VariationGroups []VariationGroup `json:"variation_groups"`
	Scheduler       Scheduler        `json:"scheduler"`
}

type CampaignToggleRequest

type CampaignToggleRequest struct {
	State string `json:"state"`
}

type Flag

type Flag struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	Source      string `json:"source"`
}

type FlagUsage

type FlagUsage struct {
	ID                string `json:"id"`
	FlagKey           string `json:"flag_key"`
	Repository        string `json:"repository"`
	FilePath          string `json:"file_path"`
	Branch            string `json:"branch"`
	Line              string `json:"line"`
	CodeLineHighlight string `json:"code_line_highlight"`
	Code              string `json:"code"`
}

type Goal added in v0.3.0

type Goal struct {
	ID       string `json:"id"`
	Label    string `json:"label"`
	Type     string `json:"type"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type InnerTargeting

type InnerTargeting struct {
	Key      string      `json:"key"`
	Operator string      `json:"operator"`
	Value    interface{} `json:"value"`
}

type Modification

type Modification struct {
	Type  string      `json:"type"`
	Value interface{} `json:"value"`
}

type PanicRequest

type PanicRequest struct {
	Panic string `json:"panic"`
}

type Project

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ProjectRequest

type ProjectRequest struct {
	Name string `json:"name"`
}

type ProjectToggleRequest

type ProjectToggleRequest struct {
	State string `json:"state"`
}

type Scheduler

type Scheduler struct {
	StartDate string `json:"start_date"`
	StopDate  string `json:"stop_date"`
	TimeZone  string `json:"timezone"`
}

type Targeting

type Targeting struct {
	TargetingGroups []TargetingGroup `json:"targeting_groups"`
}

type TargetingGroup

type TargetingGroup struct {
	Targetings []InnerTargeting `json:"targetings"`
}

type TargetingKey

type TargetingKey struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
}

type Token

type Token struct {
	ClientID  string `json:"client_id"`
	AccountID string `json:"account"`
	ExpiresIn int    `json:"expires_in"`
	Scope     string `json:"scope"`
}

type User

type User struct {
	Email string `json:"email"`
	Role  string `json:"role"`
}

type Variation

type Variation struct {
	ID            string       `json:"id"`
	Name          string       `json:"name"`
	Reference     bool         `json:"reference"`
	Allocation    int          `json:"allocation"`
	Modifications Modification `json:"modifications"`
}

type VariationGroup

type VariationGroup struct {
	ID         string      `json:"id"`
	Name       string      `json:"name"`
	Variations []Variation `json:"variations"`
	Targeting  Targeting   `json:"targeting"`
}

Jump to

Keyboard shortcuts

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