service

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2016 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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