tc

package
v0.0.0-...-1b3fcde Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: BSD-3-Clause Imports: 40 Imported by: 0

Documentation

Overview

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Copyright (c) 2023, donnie <donnie4w@gmail.com> All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

github.com/donnie4w/tldb

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminView

type AdminView struct {
	Show       string
	AdminUser  map[string]string
	CliUser    []string
	MqUser     []string
	Stat       bool
	Init       bool
	ShowCreate bool
}

********************************************************************************

type AlterTable

type AlterTable struct {
	TableName   string
	ID          int64
	Columns     map[string]*FieldInfo
	ColumnValue map[string]string
}

********************************************************************************

type Cpu

type Cpu struct {
	Cpus  []float64
	Cores int
}

type DataView

type DataView struct {
	Tb      []*Tables
	Tds     []*TData
	ColName map[string][]byte
	Sb      *SelectBean
	Stat    bool
}

type Disk

type Disk struct {
	UsedGB  uint64
	TotalGB uint64
}

type FieldInfo

type FieldInfo struct {
	Idx   bool
	Type  string
	Tname string
}

type LANG

type LANG int
const (
	ZH LANG = 0
	EN LANG = 1
)

type Monitor

type Monitor struct {
	Alloc        uint64
	TotalAlloc   uint64
	NumGC        uint32
	LastGC       uint64
	NextGC       uint64
	NumGoroutine int
	NumCPU       int
	CountPut     int64
	CcPut        int64
	CountGet     int64
	CcGet        int64
	RamUsage     float64
	DiskFree     uint64
	CpuUsage     float64
}

type Ram

type Ram struct {
	UsedMB  uint64
	TotalMB uint64
}

type SelectBean

type SelectBean struct {
	Name        string
	Id          string
	ColumnName  string
	ColumnValue string
	StartId     string
	Limit       string
}

type SysParam

type SysParam struct {
	DBFILEDIR         string
	MQTLS             bool
	ADMINTLS          bool
	CLITLS            bool
	CLICRT            string
	CLIKEY            string
	MQCRT             string
	MQKEY             string
	ADMINCRT          string
	ADMINKEY          string
	COCURRENT_PUT     int64
	COCURRENT_GET     int64
	DBMode            int
	NAMESPACE         string
	VERSION           string
	BINLOGSIZE        int64
	ADDR              string
	CLIADDR           string
	MQADDR            string
	WEBADMINADDR      string
	CLUSTER_NUM       int
	PWD               string
	PUBLICKEY         string
	PRIVATEKEY        string
	CLUSTER_NUM_FINAL bool
}

********************************************************************************

type SysParamView

type SysParamView struct {
	SYS  *SysParam
	Stat bool
}

type SysVar

type SysVar struct {
	StartTime      string
	LocalTime      string
	Time           string
	UUID           int64
	RUNUUIDS       string
	STAT           string
	TIME_DEVIATION string
	ADDR           string
	STORENODENUM   string
	CLUSTER_NUM    string
	MQADDR         string
	CLIADDR        string
	ADMINADDR      string
	CCPUT          int64
	CCGET          int64
	COUNTPUT       int64
	COUNTGET       int64
	SyncCount      int64
}

type SysVarView

type SysVarView struct {
	Stat bool
	Show string
	SYS  *SysVar
	RN   []*stub.RemoteNode
}

type TData

type TData struct {
	Name    string
	Id      int64
	Columns map[string]string
}

type TXTYPE

type TXTYPE int
const (
	LOGIN TXTYPE
	INIT
	SYSVAR
	DATA
	MQ
	SYS
	CREATE
	ALTER
	INSERT
	DELETE
	UPDATE
	DROP
	LOAD
	LOADDATA
	MONITOR
)

type Tables

type Tables struct {
	Name    string
	Columns []string
	Idxs    []string
	Seq     int64
	Sub     int64
}

Jump to

Keyboard shortcuts

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