shared

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Location string
)

Functions

func ConnectArgs

func ConnectArgs(args []string) string

func DbSet

func DbSet(path string) (string, bool)

func HandleRequest

func HandleRequest(data string, err error)

func Login

func Login(u, p string) (string, error)

func MakeRequest

func MakeRequest(query, host, token string)

func Request

func Request(host, path, query, sessionId string) (string, error)

func TableSet

func TableSet(path string) (string, bool)

func ValidUrl

func ValidUrl(path string) bool

Types

type Body

type Body struct {
	Query     string `json:"query"`
	SessionId string `json:"session_id"`
}

type Column

type Column struct {
	Name    string `json:"name"`
	Type    string `json:"type"`
	Default any    `json:"default"`
}

type Table

type Table struct {
	Columns []Column         `json:"columns"`
	Rows    []map[string]any `json:"rows"`
}

func (Table) Draw

func (t Table) Draw() string

Jump to

Keyboard shortcuts

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