Documentation ¶
Index ¶
- type ErrInvalidULID
- type ID
- func (id ID) Bytes() []byte
- func (id ID) Compare(other ID) int
- func (id ID) Copy() ID
- func (id ID) Equal(other ID) bool
- func (id ID) IsZero() bool
- func (id ID) Marshal() ([]byte, error)
- func (id ID) MarshalCQL(info gocql.TypeInfo) ([]byte, error)
- func (id ID) MarshalJSON() ([]byte, error)
- func (id ID) MarshalTo(data []byte) (n int, err error)
- func (id *ID) ScanUUID(v pgtype.UUID) error
- func (id *ID) Size() int
- func (id ID) String() string
- func (id ID) Time() uint64
- func (id ID) ULID() ulid.ULID
- func (id ID) UUIDValue() (pgtype.UUID, error)
- func (id *ID) Unmarshal(data []byte) error
- func (id *ID) UnmarshalCQL(info gocql.TypeInfo, data []byte) error
- func (id *ID) UnmarshalJSON(data []byte) error
- type IDs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInvalidULID ¶
type ErrInvalidULID struct {
Value any
}
func (ErrInvalidULID) Error ¶
func (e ErrInvalidULID) Error() string
type ID ¶
type ID []byte
ID is an alias of ulid.ULID.
func NewPopulatedID ¶
func NewPopulatedID(r randyID) *ID
NewPopulatedID only required if populate option is set.
func (ID) MarshalCQL ¶
MarshalCQL override marshalling to fit CQL UUID.
func (ID) MarshalJSON ¶
MarshalJSON returns id in human readable string format.
func (*ID) UnmarshalCQL ¶
UnmarshalCQL override unmarshalling to fit CQL UUID.
func (*ID) UnmarshalJSON ¶
UnmarshalJSON unmarshals and valid data.
Click to show internal directories.
Click to hide internal directories.