api

package
v3.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Start   time.Time              `json:"start"`
	Stop    time.Time              `json:"stop"`
	Toggles map[string]ToggleCount `json:"toggles"`
}

func (Bucket) IsEmpty

func (b Bucket) IsEmpty() bool

type Event

type Event struct {
	Id        int          `json:"id"`
	Type      string       `json:"type"`
	CreatedBy string       `json:"createdBy"`
	CreatedAt time.Time    `json:"createdAt"`
	Data      EventData    `json:"data"`
	Diffs     *[]EventDiff `json:"diffs"`
}

type EventData

type EventData struct {
	Name        string         `json:"name"`
	Description string         `json:"description"`
	Enabled     bool           `json:"enabled"`
	Strategies  []api.Strategy `json:"strategies"`
	CreatedAt   time.Time      `json:"createdAt"`
}

type EventDiff

type EventDiff struct {
	Kind string   `json:"kind"`
	Path []string `json:"path"`
	Lhs  bool     `json:"lhs"`
	Rhs  bool     `json:"rhs"`
}

type EventResponse

type EventResponse struct {
	api.Response
	Events []Event `json:"events"`
}

type ToggleCount

type ToggleCount struct {
	Yes      int32            `json:"yes"`
	No       int32            `json:"no"`
	Variants map[string]int32 `json:"variants"`
}

Jump to

Keyboard shortcuts

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