types

package
v0.0.0-...-52c27b0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIDSize              = errors.New("id: bad size when unmarshaling")
	ErrIDInvalidCharacters = errors.New("id: bad characters when unmarshaling")
	ErrIDScanType          = errors.New("id: source value must be a string")
)

Functions

This section is empty.

Types

type ID

type ID uuid.UUID
var ZeroID ID

func ParseID

func ParseID(s string) (ID, error)

func (ID) MarshalGQL

func (id ID) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*ID) Scan

func (id *ID) Scan(src any) error

Scan implements sql.Scanner

func (ID) String

func (id ID) String() string

func (*ID) UnmarshalGQL

func (id *ID) UnmarshalGQL(src any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (ID) Value

func (id ID) Value() (driver.Value, error)

Value implements sql.Valuer

Jump to

Keyboard shortcuts

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