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
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 ¶
NewRequest creates a new request.
type Response ¶
type Response struct {
Payload interface{}
}
Response definition of the sync response model.
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