postgres

package
v0.0.0-...-93818c8 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnParams

func GetConnParams(host, db, table, user, pwd string) map[string]string

Types

type DriverPostgres

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

func (DriverPostgres) CreateTable

func (d DriverPostgres) CreateTable() error

Create table for tracer

func (DriverPostgres) DropTable

func (d DriverPostgres) DropTable() error

Erase table

func (DriverPostgres) GetLastRootList

func (d DriverPostgres) GetLastRootList(limit int) ([]*tracefall.Log, error)

func (DriverPostgres) GetLastThreadList

func (d DriverPostgres) GetLastThreadList(limit int) ([]*tracefall.Log, error)

func (DriverPostgres) GetLog

func (DriverPostgres) GetThread

func (DriverPostgres) InstallIndex

func (d DriverPostgres) InstallIndex() error

Create table for tracer

func (*DriverPostgres) Open

func (d *DriverPostgres) Open(params map[string]string) (interface{}, error)

func (DriverPostgres) RemoveByTags

func (d DriverPostgres) RemoveByTags(tags tracefall.Tags) (tracefall.ResponseCmd, error)

func (DriverPostgres) RemoveThread

func (d DriverPostgres) RemoveThread(id uuid.UUID) (tracefall.ResponseCmd, error)

func (DriverPostgres) Send

func (DriverPostgres) Truncate

func (d DriverPostgres) Truncate(ind string) (tracefall.ResponseCmd, error)

type Params

type Params struct {
	Host, User, Password, DbName, TableName string
}

Jump to

Keyboard shortcuts

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