service

package
v0.0.1-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2017 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is used when the workflow cannot be found.
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Middleware

type Middleware func(Service) Service

Middleware describes a service (as opposed to endpoint) middleware.

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) Middleware

LoggingMiddleware takes a logger as a dependency and returns a ServiceMiddleware.

type Service

type Service interface {
	WorkflowGet(ctx context.Context, id string) (*pb.WorkflowData, error)
}

Service provides operations on Archivematica workflows.

func New

func New(logger log.Logger) Service

New returns a basic Service with all of the expected middlewares wired in.

func NewBasicService

func NewBasicService(logger log.Logger) Service

NewBasicService returns a naïve, stateless implementation of Service.

Directories

Path Synopsis
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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