service

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 4 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 is a chainable behavior modifier for services.

func Database

func Database(dbfactory db.ConnectionFactory, key string) Middleware

func DatabaseWithTx

func DatabaseWithTx(dbfactory db.ConnectionFactory, key string) Middleware

type Service

type Service func(ctx context.Context) (interface{}, error)

Jump to

Keyboard shortcuts

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