nullable

package module
v0.0.0-...-75b0f07 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Code generated by go generate; DO NOT EDIT. This file was generated by scripts/models/gen_nullable_types.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Valid bool // Valid is true if value is not null and valid bool
	Value bool
}

Bool represents a bool that may be null

func NewBool

func NewBool(val *bool) Bool

NewBool creates a new Bool object

func (*Bool) ContextValidate

func (b *Bool) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Bool) Get

func (b *Bool) Get() *bool

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Bool) Set

func (b *Bool) Set(val bool)

Set sets the value and valid flag to true

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

func (*Bool) Validate

func (b *Bool) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type BoolSlice

type BoolSlice struct {
	Valid bool // Valid is true if value is not null
	Value []bool
}

BoolSlice represents a []bool that may be null

func NewBoolSlice

func NewBoolSlice(val []bool) BoolSlice

NewBoolSlice creates a new BoolSlice object

func (*BoolSlice) ContextValidate

func (b *BoolSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*BoolSlice) Get

func (b *BoolSlice) Get() *[]bool

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*BoolSlice) UnmarshalJSON

func (b *BoolSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*BoolSlice) Validate

func (b *BoolSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Byte

type Byte struct {
	Valid bool // Valid is true if value is not null and valid byte
	Value byte
}

Byte represents a byte that may be null

func NewByte

func NewByte(val *byte) Byte

NewByte creates a new Byte object

func (*Byte) ContextValidate

func (b *Byte) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Byte) Get

func (b *Byte) Get() *byte

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Byte) Set

func (b *Byte) Set(val byte)

Set sets the value and valid flag to true

func (*Byte) UnmarshalJSON

func (b *Byte) UnmarshalJSON(data []byte) error

func (*Byte) Validate

func (b *Byte) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type ByteSlice

type ByteSlice struct {
	Valid bool // Valid is true if value is not null
	Value []byte
}

ByteSlice represents a []byte that may be null

func NewByteSlice

func NewByteSlice(val []byte) ByteSlice

NewByteSlice creates a new ByteSlice object

func (*ByteSlice) ContextValidate

func (b *ByteSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*ByteSlice) Get

func (b *ByteSlice) Get() *[]byte

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*ByteSlice) UnmarshalJSON

func (b *ByteSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*ByteSlice) Validate

func (b *ByteSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Float32

type Float32 struct {
	Valid bool // Valid is true if value is not null and valid float32
	Value float32
}

Float32 represents a float32 that may be null

func NewFloat32

func NewFloat32(val *float32) Float32

NewFloat32 creates a new Float32 object

func (*Float32) ContextValidate

func (f *Float32) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Float32) Get

func (f *Float32) Get() *float32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Float32) Set

func (f *Float32) Set(val float32)

Set sets the value and valid flag to true

func (*Float32) UnmarshalJSON

func (f *Float32) UnmarshalJSON(data []byte) error

func (*Float32) Validate

func (f *Float32) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Float32Slice

type Float32Slice struct {
	Valid bool // Valid is true if value is not null
	Value []float32
}

Float32Slice represents a []float32 that may be null

func NewFloat32Slice

func NewFloat32Slice(val []float32) Float32Slice

NewFloat32Slice creates a new Float32Slice object

func (*Float32Slice) ContextValidate

func (f *Float32Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Float32Slice) Get

func (f *Float32Slice) Get() *[]float32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Float32Slice) UnmarshalJSON

func (f *Float32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Float32Slice) Validate

func (f *Float32Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Float64

type Float64 struct {
	Valid bool // Valid is true if value is not null and valid float64
	Value float64
}

Float64 represents a float64 that may be null

func NewFloat64

func NewFloat64(val *float64) Float64

NewFloat64 creates a new Float64 object

func (*Float64) ContextValidate

func (f *Float64) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Float64) Get

func (f *Float64) Get() *float64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Float64) Set

func (f *Float64) Set(val float64)

Set sets the value and valid flag to true

func (*Float64) UnmarshalJSON

func (f *Float64) UnmarshalJSON(data []byte) error

func (*Float64) Validate

func (f *Float64) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Float64Slice

type Float64Slice struct {
	Valid bool // Valid is true if value is not null
	Value []float64
}

Float64Slice represents a []float64 that may be null

func NewFloat64Slice

func NewFloat64Slice(val []float64) Float64Slice

NewFloat64Slice creates a new Float64Slice object

func (*Float64Slice) ContextValidate

func (f *Float64Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Float64Slice) Get

func (f *Float64Slice) Get() *[]float64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Float64Slice) UnmarshalJSON

func (f *Float64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Float64Slice) Validate

func (f *Float64Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int

type Int struct {
	Valid bool // Valid is true if value is not null and valid int
	Value int
}

Int represents a int that may be null

func NewInt

func NewInt(val *int) Int

NewInt creates a new Int object

func (*Int) ContextValidate

func (i *Int) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int) Get

func (i *Int) Get() *int

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int) Set

func (i *Int) Set(val int)

Set sets the value and valid flag to true

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

func (*Int) Validate

func (i *Int) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int8

type Int8 struct {
	Valid bool // Valid is true if value is not null and valid int8
	Value int8
}

Int8 represents a int8 that may be null

func NewInt8

func NewInt8(val *int8) Int8

NewInt8 creates a new Int8 object

func (*Int8) ContextValidate

func (i *Int8) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int8) Get

func (i *Int8) Get() *int8

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int8) Set

func (i *Int8) Set(val int8)

Set sets the value and valid flag to true

func (*Int8) UnmarshalJSON

func (i *Int8) UnmarshalJSON(data []byte) error

func (*Int8) Validate

func (i *Int8) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int8Slice

type Int8Slice struct {
	Valid bool // Valid is true if value is not null
	Value []int8
}

Int8Slice represents a []int8 that may be null

func NewInt8Slice

func NewInt8Slice(val []int8) Int8Slice

NewInt8Slice creates a new Int8Slice object

func (*Int8Slice) ContextValidate

func (i *Int8Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int8Slice) Get

func (i *Int8Slice) Get() *[]int8

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int8Slice) UnmarshalJSON

func (i *Int8Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Int8Slice) Validate

func (i *Int8Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int16

type Int16 struct {
	Valid bool // Valid is true if value is not null and valid int16
	Value int16
}

Int16 represents a int16 that may be null

func NewInt16

func NewInt16(val *int16) Int16

NewInt16 creates a new Int16 object

func (*Int16) ContextValidate

func (i *Int16) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int16) Get

func (i *Int16) Get() *int16

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int16) Set

func (i *Int16) Set(val int16)

Set sets the value and valid flag to true

func (*Int16) UnmarshalJSON

func (i *Int16) UnmarshalJSON(data []byte) error

func (*Int16) Validate

func (i *Int16) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int16Slice

type Int16Slice struct {
	Valid bool // Valid is true if value is not null
	Value []int16
}

Int16Slice represents a []int16 that may be null

func NewInt16Slice

func NewInt16Slice(val []int16) Int16Slice

NewInt16Slice creates a new Int16Slice object

func (*Int16Slice) ContextValidate

func (i *Int16Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int16Slice) Get

func (i *Int16Slice) Get() *[]int16

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int16Slice) UnmarshalJSON

func (i *Int16Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Int16Slice) Validate

func (i *Int16Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int32

type Int32 struct {
	Valid bool // Valid is true if value is not null and valid int32
	Value int32
}

Int32 represents a int32 that may be null

func NewInt32

func NewInt32(val *int32) Int32

NewInt32 creates a new Int32 object

func (*Int32) ContextValidate

func (i *Int32) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int32) Get

func (i *Int32) Get() *int32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int32) Set

func (i *Int32) Set(val int32)

Set sets the value and valid flag to true

func (*Int32) UnmarshalJSON

func (i *Int32) UnmarshalJSON(data []byte) error

func (*Int32) Validate

func (i *Int32) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int32Slice

type Int32Slice struct {
	Valid bool // Valid is true if value is not null
	Value []int32
}

Int32Slice represents a []int32 that may be null

func NewInt32Slice

func NewInt32Slice(val []int32) Int32Slice

NewInt32Slice creates a new Int32Slice object

func (*Int32Slice) ContextValidate

func (i *Int32Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int32Slice) Get

func (i *Int32Slice) Get() *[]int32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int32Slice) UnmarshalJSON

func (i *Int32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Int32Slice) Validate

func (i *Int32Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int64

type Int64 struct {
	Valid bool // Valid is true if value is not null and valid int64
	Value int64
}

Int64 represents a int64 that may be null

func NewInt64

func NewInt64(val *int64) Int64

NewInt64 creates a new Int64 object

func (*Int64) ContextValidate

func (i *Int64) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int64) Get

func (i *Int64) Get() *int64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int64) Set

func (i *Int64) Set(val int64)

Set sets the value and valid flag to true

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(data []byte) error

func (*Int64) Validate

func (i *Int64) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Int64Slice

type Int64Slice struct {
	Valid bool // Valid is true if value is not null
	Value []int64
}

Int64Slice represents a []int64 that may be null

func NewInt64Slice

func NewInt64Slice(val []int64) Int64Slice

NewInt64Slice creates a new Int64Slice object

func (*Int64Slice) ContextValidate

func (i *Int64Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Int64Slice) Get

func (i *Int64Slice) Get() *[]int64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Int64Slice) UnmarshalJSON

func (i *Int64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Int64Slice) Validate

func (i *Int64Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type IntSlice

type IntSlice struct {
	Valid bool // Valid is true if value is not null
	Value []int
}

IntSlice represents a []int that may be null

func NewIntSlice

func NewIntSlice(val []int) IntSlice

NewIntSlice creates a new IntSlice object

func (*IntSlice) ContextValidate

func (i *IntSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*IntSlice) Get

func (i *IntSlice) Get() *[]int

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*IntSlice) UnmarshalJSON

func (i *IntSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*IntSlice) Validate

func (i *IntSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type String

type String struct {
	Valid bool // Valid is true if value is not null and valid string
	Value string
}

String represents a string that may be null

func NewString

func NewString(val *string) String

NewString creates a new String object

func (*String) ContextValidate

func (s *String) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*String) Get

func (s *String) Get() *string

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*String) Set

func (s *String) Set(val string)

Set sets the value and valid flag to true

func (*String) UnmarshalJSON

func (s *String) UnmarshalJSON(data []byte) error

func (*String) Validate

func (s *String) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type StringSlice

type StringSlice struct {
	Valid bool // Valid is true if value is not null
	Value []string
}

StringSlice represents a []string that may be null

func NewStringSlice

func NewStringSlice(val []string) StringSlice

NewStringSlice creates a new StringSlice object

func (*StringSlice) ContextValidate

func (s *StringSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*StringSlice) Get

func (s *StringSlice) Get() *[]string

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*StringSlice) UnmarshalJSON

func (s *StringSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*StringSlice) Validate

func (s *StringSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Time

type Time struct {
	Valid bool // Valid is true if value is not null and valid time
	Value time
}

Time represents a time that may be null

func NewTime

func NewTime(val *time) Time

NewTime creates a new Time object

func (*Time) ContextValidate

func (t *Time) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Time) Get

func (t *Time) Get() *time

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Time) Set

func (t *Time) Set(val time)

Set sets the value and valid flag to true

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

func (*Time) Validate

func (t *Time) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type TimeSlice

type TimeSlice struct {
	Valid bool // Valid is true if value is not null
	Value []time
}

TimeSlice represents a []time that may be null

func NewTimeSlice

func NewTimeSlice(val []time) TimeSlice

NewTimeSlice creates a new TimeSlice object

func (*TimeSlice) ContextValidate

func (t *TimeSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*TimeSlice) Get

func (t *TimeSlice) Get() *[]time

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*TimeSlice) UnmarshalJSON

func (t *TimeSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*TimeSlice) Validate

func (t *TimeSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint

type Uint struct {
	Valid bool // Valid is true if value is not null and valid uint
	Value uint
}

Uint represents a uint that may be null

func NewUint

func NewUint(val *uint) Uint

NewUint creates a new Uint object

func (*Uint) ContextValidate

func (u *Uint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint) Get

func (u *Uint) Get() *uint

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint) Set

func (u *Uint) Set(val uint)

Set sets the value and valid flag to true

func (*Uint) UnmarshalJSON

func (u *Uint) UnmarshalJSON(data []byte) error

func (*Uint) Validate

func (u *Uint) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint8

type Uint8 struct {
	Valid bool // Valid is true if value is not null and valid uint8
	Value uint8
}

Uint8 represents a uint8 that may be null

func NewUint8

func NewUint8(val *uint8) Uint8

NewUint8 creates a new Uint8 object

func (*Uint8) ContextValidate

func (u *Uint8) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint8) Get

func (u *Uint8) Get() *uint8

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint8) Set

func (u *Uint8) Set(val uint8)

Set sets the value and valid flag to true

func (*Uint8) UnmarshalJSON

func (u *Uint8) UnmarshalJSON(data []byte) error

func (*Uint8) Validate

func (u *Uint8) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint8Slice

type Uint8Slice struct {
	Valid bool // Valid is true if value is not null
	Value []uint8
}

Uint8Slice represents a []uint8 that may be null

func NewUint8Slice

func NewUint8Slice(val []uint8) Uint8Slice

NewUint8Slice creates a new Uint8Slice object

func (*Uint8Slice) ContextValidate

func (u *Uint8Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint8Slice) Get

func (u *Uint8Slice) Get() *[]uint8

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint8Slice) UnmarshalJSON

func (u *Uint8Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Uint8Slice) Validate

func (u *Uint8Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint16

type Uint16 struct {
	Valid bool // Valid is true if value is not null and valid uint16
	Value uint16
}

Uint16 represents a uint16 that may be null

func NewUint16

func NewUint16(val *uint16) Uint16

NewUint16 creates a new Uint16 object

func (*Uint16) ContextValidate

func (u *Uint16) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint16) Get

func (u *Uint16) Get() *uint16

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint16) Set

func (u *Uint16) Set(val uint16)

Set sets the value and valid flag to true

func (*Uint16) UnmarshalJSON

func (u *Uint16) UnmarshalJSON(data []byte) error

func (*Uint16) Validate

func (u *Uint16) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint16Slice

type Uint16Slice struct {
	Valid bool // Valid is true if value is not null
	Value []uint16
}

Uint16Slice represents a []uint16 that may be null

func NewUint16Slice

func NewUint16Slice(val []uint16) Uint16Slice

NewUint16Slice creates a new Uint16Slice object

func (*Uint16Slice) ContextValidate

func (u *Uint16Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint16Slice) Get

func (u *Uint16Slice) Get() *[]uint16

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint16Slice) UnmarshalJSON

func (u *Uint16Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Uint16Slice) Validate

func (u *Uint16Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint32

type Uint32 struct {
	Valid bool // Valid is true if value is not null and valid uint32
	Value uint32
}

Uint32 represents a uint32 that may be null

func NewUint32

func NewUint32(val *uint32) Uint32

NewUint32 creates a new Uint32 object

func (*Uint32) ContextValidate

func (u *Uint32) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint32) Get

func (u *Uint32) Get() *uint32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint32) Set

func (u *Uint32) Set(val uint32)

Set sets the value and valid flag to true

func (*Uint32) UnmarshalJSON

func (u *Uint32) UnmarshalJSON(data []byte) error

func (*Uint32) Validate

func (u *Uint32) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint32Slice

type Uint32Slice struct {
	Valid bool // Valid is true if value is not null
	Value []uint32
}

Uint32Slice represents a []uint32 that may be null

func NewUint32Slice

func NewUint32Slice(val []uint32) Uint32Slice

NewUint32Slice creates a new Uint32Slice object

func (*Uint32Slice) ContextValidate

func (u *Uint32Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint32Slice) Get

func (u *Uint32Slice) Get() *[]uint32

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint32Slice) UnmarshalJSON

func (u *Uint32Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Uint32Slice) Validate

func (u *Uint32Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint64

type Uint64 struct {
	Valid bool // Valid is true if value is not null and valid uint64
	Value uint64
}

Uint64 represents a uint64 that may be null

func NewUint64

func NewUint64(val *uint64) Uint64

NewUint64 creates a new Uint64 object

func (*Uint64) ContextValidate

func (u *Uint64) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint64) Get

func (u *Uint64) Get() *uint64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint64) Set

func (u *Uint64) Set(val uint64)

Set sets the value and valid flag to true

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(data []byte) error

func (*Uint64) Validate

func (u *Uint64) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type Uint64Slice

type Uint64Slice struct {
	Valid bool // Valid is true if value is not null
	Value []uint64
}

Uint64Slice represents a []uint64 that may be null

func NewUint64Slice

func NewUint64Slice(val []uint64) Uint64Slice

NewUint64Slice creates a new Uint64Slice object

func (*Uint64Slice) ContextValidate

func (u *Uint64Slice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*Uint64Slice) Get

func (u *Uint64Slice) Get() *[]uint64

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*Uint64Slice) UnmarshalJSON

func (u *Uint64Slice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*Uint64Slice) Validate

func (u *Uint64Slice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

type UintSlice

type UintSlice struct {
	Valid bool // Valid is true if value is not null
	Value []uint
}

UintSlice represents a []uint that may be null

func NewUintSlice

func NewUintSlice(val []uint) UintSlice

NewUintSlice creates a new UintSlice object

func (*UintSlice) ContextValidate

func (u *UintSlice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable from github.com/go-openapi/runtime

func (*UintSlice) Get

func (u *UintSlice) Get() *[]uint

Returns nil if not present or valid. Otherwise it will return a pointer to the value.

func (*UintSlice) UnmarshalJSON

func (u *UintSlice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Marshaler interface.

func (*UintSlice) Validate

func (u *UintSlice) Validate(formats strfmt.Registry) error

Validate implements runtime.Validateable interface from github.com/go-openapi/runtime

Directories

Path Synopsis
scripts
nullable command

Jump to

Keyboard shortcuts

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