goodman: github.com/snikch/goodman Index | Files | Directories

package goodman

import "github.com/snikch/goodman"

Index

Package Files

runner.go server.go

type DummyRunner Uses

type DummyRunner struct{}

func (*DummyRunner) Close Uses

func (r *DummyRunner) Close()

func (*DummyRunner) RunAfter Uses

func (r *DummyRunner) RunAfter(t *transaction.Transaction)

func (*DummyRunner) RunAfterAll Uses

func (r *DummyRunner) RunAfterAll(t *[]*transaction.Transaction)

func (*DummyRunner) RunAfterEach Uses

func (r *DummyRunner) RunAfterEach(t *transaction.Transaction)

func (*DummyRunner) RunBefore Uses

func (r *DummyRunner) RunBefore(t *transaction.Transaction)

func (*DummyRunner) RunBeforeAll Uses

func (r *DummyRunner) RunBeforeAll(t *[]*transaction.Transaction)

func (*DummyRunner) RunBeforeEach Uses

func (r *DummyRunner) RunBeforeEach(t *transaction.Transaction)

func (*DummyRunner) RunBeforeEachValidation Uses

func (r *DummyRunner) RunBeforeEachValidation(t *transaction.Transaction)

func (*DummyRunner) RunBeforeValidation Uses

func (r *DummyRunner) RunBeforeValidation(t *transaction.Transaction)

type Run Uses

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

func NewRunner Uses

func NewRunner(rpcService string, port int) (*Run, error)

func (*Run) Close Uses

func (r *Run) Close()

func (*Run) RunAfter Uses

func (r *Run) RunAfter(t *transaction.Transaction)

func (*Run) RunAfterAll Uses

func (r *Run) RunAfterAll(t *[]*transaction.Transaction)

func (*Run) RunAfterEach Uses

func (r *Run) RunAfterEach(t *transaction.Transaction)

func (*Run) RunBefore Uses

func (r *Run) RunBefore(t *transaction.Transaction)

func (*Run) RunBeforeAll Uses

func (r *Run) RunBeforeAll(t *[]*transaction.Transaction)

func (*Run) RunBeforeEach Uses

func (r *Run) RunBeforeEach(t *transaction.Transaction)

func (*Run) RunBeforeEachValidation Uses

func (r *Run) RunBeforeEachValidation(t *transaction.Transaction)

func (*Run) RunBeforeValidation Uses

func (r *Run) RunBeforeValidation(t *transaction.Transaction)

type Runner Uses

type Runner interface {
    RunBeforeAll(t *[]*transaction.Transaction)
    RunBeforeEach(t *transaction.Transaction)
    RunBefore(t *transaction.Transaction)
    RunBeforeEachValidation(t *transaction.Transaction)
    RunBeforeValidation(t *transaction.Transaction)
    RunAfterAll(t *[]*transaction.Transaction)
    RunAfterEach(t *transaction.Transaction)
    RunAfter(t *transaction.Transaction)
    Close()
}

type Server Uses

type Server struct {
    Runner           []Runner
    Port             string
    MessageDelimeter []byte
    // contains filtered or unexported fields
}

Server is responsible for starting a server and running lifecycle callbacks.

func NewServer Uses

func NewServer(runners []Runner) *Server

NewServer returns a new server instance with the supplied runner. If no runner is supplied, a new one will be created.

func (*Server) ProcessMessage Uses

func (server *Server) ProcessMessage(m *message) error

ProcessMessage handles a single event message.

func (*Server) Run Uses

func (server *Server) Run() error

Run starts the server listening for events from dredd.

func (*Server) RunAfter Uses

func (server *Server) RunAfter(trans *t.Transaction)

func (*Server) RunAfterAll Uses

func (server *Server) RunAfterAll(trans *[]*t.Transaction)

func (*Server) RunAfterEach Uses

func (server *Server) RunAfterEach(trans *t.Transaction)

func (*Server) RunBefore Uses

func (server *Server) RunBefore(trans *t.Transaction)

func (*Server) RunBeforeAll Uses

func (server *Server) RunBeforeAll(trans *[]*t.Transaction)

func (*Server) RunBeforeEach Uses

func (server *Server) RunBeforeEach(trans *t.Transaction)

func (*Server) RunBeforeEachValidation Uses

func (server *Server) RunBeforeEachValidation(trans *t.Transaction)

func (*Server) RunBeforeValidation Uses

func (server *Server) RunBeforeValidation(trans *t.Transaction)

Directories

PathSynopsis
example
example/hooks
hooks
rpc
transaction

Package goodman imports 7 packages (graph). Updated 2017-11-28. Refresh now. Tools for package owners.