Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
type IndexSpec ¶
IndexSpec holds information about a particular index. It does not contain index type, as indexes do not have type.
type OptionValue ¶
type OptionValue struct {
// contains filtered or unexported fields
}
func NewOption ¶
func NewOption(key string, initial interface{}, export bool) *OptionValue
func (*OptionValue) Exported ¶ added in v1.3.0
func (ov *OptionValue) Exported() bool
func (*OptionValue) Identity ¶
func (ov *OptionValue) Identity() string
func (*OptionValue) Set ¶
func (ov *OptionValue) Set(v interface{})
func (*OptionValue) Value ¶
func (ov *OptionValue) Value() interface{}
type SchemaSpec ¶
type SchemaSpec struct { Fields []FieldSpec `json:"fields"` // keys are field names Indexes []IndexSpec `json:"indexes"` // keys are index prefix bytes }
SchemaSpec is used to serialize known database structure information.
type Transaction ¶
type TxnDB ¶
type TxnDB interface { DB NewTransaction() Transaction }
Click to show internal directories.
Click to hide internal directories.