executions

package
v0.0.0-...-4c1e4d6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution struct {
	ID        int       `json:"id,omitempty"`
	Query     string    `json:"query,omitempty"`
	CreatedAt time.Time `json:"created_at,omitempty"`
}

func (*Execution) Valid

func (e *Execution) Valid() error

type ExecutionHandler

type ExecutionHandler struct {
	Store       *ExecutionStore
	ResultCache *results.ResultCache
	Logger      *log.Logger
	PageSize    int
}

func (*ExecutionHandler) ServeHTTP

func (h *ExecutionHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ExecutionStore

type ExecutionStore struct {
	DbStore *sqlx.DB
	DbData  *sqlx.DB
}

func (*ExecutionStore) CreateExecution

func (store *ExecutionStore) CreateExecution(e *Execution) (*Execution, error)

func (*ExecutionStore) DeleteExecution

func (store *ExecutionStore) DeleteExecution(id int) error

func (*ExecutionStore) Execute

func (store *ExecutionStore) Execute(id int) ([]map[string]interface{}, error)

func (*ExecutionStore) GetExecution

func (store *ExecutionStore) GetExecution(id int) (*Execution, error)

func (*ExecutionStore) ListExecutions

func (store *ExecutionStore) ListExecutions(perPage int, lastId int) (*[]Execution, error)

Jump to

Keyboard shortcuts

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