Documentation ¶
Index ¶
- func NewDB(ctx context.Context, sp view2.ServiceProvider, config *config2.Config, ...) (*network, error)
- func NewNetwork(ctx context.Context, sp view2.ServiceProvider, config *config2.Config, ...) (*network, error)
- type DataTx
- func (d *DataTx) AddMustSignUser(userID string)
- func (d *DataTx) Commit(sync bool) (string, error)
- func (d *DataTx) Delete(db string, key string) error
- func (d *DataTx) Get(db string, key string) ([]byte, error)
- func (d *DataTx) Put(db string, key string, bytes []byte, a driver.AccessControl) error
- func (d *DataTx) SignAndClose() ([]byte, error)
- type IdentityManager
- type LoadedDataTx
- func (l *LoadedDataTx) CoSignAndClose() ([]byte, error)
- func (l *LoadedDataTx) Commit() error
- func (l *LoadedDataTx) ID() string
- func (l *LoadedDataTx) MustSignUsers() []string
- func (l *LoadedDataTx) Reads() map[string][]*driver.DataRead
- func (l *LoadedDataTx) SignedUsers() []string
- func (l *LoadedDataTx) Writes() map[string][]*driver.DataWrite
- type Network
- type Query
- type QueryIterator
- type Session
- type SessionManager
- type Vault
- func (v *Vault) CommitTX(txID string, block uint64, indexInBloc int) error
- func (v *Vault) DiscardTx(txID string) error
- func (v *Vault) GetLastTxID() (string, error)
- func (v *Vault) GetRWSet(id string, results []byte) (driver.RWSet, error)
- func (v *Vault) NewQueryExecutor() (driver.QueryExecutor, error)
- func (v *Vault) NewRWSet(txID string) (driver.RWSet, error)
- func (v *Vault) Status(txID string) (driver.ValidationCode, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetwork ¶
Types ¶
type DataTx ¶
type DataTx struct {
// contains filtered or unexported fields
}
func (*DataTx) AddMustSignUser ¶
func (*DataTx) SignAndClose ¶
type IdentityManager ¶
type IdentityManager struct {
// contains filtered or unexported fields
}
func (*IdentityManager) Me ¶
func (i *IdentityManager) Me() string
type LoadedDataTx ¶
type LoadedDataTx struct {
// contains filtered or unexported fields
}
func (*LoadedDataTx) CoSignAndClose ¶
func (l *LoadedDataTx) CoSignAndClose() ([]byte, error)
func (*LoadedDataTx) Commit ¶
func (l *LoadedDataTx) Commit() error
func (*LoadedDataTx) ID ¶
func (l *LoadedDataTx) ID() string
func (*LoadedDataTx) MustSignUsers ¶
func (l *LoadedDataTx) MustSignUsers() []string
func (*LoadedDataTx) SignedUsers ¶
func (l *LoadedDataTx) SignedUsers() []string
type Network ¶
type Network interface { TransactionManager() driver.TransactionManager EnvelopeService() driver.EnvelopeService }
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) GetDataByRange ¶
type QueryIterator ¶
type QueryIterator struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) LoadDataTx ¶
func (s *Session) LoadDataTx(envBoxed interface{}) (driver.LoadedDataTx, error)
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func (*SessionManager) NewSession ¶
func (s *SessionManager) NewSession(id string) (driver.Session, error)
type Vault ¶
type Vault struct { *vault.Vault *vault.SimpleTXIDStore // contains filtered or unexported fields }
func (*Vault) GetLastTxID ¶
func (*Vault) NewQueryExecutor ¶
func (v *Vault) NewQueryExecutor() (driver.QueryExecutor, error)
Click to show internal directories.
Click to hide internal directories.