network

package
v0.0.0-...-23032f1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2016 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package network provides network functions for bashistdb.

Index

Constants

View Source
const (
	RESULT  = "result"  // (query) results that should be printed
	HISTORY = "history" // history to import
	QUERY   = "query"   // query to run
	LOGINFO = "info"    // results that should go to log.Info
)

Message Types

Variables

This section is empty.

Functions

func ClientMode

func ClientMode() error

ClientMode is the client process fo bashistdb.

func ServerMode

func ServerMode() error

ServerMode is the server process of bashistdb.

Types

type Message

type Message struct {
	Type     string
	Payload  []byte
	User     string
	Hostname string
	QParams  conf.QueryParams
	Version  string
}

A Message is the communication unit between server and client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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