Versions in this module Expand all Collapse all v0 v0.2.2 Aug 7, 2026 v0.2.1 Aug 7, 2026 v0.2.0 Aug 7, 2026 Changes in this version + type Campaign struct + Cohort string + Edges []CampaignEdge + ExitEvent string + FrequencyCap *int + FrequencyCapWindowHours *int + FromName string + Name string + Nodes []CampaignNode + QuietHours map[string]any + Reentry string + ReentryDays *int + ReplyToEmail string + Slug string + Status string + UpdatedAt string + type CampaignEdge struct + From string + Outcome string + To string + type CampaignNode struct + Config map[string]any + Key string + Type string type Client + func (c *Client) ApplyCampaign(ctx context.Context, projectID string, spec Campaign) (*Campaign, error) + func (c *Client) ApplyCohort(ctx context.Context, projectID string, spec Cohort) (*Cohort, error) + func (c *Client) ApplyExperiment(ctx context.Context, projectID string, spec Experiment) (*Experiment, error) + func (c *Client) ApplyFlag(ctx context.Context, projectID string, spec Flag) (*Flag, error) + func (c *Client) ApplyInsight(ctx context.Context, projectID, slug string, spec Insight) (*Insight, error) + func (c *Client) ApplyUnit(ctx context.Context, projectID string, spec Unit) (*Unit, error) + func (c *Client) Campaign(ctx context.Context, projectID, slug string) (*Campaign, error) + func (c *Client) Campaigns(ctx context.Context, projectID string) ([]Campaign, error) + func (c *Client) Cohort(ctx context.Context, projectID, slug string) (*Cohort, error) + func (c *Client) Cohorts(ctx context.Context, projectID string) ([]Cohort, error) + func (c *Client) CreateIdentitySecret(ctx context.Context, projectID, kid string) (*IdentitySecret, error) + func (c *Client) DeleteCampaign(ctx context.Context, projectID, slug string) error + func (c *Client) DeleteCohort(ctx context.Context, projectID, slug string) error + func (c *Client) DeleteExperiment(ctx context.Context, projectID, key string) error + func (c *Client) DeleteFlag(ctx context.Context, projectID, key string) error + func (c *Client) DeleteInsight(ctx context.Context, projectID, slug string) error + func (c *Client) DeleteUnit(ctx context.Context, projectID, slug string) error + func (c *Client) DisableIdentitySecret(ctx context.Context, projectID string, id int) (*IdentitySecret, error) + func (c *Client) Experiment(ctx context.Context, projectID, key string) (*Experiment, error) + func (c *Client) Experiments(ctx context.Context, projectID string) ([]Experiment, error) + func (c *Client) Flag(ctx context.Context, projectID, key string) (*Flag, error) + func (c *Client) Flags(ctx context.Context, projectID string) ([]Flag, error) + func (c *Client) IdentitySecrets(ctx context.Context, projectID string) ([]IdentitySecret, error) + func (c *Client) Insight(ctx context.Context, projectID, slug string) (*Insight, error) + func (c *Client) Insights(ctx context.Context, projectID string) ([]Insight, error) + func (c *Client) LivetailTicket(ctx context.Context, projectID string) (*LivetailTicket, error) + func (c *Client) MaterializeCohort(ctx context.Context, projectID, slug string) (*Cohort, error) + func (c *Client) Unit(ctx context.Context, projectID, slug string) (*Unit, error) + func (c *Client) Units(ctx context.Context, projectID string) ([]Unit, error) + type Cohort struct + Definition map[string]any + LastMaterializedAt string + MembersCount int + Name string + Slug string + UpdatedAt string + type Experiment struct + AttributionWindowDays int + ControlVariant string + Flag string + GuardrailMetrics []map[string]any + Hypothesis string + Key string + MinimumDetectableEffect *float64 + Name string + PrimaryMetric map[string]any + SecondaryMetrics []map[string]any + Status string + UpdatedAt string + type Flag struct + Active bool + Filters map[string]any + Key string + Name string + RolloutPercentage int + UpdatedAt string + Variants []map[string]any + type IdentitySecret struct + CreatedAt string + ID int + Kid string + RevokedAt string + Secret string + type Insight struct + Config map[string]any + Name string + Slug string + Type string + UpdatedAt string + type LiveEvent struct + DistinctID string + Event string + PersonID string + Properties json.RawMessage + Source string + Timestamp string + UUID string + Verified bool + type LivetailTicket struct + ExpiresAt string + Ticket string + URL string type Project + Activated bool + type Unit struct + Content map[string]any + Display map[string]any + EndsAt string + Name string + RolloutPercentage int + Slug string + StartsAt string + Status string + Targeting map[string]any + Type string + UpdatedAt string v0.1.0 Jul 20, 2026 Changes in this version + const KindPublic + const KindSecret + type APIKey struct + CreatedAt string + ID int + Key string + Kind string + Label string + type Catalog struct + Events []struct{ ... } + Properties []struct{ ... } + type Client struct + func New(creds *config.Credentials) *Client + func (c *Client) Catalog(ctx context.Context, projectID string) (*Catalog, error) + func (c *Client) Context(ctx context.Context) (*Context, error) + func (c *Client) CreateKey(ctx context.Context, projectID, kind, label string) (*APIKey, error) + func (c *Client) CreateProject(ctx context.Context, teamID int, name, timezone string) (*Project, error) + func (c *Client) Events(ctx context.Context, projectID string, filters url.Values) (*EventsPage, error) + func (c *Client) Keys(ctx context.Context, projectID string) ([]APIKey, error) + func (c *Client) Project(ctx context.Context, projectID string) (*Project, error) + func (c *Client) Projects(ctx context.Context, teamID int) ([]Project, error) + func (c *Client) SwitchProject(ctx context.Context, projectID string) (*Context, error) + func (c *Client) SwitchTeam(ctx context.Context, teamID int) (*Context, error) + func (c *Client) Teams(ctx context.Context) ([]Team, error) + func (c *Client) Whoami(ctx context.Context) (*User, error) + type Context struct + Project *Project + Team *Team + type Event struct + DistinctID string + Event string + PersonID string + Properties string + Timestamp string + UUID string + VerificationMode string + Verified int + type EventsPage struct + Events []Event + HasMore bool + Page int + PerPage int + type Project struct + CreatedAt string + ID string + IdentityVerificationMode string + Name string + PublicKey string + TeamID int + Timezone string + type Team struct + ID int + IsCurrent bool + IsPersonal bool + Name string + Role string + RoleLabel string + Slug string + type User struct + CurrentProject *Project + CurrentTeam *Team + Email string + ID int + Name string