v1shell

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gopher string = `` /* 3987-byte string literal not displayed */

Functions

func ParseInsert

func ParseInsert(cmd string) (string, string, string, bool)

Returns parsed database, retention policy, point, and if the command was an INSERT statement if db and rp are both blank and command was INSERT statement, it was an "INSERT <point>" statement

Types

type Client

func (*Client) Create

func (c *Client) Create(ctx context.Context) error

func (*Client) GetDatabases

func (c *Client) GetDatabases(ctx context.Context) ([]string, error)

Get list of database names

func (*Client) GetMeasurements

func (c *Client) GetMeasurements(ctx context.Context) ([]string, error)

Get list of measurements for currently used database and retention policy

type EndingStatus

type EndingStatus uint

type FormatFunc

type FormatFunc func(api.InfluxqlJsonResponse)

type FormatType

type FormatType string
var (
	CsvFormat    FormatType = "csv"
	JsonFormat   FormatType = "json"
	ColumnFormat FormatType = "column"
	TableFormat  FormatType = "table"
)

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(
	res api.InfluxqlJsonResponseSeries,
	jumpToFirstPage bool,
	name string,
	tags map[string]string,
	curRes int,
	resMax int,
	curSer int,
	serMax int,
	scientific bool) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type PersistentQueryParams

type PersistentQueryParams struct {
	clients.OrgParams
	Database        string
	RetentionPolicy string
	Precision       string
	Format          FormatType
	Pretty          bool
	Scientific      bool

	Databases         []string
	RetentionPolicies []string
	Measurements      []string
	// contains filtered or unexported fields
}

func DefaultPersistentQueryParams

func DefaultPersistentQueryParams() PersistentQueryParams

type SuggestNode

type SuggestNode struct {
	Description string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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