Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶ added in v1.4.0
Bool is a nullable bool.
func (Bool) MarshalJSON ¶ added in v1.4.0
MarshalJSON implements the json.Marshaler interface.
func (*Bool) UnmarshalJSON ¶ added in v1.4.0
UnmarshalJSON implements the json.Unmarshaler interface.
type EthAddress ¶ added in v1.5.0
EthAddress is a nullable github.com/ethereum/go-ethereum/common.Address.
func NewEthAddress ¶ added in v1.5.0
func NewEthAddress(address ethcommon.Address, valid bool) EthAddress
NewEthAddress returns a new EthAddress.
func (EthAddress) MarshalJSON ¶ added in v1.5.0
func (n EthAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (EthAddress) NullableString ¶ added in v1.5.0
func (n EthAddress) NullableString() String
NullableString returns the String.
func (*EthAddress) Scan ¶ added in v1.5.0
func (n *EthAddress) Scan(src any) error
Scan implements the sql.Scanner interface.
func (*EthAddress) UnmarshalJSON ¶ added in v1.5.0
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 ¶ added in v1.9.0
Int32 is a nullable int32.
func (Int32) MarshalJSON ¶ added in v1.9.0
MarshalJSON implements the json.Marshaler interface.
func (*Int32) UnmarshalJSON ¶ added in v1.9.0
UnmarshalJSON implements the json.Unmarshaler interface.
type Int64 ¶ added in v1.5.0
Int64 is a nullable int64.
func (Int64) MarshalJSON ¶ added in v1.5.0
MarshalJSON implements the json.Marshaler interface.
func (*Int64) UnmarshalJSON ¶ added in v1.5.0
UnmarshalJSON implements the json.Unmarshaler interface.
type String ¶
type String struct {
sql.NullString
}
String is a nullable string.
func (String) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (String) MarshalYAML ¶ added in v1.3.0
MarshalYAML implements the yaml.Marshaler interface.
func (*String) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
type Timestamp ¶ added in v1.2.0
type Timestamp struct { Timestamp timeutil.Timestamp Valid bool }
Timestamp is a nullable github.com/m0t0k1ch1-go/timeutil.Timestamp.
func NewTimestamp ¶ added in v1.2.0
NewTimestamp returns a new Timestamp.
func (Timestamp) MarshalJSON ¶ added in v1.2.0
MarshalJSON implements the json.Marshaler interface.
func (Timestamp) NullableString ¶ added in v1.2.0
NullableString returns the String.
func (*Timestamp) UnmarshalJSON ¶ added in v1.2.0
UnmarshalJSON implements the json.Unmarshaler interface.
type Uint256 ¶ added in v1.1.0
type Uint256 struct { Uint256 bigutil.Uint256 Valid bool }
Uint256 is a nullable github.com/m0t0k1ch1-go/bigutil.Uint256.
func NewUint256 ¶ added in v1.1.0
NewUint256 returns a new Uint256.
func (Uint256) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaler interface.
func (Uint256) NullableString ¶ added in v1.1.0
NullableString returns the String.
func (*Uint256) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaler interface.