Documentation ¶
Index ¶
- type Array
- func (spec Array) AllOf(a []Specification) Array
- func (spec Array) AnyOf(a []Specification) Array
- func (spec Array) BSONDocument() bson.D
- func (spec Array) BSONType() string
- func (spec Array) Not(a Specification) Array
- func (spec Array) OneOf(a []Specification) Array
- func (spec Array) SetAdditionalItems(value bool) Array
- func (spec Array) SetAdditionalItemsSchema(specification Specification) Array
- func (spec Array) SetDescription(d string) Array
- func (spec Array) SetEnum(a bson.A) Array
- func (spec Array) SetItems(items Specification) Array
- func (spec Array) SetItemsArray(items []Specification) Array
- func (spec Array) SetMaxItems(value int) Array
- func (spec Array) SetMaxLength(value int) Array
- func (spec Array) SetMinItems(value int) Array
- func (spec Array) SetMinLength(value int) Array
- func (spec Array) SetPattern(value string) Array
- func (spec Array) SetUniqueItems(value bool) Array
- type BinData
- func (spec BinData) AllOf(a []Specification) BinData
- func (spec BinData) AnyOf(a []Specification) BinData
- func (spec BinData) BSONDocument() bson.D
- func (spec BinData) BSONType() string
- func (spec BinData) Not(a Specification) BinData
- func (spec BinData) OneOf(a []Specification) BinData
- func (spec BinData) SetDescription(d string) BinData
- func (spec BinData) SetEnum(a bson.A) BinData
- type Bool
- func (spec Bool) AllOf(a []Specification) Bool
- func (spec Bool) AnyOf(a []Specification) Bool
- func (spec Bool) BSONDocument() bson.D
- func (spec Bool) BSONType() string
- func (spec Bool) Not(a Specification) Bool
- func (spec Bool) OneOf(a []Specification) Bool
- func (spec Bool) SetDescription(d string) Bool
- func (spec Bool) SetEnum(a bson.A) Bool
- type Boolean
- func (spec Boolean) AllOf(a []Specification) Boolean
- func (spec Boolean) AnyOf(a []Specification) Boolean
- func (spec Boolean) BSONDocument() bson.D
- func (spec Boolean) BSONType() string
- func (spec Boolean) Not(a Specification) Boolean
- func (spec Boolean) OneOf(a []Specification) Boolean
- func (spec Boolean) SetDescription(d string) Boolean
- func (spec Boolean) SetEnum(a bson.A) Boolean
- type Date
- func (spec Date) AllOf(a []Specification) Date
- func (spec Date) AnyOf(a []Specification) Date
- func (spec Date) BSONDocument() bson.D
- func (spec Date) BSONType() string
- func (spec Date) Not(a Specification) Date
- func (spec Date) OneOf(a []Specification) Date
- func (spec Date) SetDescription(d string) Date
- func (spec Date) SetEnum(a bson.A) Date
- type Decimal
- func (spec Decimal) AllOf(a []Specification) Decimal
- func (spec Decimal) AnyOf(a []Specification) Decimal
- func (spec Decimal) BSONDocument() bson.D
- func (spec Decimal) BSONType() string
- func (spec Decimal) Not(a Specification) Decimal
- func (spec Decimal) OneOf(a []Specification) Decimal
- func (spec Decimal) SetDescription(d string) Decimal
- func (spec Decimal) SetEnum(a bson.A) Decimal
- func (spec Decimal) SetExclusiveMaximum(n primitive.Decimal128) Decimal
- func (spec Decimal) SetExclusiveMinimum(n primitive.Decimal128) Decimal
- func (spec Decimal) SetMaximum(n primitive.Decimal128) Decimal
- func (spec Decimal) SetMinimum(n primitive.Decimal128) Decimal
- func (spec Decimal) SetMultipleOf(n primitive.Decimal128) Decimal
- type Double
- func (spec Double) AllOf(a []Specification) Double
- func (spec Double) AnyOf(a []Specification) Double
- func (spec Double) BSONDocument() bson.D
- func (spec Double) BSONType() string
- func (spec Double) Not(a Specification) Double
- func (spec Double) OneOf(a []Specification) Double
- func (spec Double) SetDescription(d string) Double
- func (spec Double) SetEnum(a bson.A) Double
- func (spec Double) SetExclusiveMaximum(n float64) Double
- func (spec Double) SetExclusiveMinimum(n float64) Double
- func (spec Double) SetMaximum(n float64) Double
- func (spec Double) SetMinimum(n float64) Double
- func (spec Double) SetMultipleOf(n float64) Double
- type Int
- func (spec Int) AllOf(a []Specification) Int
- func (spec Int) AnyOf(a []Specification) Int
- func (spec Int) BSONDocument() bson.D
- func (spec Int) BSONType() string
- func (spec Int) Not(a Specification) Int
- func (spec Int) OneOf(a []Specification) Int
- func (spec Int) SetDescription(d string) Int
- func (spec Int) SetEnum(a bson.A) Int
- func (spec Int) SetExclusiveMaximum(n int32) Int
- func (spec Int) SetExclusiveMinimum(n int32) Int
- func (spec Int) SetMaximum(n int32) Int
- func (spec Int) SetMinimum(n int32) Int
- func (spec Int) SetMultipleOf(n int32) Int
- type Long
- func (spec Long) AllOf(a []Specification) Long
- func (spec Long) AnyOf(a []Specification) Long
- func (spec Long) BSONDocument() bson.D
- func (spec Long) BSONType() string
- func (spec Long) Not(a Specification) Long
- func (spec Long) OneOf(a []Specification) Long
- func (spec Long) SetDescription(d string) Long
- func (spec Long) SetEnum(a bson.A) Long
- func (spec Long) SetExclusiveMaximum(n int64) Long
- func (spec Long) SetExclusiveMinimum(n int64) Long
- func (spec Long) SetMaximum(n int64) Long
- func (spec Long) SetMinimum(n int64) Long
- func (spec Long) SetMultipleOf(n int64) Long
- type Null
- func (spec Null) AllOf(a []Specification) Null
- func (spec Null) AnyOf(a []Specification) Null
- func (spec Null) BSONDocument() bson.D
- func (spec Null) BSONType() string
- func (spec Null) Not(a Specification) Null
- func (spec Null) OneOf(a []Specification) Null
- func (spec Null) SetDescription(d string) Null
- func (spec Null) SetEnum(a bson.A) Null
- type Object
- func (spec Object) AllOf(a []Specification) Object
- func (spec Object) AnyOf(a []Specification) Object
- func (spec Object) AppendPatternProperty(expression string, specification Specification) Object
- func (spec Object) AppendProperty(name string, required bool, specification Specification) Object
- func (spec Object) AppendRequired(name string) Object
- func (spec Object) BSONDocument() bson.D
- func (spec Object) BSONType() string
- func (spec Object) CheckStructTags(t reflect.Type) error
- func (spec Object) Not(a Specification) Object
- func (spec Object) OneOf(a []Specification) Object
- func (spec Object) SetAdditionalProperties(value bool) Object
- func (spec Object) SetDescription(d string) Object
- func (spec Object) SetEnum(a bson.A) Object
- func (spec Object) SetMaxProperties(value bool) Object
- func (spec Object) SetMinProperties(value int) Object
- func (spec Object) SetTitle(value string) Object
- type ObjectID
- func (spec ObjectID) AllOf(a []Specification) ObjectID
- func (spec ObjectID) AnyOf(a []Specification) ObjectID
- func (spec ObjectID) BSONDocument() bson.D
- func (spec ObjectID) BSONType() string
- func (spec ObjectID) Not(a Specification) ObjectID
- func (spec ObjectID) OneOf(a []Specification) ObjectID
- func (spec ObjectID) SetDescription(d string) ObjectID
- func (spec ObjectID) SetEnum(a bson.A) ObjectID
- type Regex
- func (spec Regex) AllOf(a []Specification) Regex
- func (spec Regex) AnyOf(a []Specification) Regex
- func (spec Regex) BSONDocument() bson.D
- func (spec Regex) BSONType() string
- func (spec Regex) Not(a Specification) Regex
- func (spec Regex) OneOf(a []Specification) Regex
- func (spec Regex) SetDescription(d string) Regex
- func (spec Regex) SetEnum(a bson.A) Regex
- type Specification
- type String
- func (spec String) AllOf(a []Specification) String
- func (spec String) AnyOf(a []Specification) String
- func (spec String) BSONDocument() bson.D
- func (spec String) BSONType() string
- func (spec String) MaxLength(d int) String
- func (spec String) MinLength(d int) String
- func (spec String) Not(a Specification) String
- func (spec String) OneOf(a []Specification) String
- func (spec String) SetDescription(d string) String
- func (spec String) SetEnum(a bson.A) String
- type Timestamp
- func (spec Timestamp) AllOf(a []Specification) Timestamp
- func (spec Timestamp) AnyOf(a []Specification) Timestamp
- func (spec Timestamp) BSONDocument() bson.D
- func (spec Timestamp) BSONType() string
- func (spec Timestamp) Not(a Specification) Timestamp
- func (spec Timestamp) OneOf(a []Specification) Timestamp
- func (spec Timestamp) SetDescription(d string) Timestamp
- func (spec Timestamp) SetEnum(a bson.A) Timestamp
- type UUID
- func (spec UUID) AllOf(a []Specification) UUID
- func (spec UUID) AnyOf(a []Specification) UUID
- func (spec UUID) BSONDocument() bson.D
- func (spec UUID) BSONType() string
- func (spec UUID) Not(a Specification) UUID
- func (spec UUID) OneOf(a []Specification) UUID
- func (spec UUID) SetDescription(d string) UUID
- func (spec UUID) SetEnum(a bson.A) UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
func (Array) AllOf ¶
func (spec Array) AllOf(a []Specification) Array
func (Array) AnyOf ¶
func (spec Array) AnyOf(a []Specification) Array
func (Array) BSONDocument ¶
func (Array) Not ¶
func (spec Array) Not(a Specification) Array
func (Array) OneOf ¶
func (spec Array) OneOf(a []Specification) Array
func (Array) SetAdditionalItems ¶
func (Array) SetAdditionalItemsSchema ¶
func (spec Array) SetAdditionalItemsSchema(specification Specification) Array
func (Array) SetDescription ¶
func (Array) SetItems ¶
func (spec Array) SetItems(items Specification) Array
func (Array) SetItemsArray ¶
func (spec Array) SetItemsArray(items []Specification) Array
func (Array) SetMaxItems ¶
func (Array) SetMaxLength ¶
func (Array) SetMinItems ¶
func (Array) SetMinLength ¶
func (Array) SetPattern ¶
func (Array) SetUniqueItems ¶
type BinData ¶
func NewBinData ¶
func NewBinData() BinData
func (BinData) AllOf ¶
func (spec BinData) AllOf(a []Specification) BinData
func (BinData) AnyOf ¶
func (spec BinData) AnyOf(a []Specification) BinData
func (BinData) BSONDocument ¶
func (BinData) Not ¶
func (spec BinData) Not(a Specification) BinData
func (BinData) OneOf ¶
func (spec BinData) OneOf(a []Specification) BinData
func (BinData) SetDescription ¶
type Bool ¶
func (Bool) AllOf ¶
func (spec Bool) AllOf(a []Specification) Bool
func (Bool) AnyOf ¶
func (spec Bool) AnyOf(a []Specification) Bool
func (Bool) BSONDocument ¶
func (Bool) Not ¶
func (spec Bool) Not(a Specification) Bool
func (Bool) OneOf ¶
func (spec Bool) OneOf(a []Specification) Bool
func (Bool) SetDescription ¶
type Boolean ¶
func NewBoolean ¶
func NewBoolean() Boolean
func (Boolean) AllOf ¶
func (spec Boolean) AllOf(a []Specification) Boolean
func (Boolean) AnyOf ¶
func (spec Boolean) AnyOf(a []Specification) Boolean
func (Boolean) BSONDocument ¶
func (Boolean) Not ¶
func (spec Boolean) Not(a Specification) Boolean
func (Boolean) OneOf ¶
func (spec Boolean) OneOf(a []Specification) Boolean
func (Boolean) SetDescription ¶
type Date ¶
func (Date) AllOf ¶
func (spec Date) AllOf(a []Specification) Date
func (Date) AnyOf ¶
func (spec Date) AnyOf(a []Specification) Date
func (Date) BSONDocument ¶
func (Date) Not ¶
func (spec Date) Not(a Specification) Date
func (Date) OneOf ¶
func (spec Date) OneOf(a []Specification) Date
func (Date) SetDescription ¶
type Decimal ¶
func NewDecimal ¶
func NewDecimal() Decimal
func (Decimal) AllOf ¶
func (spec Decimal) AllOf(a []Specification) Decimal
func (Decimal) AnyOf ¶
func (spec Decimal) AnyOf(a []Specification) Decimal
func (Decimal) BSONDocument ¶
func (Decimal) Not ¶
func (spec Decimal) Not(a Specification) Decimal
func (Decimal) OneOf ¶
func (spec Decimal) OneOf(a []Specification) Decimal
func (Decimal) SetDescription ¶
func (Decimal) SetExclusiveMaximum ¶
func (spec Decimal) SetExclusiveMaximum(n primitive.Decimal128) Decimal
func (Decimal) SetExclusiveMinimum ¶
func (spec Decimal) SetExclusiveMinimum(n primitive.Decimal128) Decimal
func (Decimal) SetMaximum ¶
func (spec Decimal) SetMaximum(n primitive.Decimal128) Decimal
func (Decimal) SetMinimum ¶
func (spec Decimal) SetMinimum(n primitive.Decimal128) Decimal
func (Decimal) SetMultipleOf ¶
func (spec Decimal) SetMultipleOf(n primitive.Decimal128) Decimal
type Double ¶
func (Double) AllOf ¶
func (spec Double) AllOf(a []Specification) Double
func (Double) AnyOf ¶
func (spec Double) AnyOf(a []Specification) Double
func (Double) BSONDocument ¶
func (Double) Not ¶
func (spec Double) Not(a Specification) Double
func (Double) OneOf ¶
func (spec Double) OneOf(a []Specification) Double
func (Double) SetDescription ¶
func (Double) SetExclusiveMaximum ¶
func (Double) SetExclusiveMinimum ¶
func (Double) SetMaximum ¶
func (Double) SetMinimum ¶
func (Double) SetMultipleOf ¶
type Int ¶
func (Int) AllOf ¶
func (spec Int) AllOf(a []Specification) Int
func (Int) AnyOf ¶
func (spec Int) AnyOf(a []Specification) Int
func (Int) BSONDocument ¶
func (Int) Not ¶
func (spec Int) Not(a Specification) Int
func (Int) OneOf ¶
func (spec Int) OneOf(a []Specification) Int
func (Int) SetDescription ¶
func (Int) SetExclusiveMaximum ¶
func (Int) SetExclusiveMinimum ¶
func (Int) SetMaximum ¶
func (Int) SetMinimum ¶
func (Int) SetMultipleOf ¶
type Long ¶
func (Long) AllOf ¶
func (spec Long) AllOf(a []Specification) Long
func (Long) AnyOf ¶
func (spec Long) AnyOf(a []Specification) Long
func (Long) BSONDocument ¶
func (Long) Not ¶
func (spec Long) Not(a Specification) Long
func (Long) OneOf ¶
func (spec Long) OneOf(a []Specification) Long
func (Long) SetDescription ¶
func (Long) SetExclusiveMaximum ¶
func (Long) SetExclusiveMinimum ¶
func (Long) SetMaximum ¶
func (Long) SetMinimum ¶
func (Long) SetMultipleOf ¶
type Null ¶
func (Null) AllOf ¶
func (spec Null) AllOf(a []Specification) Null
func (Null) AnyOf ¶
func (spec Null) AnyOf(a []Specification) Null
func (Null) BSONDocument ¶
func (Null) Not ¶
func (spec Null) Not(a Specification) Null
func (Null) OneOf ¶
func (spec Null) OneOf(a []Specification) Null
func (Null) SetDescription ¶
type Object ¶
func (Object) AllOf ¶
func (spec Object) AllOf(a []Specification) Object
func (Object) AnyOf ¶
func (spec Object) AnyOf(a []Specification) Object
func (Object) AppendPatternProperty ¶
func (spec Object) AppendPatternProperty(expression string, specification Specification) Object
func (Object) AppendProperty ¶
func (spec Object) AppendProperty(name string, required bool, specification Specification) Object
func (Object) AppendRequired ¶
func (Object) BSONDocument ¶
func (Object) Not ¶
func (spec Object) Not(a Specification) Object
func (Object) OneOf ¶
func (spec Object) OneOf(a []Specification) Object
func (Object) SetAdditionalProperties ¶
func (Object) SetDescription ¶
func (Object) SetMaxProperties ¶
func (Object) SetMinProperties ¶
type ObjectID ¶
func NewObjectID ¶
func NewObjectID() ObjectID
func (ObjectID) AllOf ¶
func (spec ObjectID) AllOf(a []Specification) ObjectID
func (ObjectID) AnyOf ¶
func (spec ObjectID) AnyOf(a []Specification) ObjectID
func (ObjectID) BSONDocument ¶
func (ObjectID) Not ¶
func (spec ObjectID) Not(a Specification) ObjectID
func (ObjectID) OneOf ¶
func (spec ObjectID) OneOf(a []Specification) ObjectID
func (ObjectID) SetDescription ¶
type Regex ¶
func (Regex) AllOf ¶
func (spec Regex) AllOf(a []Specification) Regex
func (Regex) AnyOf ¶
func (spec Regex) AnyOf(a []Specification) Regex
func (Regex) BSONDocument ¶
func (Regex) Not ¶
func (spec Regex) Not(a Specification) Regex
func (Regex) OneOf ¶
func (spec Regex) OneOf(a []Specification) Regex
func (Regex) SetDescription ¶
type Specification ¶
type String ¶
func (String) AllOf ¶
func (spec String) AllOf(a []Specification) String
func (String) AnyOf ¶
func (spec String) AnyOf(a []Specification) String
func (String) BSONDocument ¶
func (String) Not ¶
func (spec String) Not(a Specification) String
func (String) OneOf ¶
func (spec String) OneOf(a []Specification) String
func (String) SetDescription ¶
type Timestamp ¶
func NewTimestamp ¶
func NewTimestamp() Timestamp
func (Timestamp) AllOf ¶
func (spec Timestamp) AllOf(a []Specification) Timestamp
func (Timestamp) AnyOf ¶
func (spec Timestamp) AnyOf(a []Specification) Timestamp
func (Timestamp) BSONDocument ¶
func (Timestamp) Not ¶
func (spec Timestamp) Not(a Specification) Timestamp
func (Timestamp) OneOf ¶
func (spec Timestamp) OneOf(a []Specification) Timestamp
func (Timestamp) SetDescription ¶
type UUID ¶
func (UUID) AllOf ¶
func (spec UUID) AllOf(a []Specification) UUID
func (UUID) AnyOf ¶
func (spec UUID) AnyOf(a []Specification) UUID
func (UUID) BSONDocument ¶
func (UUID) Not ¶
func (spec UUID) Not(a Specification) UUID
func (UUID) OneOf ¶
func (spec UUID) OneOf(a []Specification) UUID
func (UUID) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.