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.

Index

Package Files

store.go

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 myconn.Connector) Store

Package joblog imports 5 packages (graph) and is imported by 3 packages. Updated 2018-02-09. Refresh now. Tools for package owners.