types

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorID

type ActorID struct {
	ID uint64
}

func (ActorID) MarshalGQL

func (b ActorID) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*ActorID) Scan

func (b *ActorID) Scan(value interface{}) error

func (*ActorID) UnmarshalGQL

func (b *ActorID) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (ActorID) Value

func (b ActorID) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type Address

type Address struct {
	address.Address
	// contains filtered or unexported fields
}

func MustParseAddress

func MustParseAddress(addr string) Address

func NewFromString

func NewFromString(addr string) (Address, error)

func (*Address) ID

func (a *Address) ID() *uint64

func (Address) MarshalGQL

func (b Address) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*Address) Scan

func (b *Address) Scan(value interface{}) error

func (*Address) UnmarshalGQL

func (b *Address) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (Address) Value

func (b Address) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type BigInt

type BigInt struct {
	*big.Int
}

func (BigInt) MarshalGQL

func (b BigInt) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*BigInt) Scan

func (b *BigInt) Scan(value interface{}) error

func (*BigInt) UnmarshalGQL

func (b *BigInt) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (BigInt) Value

func (b BigInt) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type Bytes

type Bytes []byte

func (Bytes) MarshalGQL

func (b Bytes) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*Bytes) Scan

func (b *Bytes) Scan(value interface{}) error

func (*Bytes) UnmarshalGQL

func (b *Bytes) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (Bytes) Value

func (b Bytes) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type FIL

type FIL struct {
	types.FIL
}

func MustParseFIL

func MustParseFIL(s string) FIL

func (FIL) MarshalGQL

func (b FIL) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*FIL) Scan

func (b *FIL) Scan(value interface{}) error

func (*FIL) UnmarshalGQL

func (b *FIL) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (FIL) Value

func (b FIL) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

type JSON

type JSON struct {
	json.RawMessage
}

func MustJSON

func MustJSON(v any) JSON

func ToJSON

func ToJSON(v any) (JSON, error)

func (JSON) MarshalGQL

func (c JSON) MarshalGQL(w io.Writer)

func (*JSON) UnmarshalGQL

func (c *JSON) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type NullBool

type NullBool struct {
	sql.NullBool
}

func MustNullBool

func MustNullBool(v any) NullBool

func (NullBool) MarshalGQL

func (b NullBool) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*NullBool) UnmarshalGQL

func (b *NullBool) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

func MustNullInt64

func MustNullInt64(v any) NullInt64

func (NullInt64) MarshalGQL

func (b NullInt64) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*NullInt64) UnmarshalGQL

func (b *NullInt64) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type NullString

type NullString struct {
	sql.NullString
}

func MustNullString

func MustNullString(v any) NullString

func (NullString) MarshalGQL

func (b NullString) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*NullString) UnmarshalGQL

func (b *NullString) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type NullTime added in v0.2.3

type NullTime struct {
	sql.NullTime
}

func MustNullTime added in v0.2.3

func MustNullTime(v any) NullTime

func (NullTime) MarshalGQL added in v0.2.3

func (b NullTime) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*NullTime) UnmarshalGQL added in v0.2.3

func (b *NullTime) UnmarshalGQL(v any) error

UnmarshalGQL implements the graphql.Unmarshaler interface

type PeerID

type PeerID struct {
	*peer.ID
}

func MustParsePeerID

func MustParsePeerID(s string) PeerID

func (PeerID) MarshalGQL

func (b PeerID) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface

func (*PeerID) Scan

func (b *PeerID) Scan(value interface{}) error

func (*PeerID) UnmarshalGQL

func (b *PeerID) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface

func (PeerID) Value

func (b PeerID) Value() (driver.Value, error)

Value return json value, implement driver.Valuer interface

Jump to

Keyboard shortcuts

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