Documentation ¶
Overview ¶
Package toml implements a key/value store using TOML for Cogs to query.
Index ¶
Constants ¶
View Source
const ( // Unknown indicates the Value Type is not known. Unknown = "" // String indicates the Value Type is a string. String = "string" // Int indicates the Value Type is an int. Int = "int" // Uint indicates the Value Type is an uint. Uint = "uint" // Float64 indicates the Value Type is a float64. Float64 = "float64" // Bytes indictes the Value Type is a []byte. Bytes = "bytes" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyValue ¶
type KeyValue struct {
// contains filtered or unexported fields
}
KeyValue implements a storage.Reader.
type Value ¶
type Value struct { // Type is the type stored. Type string // Int stores an int. Int int // Uint stores an uint. Uint uint // Float64 stores a float64. Float64 float64 // String stores a string. String string // Bytes stores a []byte. Bytes []byte }
Value represents a Value in a Cog map.
Click to show internal directories.
Click to hide internal directories.