saola

package module
v0.0.0-...-a902961 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2015 License: MIT Imports: 4 Imported by: 0

README

Saola

(experimental)

Service library inspired by Finagle

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Do(ctx context.Context, s Service) error
}

func Chain

func Chain(f Filter, fs ...Filter) Filter

func NewRecoveryFilter

func NewRecoveryFilter() Filter

func NewStatsFilter

func NewStatsFilter(stats stats.StatsReceiver) Filter

type FuncFilter

type FuncFilter func(ctx context.Context, s Service) error

func (FuncFilter) Do

func (f FuncFilter) Do(ctx context.Context, s Service) error

type FuncService

type FuncService func(ctx context.Context) error

func (FuncService) Do

func (f FuncService) Do(ctx context.Context) error

func (FuncService) Name

func (f FuncService) Name() string

type NoopService

type NoopService struct{}

func (NoopService) Do

func (s NoopService) Do(ctx context.Context) error

func (NoopService) Name

func (s NoopService) Name() string

type Service

type Service interface {
	Do(ctx context.Context) error
	Name() string
}

func Apply

func Apply(s Service, fs ...Filter) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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