types

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "2006-01-02"

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#DateFormat

Variables

View Source
var ErrValidationEmail = errors.New("email: failed to pass regex validation")

ErrValidationEmail is the sentinel error returned when an email fails validation

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#ErrValidationEmail

Functions

This section is empty.

Types

type Date deprecated

type Date struct {
	time.Time
}

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Date

func (Date) MarshalJSON deprecated

func (d Date) MarshalJSON() ([]byte, error)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#MarshalJSON

func (Date) String deprecated

func (d Date) String() string

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#String

func (*Date) UnmarshalJSON deprecated

func (d *Date) UnmarshalJSON(data []byte) error

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#UnmarshalJSON

func (*Date) UnmarshalText deprecated

func (d *Date) UnmarshalText(data []byte) error

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#UnmarshalText

type Email deprecated

type Email string

Email represents an email address. It is a string type that must pass regex validation before being marshalled to JSON or unmarshalled from JSON.

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Email

func (Email) MarshalJSON deprecated

func (e Email) MarshalJSON() ([]byte, error)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#MarshalJSON

func (*Email) UnmarshalJSON deprecated

func (e *Email) UnmarshalJSON(data []byte) error

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#UnmarshalJSON

type File deprecated

type File struct {
	// contains filtered or unexported fields
}

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#File

func (File) Bytes deprecated

func (file File) Bytes() ([]byte, error)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Bytes

func (File) FileSize deprecated

func (file File) FileSize() int64

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#FileSize

func (File) Filename deprecated

func (file File) Filename() string

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Filename

func (*File) InitFromBytes deprecated

func (file *File) InitFromBytes(data []byte, filename string)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#InitFromBytes

func (*File) InitFromMultipart deprecated

func (file *File) InitFromMultipart(header *multipart.FileHeader)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#InitFromMultipart

func (File) MarshalJSON deprecated

func (file File) MarshalJSON() ([]byte, error)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#MarshalJSON

func (File) Reader deprecated

func (file File) Reader() (io.ReadCloser, error)

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#Reader

func (*File) UnmarshalJSON deprecated

func (file *File) UnmarshalJSON(data []byte) error

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#UnmarshalJSON

type UUID deprecated

type UUID = uuid.UUID

Deprecated: This has been replaced by github.com/oapi-codegen/runtime/types#UUID

Jump to

Keyboard shortcuts

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