edgedbtypes

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration int64

Duration represents the elapsed time between two instants as an int64 microsecond count.

func (Duration) String

func (d Duration) String() string

type LocalDate

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

LocalDate is a date without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

func NewLocalDate

func NewLocalDate(year int, month time.Month, day int) LocalDate

NewLocalDate returns a new LocalDate

func (LocalDate) String

func (d LocalDate) String() string

type LocalDateTime

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

LocalDateTime is a date and time without timezone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

func NewLocalDateTime

func NewLocalDateTime(
	year int, month time.Month, day, hour, minute, second, microsecond int,
) LocalDateTime

NewLocalDateTime returns a new LocalDateTime

func (LocalDateTime) String

func (dt LocalDateTime) String() string

type LocalTime

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

LocalTime is a time without a time zone. https://www.edgedb.com/docs/datamodel/scalars/datetime/

func NewLocalTime

func NewLocalTime(hour, minute, second, microsecond int) LocalTime

NewLocalTime returns a new LocalTime

func (LocalTime) String

func (t LocalTime) String() string

type UUID

type UUID [16]byte

UUID a universally unique identifier https://www.edgedb.com/docs/datamodel/scalars/uuid#type::std::uuid

func (UUID) MarshalText

func (id UUID) MarshalText() ([]byte, error)

MarshalText returns the id as a byte string.

func (UUID) String

func (id UUID) String() string

func (*UUID) UnmarshalText

func (id *UUID) UnmarshalText(b []byte) error

UnmarshalText unmarshals the id from a string.

Jump to

Keyboard shortcuts

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