server

package
v0.0.0-...-e826d4e Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config struct {
	MySQLHost  string
	MySQLPort  int
	Listen     string
	MySQLDump  string
	SSLCert    string
	SSLKey     string
	LimitIPs   string // comma-separated
	LimitUsers string // comma-separated
}

Config for server

Functions

func Listen

func Listen(appVer string) error

Types

type Database

type Database struct {
	Name string `json:"name"`
}

Database struct

type Table

type Table struct {
	Name       string `json:"name"`
	Type       string `json:"Type"`
	Rows       int64  `json:"rows"`
	CreateTime string `json:"create_time"`
	Checksum   int64  `json:"checksum"`
	Create     string `json:"create"`
	CreateHash string `json:"create_hash"`
}

Table struct

type Tables

type Tables struct {
	Database string  `json:"database"`
	Create   string  `json:"create"`
	Tables   []Table `json:"tables"`
}

Tables struct

Jump to

Keyboard shortcuts

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