cli

package
v0.0.0-...-e19ae27 Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cli provides virtual command-line access in pgproxy include start,cli and stop action.

Package cli provides virtual command-line access in pgproxy include start,cli and stop action.

Package cli provides virtual command-line access in pgproxy include start,cli and stop action.

Index

Constants

View Source
View Source
const (
	VERSION = "version-0.0.1"
)

Variables

This section is empty.

Functions

func Command

func Command()

Command line access to pgproxy and provide a friendly display interface.

func Main

func Main(config interface{}, pargs interface{})

pgproxy Main

Types

type Client

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

func (*Client) Request

func (c *Client) Request(sql string)

Client request switcher,for different types of sql statement calls different requests.

type ProxyConfig

type ProxyConfig struct {
	ServerConfig struct {
		ProxyAddr string
	}
	DB map[string]struct {
		Addr     string
		User     string
		Password string
		DbName   string
	} `toml:"DB"`
}

proxy server config struct

Jump to

Keyboard shortcuts

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