Documentation
¶
Index ¶
Constants ¶
View Source
const ( Unauthenticated = "E_UNAUTHENTICATED" Forbidden = "E_FORBIDDEN" NotFound = "E_NOT_FOUND" Conflict = "E_REVISION_CONFLICT" Validation = "E_VALIDATION" RateLimited = "E_RATE_LIMITED" Internal = "E_INTERNAL" DuplicatePendingTask = "E_DUPLICATE_PENDING_TASK" ActiveDuplicate = "E_ACTIVE_DUPLICATE" SearchTimeout = "E_SEARCH_TIMEOUT" AwaitingState = "E_AWAITING_STATE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code string
Message string
Details []FieldError
}
func NewValidation ¶
func NewValidation(msg string, fields ...FieldError) *Error
type FieldError ¶
Click to show internal directories.
Click to hide internal directories.