endpoint

package
v0.0.0-...-0559e17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMutation

func NewMutation(name string, mutator Mutator) service.HTTPEndpoint

NewMutation is the constructor that creates a new Mutation Endpoint.

func NewValidation

func NewValidation(name string, validator Validator) service.HTTPEndpoint

NewValidation is the constructor that creates a new Validation Endpoint.

Types

type Mutator

type Mutator interface {
	Mutate(ctx context.Context, reader io.Reader, parameters string) ([]byte, bool, error)
}

Mutator is the interface implemented by objects that can mutate other objects.

type Validator

type Validator interface {
	Validate(ctx context.Context, reader io.Reader, parameters string) error
}

Validator is the interface implemented by objects that can validate requests.

Jump to

Keyboard shortcuts

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