model

package
v0.0.0-...-b5dcede Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncSqlResult

type AsyncSqlResult struct {
	Rows       *sqlx.Rows
	QueryIndex int
	//sql.Result
	Err error
}

type ConfigDatabasesMap

type ConfigDatabasesMap struct {
	Proto           string   `json:"proto"`
	Value           string   `json:"value"`
	Name            string   `json:"name"`
	Node            string   `json:"node"`
	Host            string   `json:"host"`
	Primary         bool     `json:"primary"`
	Online          bool     `json:"online"`
	URL             string   `json:"url"`
	ProtectedTables []string `json:"-"`
	SkipTables      []string `json:"-"`
}

type ConfigURLNode

type ConfigURLNode struct {
	Name    string `json:"name"`
	URL     string `json:"url"`
	Primary bool   `json:"primary"`
}

type DataDatabasesMap

type DataDatabasesMap struct {
	Proto        string `json:"proto"`
	Value        string `json:"value"`
	Node         string `json:"node"`
	Name         string `json:"name"`
	DBname       string `json:"db_name"`
	Host         string `json:"host"`
	TableSeries  string `json:"time_series"`
	TableSamples string `json:"samples"`
	Primary      bool   `json:"primary"`
	Online       bool   `json:"online"`
}

type JSONText

type JSONText json.RawMessage

func (JSONText) MarshalJSON

func (j JSONText) MarshalJSON() ([]byte, error)

MarshalJSON returns the *j as the JSON encoding of j.

func (*JSONText) Scan

func (js *JSONText) Scan(value interface{}) error

func (JSONText) String

func (j JSONText) String() string

String supports pretty printing for JSONText types.

func (*JSONText) Unmarshal

func (j *JSONText) Unmarshal(v interface{}) error

Unmarshal unmarshal's the json in j to v, as in json.Unmarshal.

func (*JSONText) UnmarshalJSON

func (j *JSONText) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *j to a copy of data

func (JSONText) Value

func (js JSONText) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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