postgres

package
v0.0.0-...-3a34b34 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package postgres is a PostgreSQL storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage is a PostgreSQL storage.

func New

func New(db *sql.DB) *Storage

New returns a new PostgreSQL storage.

func (*Storage) Dependencies

func (st *Storage) Dependencies() ([]server.Dependency, error)

Dependencies implements the server.Storage interface.

func (*Storage) Operations

func (st *Storage) Operations(service string) ([]string, error)

Spans implements the server.Storage interface.

func (*Storage) Purge

func (st *Storage) Purge(before time.Time) error

func (*Storage) QueryTraces

func (st *Storage) QueryTraces(q server.Query) ([]tracer.RawTrace, error)

QueryTraces implements the server.Storage interface.

func (*Storage) Services

func (st *Storage) Services() ([]string, error)

Services implements the server.Storage interface.

func (*Storage) SpanByID

func (st *Storage) SpanByID(id uint64) (tracer.RawSpan, error)

SpanByID implements the server.Storage interface.

func (*Storage) Store

func (st *Storage) Store(sp tracer.RawSpan) (err error)

Store implements the server.Storage interface.

func (*Storage) TraceByID

func (st *Storage) TraceByID(id uint64) (tracer.RawTrace, error)

TraceByID implements the server.Storage interface.

Jump to

Keyboard shortcuts

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