Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
Bool is a nullable bool.
func NewBoolFromBoolPtr ¶ added in v2.2.0
NewBoolFromBoolPtr returns a new Bool from a bool pointer.
func (Bool) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Bool) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type EthAddress ¶
EthAddress is a nullable github.com/ethereum/go-ethereum/common.Address.
func NewEthAddress ¶
func NewEthAddress(address ethcommon.Address, valid bool) EthAddress
NewEthAddress returns a new EthAddress.
func (EthAddress) MarshalJSON ¶
func (n EthAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (EthAddress) NullableString ¶
func (n EthAddress) NullableString() String
NullableString returns the String.
func (*EthAddress) Scan ¶
func (n *EthAddress) Scan(src any) error
Scan implements the sql.Scanner interface.
func (*EthAddress) UnmarshalJSON ¶
func (n *EthAddress) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
type EthHash ¶
EthHash is a nullable github.com/ethereum/go-ethereum/common.Hash.
func NewEthHash ¶
NewEthHash returns a new EthHash.
func (EthHash) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (EthHash) NullableString ¶
NullableString returns the String.
func (*EthHash) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Int32 ¶
Int32 is a nullable int32.
func NewInt32FromInt32Ptr ¶ added in v2.2.0
NewInt32FromInt32Ptr returns a new Int32 from a int32 pointer.
func (Int32) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Int32) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Int64 ¶
Int64 is a nullable int64.
func NewInt64FromInt64Ptr ¶ added in v2.2.0
NewInt64FromInt64Ptr returns a new Int64 from a int64 pointer.
func (Int64) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Int64) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type String ¶
type String struct {
sql.NullString
}
String is a nullable string.
func NewStringFromStringPtr ¶ added in v2.2.0
NewStringFromStringPtr returns a new String from a string pointer.
func (String) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (String) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Timestamp ¶
type Timestamp struct { Timestamp timeutil.Timestamp Valid bool }
Timestamp is a nullable github.com/m0t0k1ch1-go/timeutil.Timestamp.
func NewTimestamp ¶
NewTimestamp returns a new Timestamp.
func (Timestamp) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Timestamp) NullableString ¶
NullableString returns the String.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Uint256 ¶
type Uint256 struct { Uint256 bigutil.Uint256 Valid bool }
Uint256 is a nullable github.com/m0t0k1ch1-go/bigutil.Uint256.
func NewUint256 ¶
NewUint256 returns a new Uint256.
func (Uint256) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Uint256) NullableString ¶
NullableString returns the String.
func (*Uint256) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Uint64 ¶
Uint64 is a nullable uint64.
func NewUint64FromUint64Ptr ¶ added in v2.2.0
NewUint64FromUint64Ptr returns a new Uint64 from a uint64 pointer.
func (Uint64) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Uint64) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.