Help us shape the future of Go! Take the 2026 Go Developer Survey

vitessparams

package
v0.346.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package vitessparams holds the parsing and output shared by the commands that change Vitess parameters on keyspaces and VTGates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseChanges

func ParseChanges(sets, resets, namespaces []string, example string) (map[string]map[string]*string, error)

ParseChanges groups --parameters and --reset values by namespace. A nil value resets the parameter to its default. example is a valid --parameters value shown in error messages.

Types

type ConfigChange

type ConfigChange struct {
	ID        string `header:"id" json:"id"`
	Namespace string `header:"namespace" json:"change_type"`
	State     string `header:"state" json:"state"`
	Changes   string `header:"changes" json:"changes"`
	CreatedAt string `header:"created at" json:"created_at"`
	// contains filtered or unexported fields
}

func ToConfigChange

func ToConfigChange(change *ps.VitessConfigChange) *ConfigChange

func ToConfigChanges

func ToConfigChanges(changes []*ps.VitessConfigChange) []*ConfigChange

func (*ConfigChange) MarshalCSVValue

func (c *ConfigChange) MarshalCSVValue() interface{}

func (*ConfigChange) MarshalJSON

func (c *ConfigChange) MarshalJSON() ([]byte, error)

type Parameter

type Parameter struct {
	Namespace string `header:"namespace" json:"namespace"`
	Name      string `header:"name" json:"name"`
	Value     string `header:"value" json:"value"`
	Default   string `header:"default" json:"default_value"`
	Type      string `header:"type" json:"parameter_type"`
	Override  bool   `header:"override" json:"override"`
	// contains filtered or unexported fields
}

func ToParameters

func ToParameters(parameters []*ps.VitessParameter) []*Parameter

func (*Parameter) MarshalCSVValue

func (p *Parameter) MarshalCSVValue() interface{}

func (*Parameter) MarshalJSON

func (p *Parameter) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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