sync

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForbiddenError

type ForbiddenError struct {
	// contains filtered or unexported fields
}

ForbiddenError defines a access error.

func NewForbiddenError added in v0.3.1

func NewForbiddenError(msg string) *ForbiddenError

NewForbiddenError creates a new forbidden error.

func (*ForbiddenError) Error

func (e *ForbiddenError) Error() string

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError defines a not found error.

func NewNotFoundError added in v0.3.1

func NewNotFoundError(msg string) *NotFoundError

NewNotFoundError creates a new not found error.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type ProcessorFunc added in v0.3.1

type ProcessorFunc func(context.Context, *Request) (*Response, error)

ProcessorFunc definition of a function type for processing sync requests.

type Request

type Request struct {
	Fields map[string]string
	Raw    io.Reader
	// contains filtered or unexported fields
}

Request definition of the sync request model.

func NewRequest

func NewRequest(f map[string]string, r io.Reader, d encoding.DecodeFunc) *Request

NewRequest creates a new request.

func (*Request) Decode

func (r *Request) Decode(v interface{}) error

Decode the raw data by using the provided decoder.

type Response

type Response struct {
	Payload interface{}
}

Response definition of the sync response model.

func NewResponse

func NewResponse(p interface{}) *Response

NewResponse creates a new response.

type ServiceUnavailableError

type ServiceUnavailableError struct {
	// contains filtered or unexported fields
}

ServiceUnavailableError defines a service unavailable error.

func NewServiceUnavailableError added in v0.3.1

func NewServiceUnavailableError(msg string) *ServiceUnavailableError

NewServiceUnavailableError creates a new service unavailable error.

func (*ServiceUnavailableError) Error

func (e *ServiceUnavailableError) Error() string

type UnauthorizedError

type UnauthorizedError struct {
	// contains filtered or unexported fields
}

UnauthorizedError defines a authorization error.

func NewUnauthorizedError added in v0.3.1

func NewUnauthorizedError(msg string) *UnauthorizedError

NewUnauthorizedError creates a new unauthorized error.

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

type ValidationError

type ValidationError struct {
	// contains filtered or unexported fields
}

ValidationError defines a validation error.

func NewValidationError added in v0.3.1

func NewValidationError(msg string) *ValidationError

NewValidationError creates a new validation error.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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