Documentation ¶
Index ¶
Constants ¶
View Source
const ( Read = iota Write Delete )
Variables ¶
View Source
var Commandtypes = [...]string{
"Read",
"Write",
"Delete",
}
Functions ¶
This section is empty.
Types ¶
type CommandType ¶
type CommandType int8
func (CommandType) String ¶
func (ct CommandType) String() string
type ErrSyntax ¶
type ErrSyntax struct { Line int Source string // The contents of the erroneous line, without leading or trailing whitespace }
ErrSyntax is returned when there is a syntax error in an INI file.
type File ¶
A File represents a parsed INI file.
func (File) Get ¶
Looks up a value for a key in a section and returns that value, along with a boolean result similar to a map lookup.
type MapRequest ¶
type MapRequest struct { Ct CommandType Key []byte Value []byte }
func (*MapRequest) BinarySize ¶
func (t *MapRequest) BinarySize() (nbytes int, sizeKnown bool)
func (*MapRequest) Marshal ¶
func (t *MapRequest) Marshal(wire io.Writer)
func (MapRequest) String ¶
func (req MapRequest) String() string
type MapRequestCache ¶
type MapRequestCache struct {
// contains filtered or unexported fields
}
func NewMapRequestCache ¶
func NewMapRequestCache() *MapRequestCache
func (*MapRequestCache) Get ¶
func (p *MapRequestCache) Get() *MapRequest
func (*MapRequestCache) Put ¶
func (p *MapRequestCache) Put(t *MapRequest)
type MapResponse ¶
type MapResponse struct { ToType CommandType Value []byte Found byte Err []byte }
func (*MapResponse) BinarySize ¶
func (t *MapResponse) BinarySize() (nbytes int, sizeKnown bool)
func (*MapResponse) Marshal ¶
func (t *MapResponse) Marshal(wire io.Writer)
func (MapResponse) String ¶
func (resp MapResponse) String() string
type MapResponseCache ¶
type MapResponseCache struct {
// contains filtered or unexported fields
}
func NewMapResponseCache ¶
func NewMapResponseCache() *MapResponseCache
func (*MapResponseCache) Get ¶
func (p *MapResponseCache) Get() *MapResponse
func (*MapResponseCache) Put ¶
func (p *MapResponseCache) Put(t *MapResponse)
Click to show internal directories.
Click to hide internal directories.