op

package
v0.0.0-...-868f6a0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input interface {
	Validate() error
}

type Op

type Op struct {
	Apply  func(*Op) *Op
	Config aws.Config
	Input  Input
	Parser *parser.Parser
	Sender Sender
}

func New

func New(options ...Option) *Op

func (*Op) Do

func (op *Op) Do(ctx context.Context) error

type Option

type Option func(*Op)

func WithConfig

func WithConfig(config aws.Config) Option

func WithDecorator

func WithDecorator(fn func(aws.Config) func(*Op) *Op) Option

func WithParser

func WithParser(p *parser.Parser) Option

type Sender

type Sender func(context.Context) (response interface{}, err error)

func (Sender) Send

func (s Sender) Send(ctx context.Context) (response interface{}, err error)

Jump to

Keyboard shortcuts

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