diff options
Diffstat (limited to 'client/go/internal/slime/inspector.go')
-rw-r--r-- | client/go/internal/slime/inspector.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/client/go/internal/slime/inspector.go b/client/go/internal/slime/inspector.go new file mode 100644 index 00000000000..76e19035ecf --- /dev/null +++ b/client/go/internal/slime/inspector.go @@ -0,0 +1,20 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +// Author: arnej + +package slime + +type Inspector interface { + Valid() bool + Type() Type + Entries() int // for arrays only + Fields() int // for objects only + AsBool() bool + AsLong() int64 + AsDouble() float64 + AsString() string + AsData() []byte + TraverseArray(ArrayTraverser) + TraverseObject(ObjectTraverser) + Entry(int) Inspector + Field(string) Inspector +} |