Documentation
¶
Index ¶
Constants ¶
View Source
const ( // No 二态值 否 No int8 = 0 // Yes 二态值 是 Yes int8 = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitmap64 ¶
Bitmap64 alias type of types.Binary[*roaring64Bitmap]
func MustBitmap64 ¶
MustBitmap64 create a Bitmap64 instance
type Boxes ¶ added in v0.3.0
type Boxes[T any] interface { Box(t T) Unbox() T }
Boxes Box/Unbox interface
type JsonBox ¶ added in v0.3.0
type JsonBox[T any] struct { // contains filtered or unexported fields }
JsonBox Json box for process database/sql json data
func NewJsonBox ¶ added in v0.3.0
NewJsonBox create a new JsonBox instance
func (*JsonBox[T]) MarshalJSON ¶ added in v0.3.0
func (*JsonBox[T]) UnmarshalJSON ¶ added in v0.3.0
type NullBitmap ¶
type NullBitmap = types.NullBinary[*roaringBitmap]
NullBitmap alias type of types.NullBinary[*roaringBitmap]
func MustNullBitmap ¶
func MustNullBitmap(data ...[]byte) (res *NullBitmap)
MustNullBitmap create a NullBitmap instance
type NullBitmap64 ¶
type NullBitmap64 = types.NullBinary[*roaring64Bitmap]
NullBitmap64 alias type of types.NullBinary[*roaring64Bitmap]
func MustNullBitmap64 ¶
func MustNullBitmap64(data ...[]byte) (res *NullBitmap64)
MustNullBitmap64 create a NullBitmap64 instance
func NewNullBitmap64 ¶
func NewNullBitmap64() *NullBitmap64
NewNullBitmap64 create a NullBitmap64 instance
type PasswordProvider ¶
type PasswordProvider interface { Generate(password []byte) ([]byte, error) Compare(hashedPassword, password []byte) error }
func NewBcryptPasswordProvider ¶
func NewBcryptPasswordProvider(cost int) PasswordProvider
Click to show internal directories.
Click to hide internal directories.