Documentation ¶
Index ¶
- Constants
- type Check
- type CheckKid
- type Checks
- type Option
- type Options
- type Path
- type Service
- type Validation
- func (e *Validation) AppendNotNull(path *Path, field, msg string)
- func (e *Validation) AppendRef(path *Path, field string, value interface{}, msg string)
- func (e *Validation) AppendUnique(path *Path, field string, value interface{}, msg string)
- func (e *Validation) Error() string
- func (e *Validation) String() string
- type Violation
Constants ¶
View Source
const ( CheckKidUnique = CheckKid("unique") CheckKidRefKey = CheckKid("refKey") CheckKidNotNull = CheckKid("notnull") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checks ¶ added in v0.5.1
type Option ¶
type Option func(c *Options)
func WithLocation ¶ added in v0.5.2
WithLocation creates with location option
func WithRequired ¶ added in v0.5.1
WithRequired with required optio
func WithSetMarker ¶ added in v0.7.1
func WithSetMarker() Option
type Options ¶
type Options struct { Required bool CheckUnique bool CheckRef bool Location string SetMarker *option.SetMarker }
func NewOptions ¶
func NewOptions() *Options
type Validation ¶
func (*Validation) AppendNotNull ¶ added in v0.5.1
func (e *Validation) AppendNotNull(path *Path, field, msg string)
func (*Validation) AppendRef ¶ added in v0.5.1
func (e *Validation) AppendRef(path *Path, field string, value interface{}, msg string)
func (*Validation) AppendUnique ¶ added in v0.5.1
func (e *Validation) AppendUnique(path *Path, field string, value interface{}, msg string)
func (*Validation) Error ¶ added in v0.5.1
func (e *Validation) Error() string
func (*Validation) String ¶ added in v0.5.1
func (e *Validation) String() string
Click to show internal directories.
Click to hide internal directories.