Documentation ¶
Index ¶
- type Database
- type Object
- func (o *Object) Append() *Object
- func (o *Object) Bool() bool
- func (o *Object) Bytes() []byte
- func (o *Object) Cid() *cid.Cid
- func (o *Object) Class() *Object
- func (o *Object) Delete() error
- func (o *Object) Each(callback func(interface{}, *Object) error) error
- func (o *Object) EachSimple(callback func(*Object, *Object) error) error
- func (o *Object) Get(key interface{}) *Object
- func (o *Object) Int() int
- func (o *Object) Int64() int64
- func (o *Object) Len() int
- func (o *Object) Set(value interface{}) error
- func (o *Object) String() string
- func (o *Object) Type() pathing.Type
- func (o *Object) Uint64() uint64
- type Signer
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Get(hash string) (interface{}, error) Put(val interface{}) (string, error) GetData(hash string) (uint64, []byte, error) PutData(typ uint64, data []byte) (string, error) Resolve(addr string) (string, error) Publish(addr, path string) error KeyGen() (string, error) KeyList() ([]string, error) }
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) EachSimple ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() string
func (*Transaction) Root ¶
func (tx *Transaction) Root() *Object
Click to show internal directories.
Click to hide internal directories.