index

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(key string) *indexBuilder

Index 索引

Types

type Descriptor

type Descriptor struct {
	StorageKey string           // 索引名称
	Unique     bool             // 是否唯一
	Background bool             // 是否后台运行
	Sparse     bool             // 是否是稀疏索引(null不包含)
	Expire     time.Duration    // 是否过期
	Keys       []types.MapEntry // 索引组合
	Err        error
}

A Descriptor for index configuration.

Jump to

Keyboard shortcuts

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