spincycle: github.com/square/spincycle/request-manager/joblog Index | Files

package joblog

import "github.com/square/spincycle/request-manager/joblog"

Package joblog provides an interface for reading and writing job logs.


Package Files


type Store Uses

type Store interface {
    // Create saves a JL to the db.
    Create(requestId string, jl proto.JobLog) (proto.JobLog, error)

    // Get gets a single JL.
    Get(requestId string, jobId string) (proto.JobLog, error)

    // GetFull gets all of the JLs for a request.
    GetFull(requestId string) ([]proto.JobLog, error)

A Store reads and writes job logs to/from a persistent datastore.

func NewStore Uses

func NewStore(dbc *sql.DB) Store

Package joblog imports 4 packages (graph) and is imported by 3 packages. Updated 2019-04-20. Refresh now. Tools for package owners.