Documentation ¶
Index ¶
- func NewTLSConfig(config *TLSConfig) (*tls.Config, error)
- type AuthManagerProvider
- type AuthProvider
- type BlockPrivateData
- type CacheWithEmpty
- type JWT
- type PrivateBlockDataResolver
- type PrivateClientCache
- type PrivateQLightAPI
- type PrivateStateRootHashValidator
- type PrivateTransactionData
- type QLightCacheKey
- type RunningPeerAuthUpdater
- type TLSConfig
- type TokenHolder
- func (h *TokenHolder) CurrentToken() string
- func (h *TokenHolder) HttpCredentialsProvider(ctx context.Context) (string, error)
- func (h *TokenHolder) RefreshPlugin(pluginManager plugin.PluginManagerInterface) error
- func (h *TokenHolder) ReloadPlugin() error
- func (h *TokenHolder) SetCurrentToken(v string)
- func (h *TokenHolder) SetExpirationAnticipation(v int32)
- func (h *TokenHolder) SetPeerUpdater(peerUpdater RunningPeerAuthUpdater)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthManagerProvider ¶
type AuthManagerProvider func() security.AuthenticationManager
type AuthProvider ¶
func NewAuthProvider ¶
func NewAuthProvider(privateStateManager mps.PrivateStateManager, authManagerProvider AuthManagerProvider) AuthProvider
type BlockPrivateData ¶
type BlockPrivateData struct { BlockHash common.Hash PSI types.PrivateStateIdentifier PrivateStateRoot common.Hash PrivateTransactions []PrivateTransactionData }
type CacheWithEmpty ¶
type CacheWithEmpty interface { Cache(privateTxData *qlightptm.CachablePrivateTransactionData) error CheckAndAddEmptyToCache(hash common.EncryptedPayloadHash) }
type PrivateBlockDataResolver ¶
type PrivateBlockDataResolver interface {
PrepareBlockPrivateData(block *types.Block, psi string) (*BlockPrivateData, error)
}
func NewPrivateBlockDataResolver ¶
func NewPrivateBlockDataResolver(privateStateManager mps.PrivateStateManager, ptm private.PrivateTransactionManager) PrivateBlockDataResolver
type PrivateClientCache ¶
type PrivateClientCache interface { PrivateStateRootHashValidator AddPrivateBlock(blockPrivateData BlockPrivateData) error CheckAndAddEmptyEntry(hash common.EncryptedPayloadHash) }
func NewClientCache ¶
func NewClientCache(db ethdb.Database) (PrivateClientCache, error)
func NewClientCacheWithEmpty ¶
func NewClientCacheWithEmpty(db ethdb.Database, cacheWithEmpty CacheWithEmpty, gocache *gocache.Cache) (PrivateClientCache, error)
type PrivateQLightAPI ¶
type PrivateQLightAPI struct {
// contains filtered or unexported fields
}
func NewPrivateQLightAPI ¶
func NewPrivateQLightAPI(peerUpdater RunningPeerAuthUpdater, rpcClient *rpc.Client) *PrivateQLightAPI
NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
func (*PrivateQLightAPI) GetCurrentToken ¶
func (p *PrivateQLightAPI) GetCurrentToken() string
func (*PrivateQLightAPI) ReloadPlugin ¶
func (p *PrivateQLightAPI) ReloadPlugin() error
func (*PrivateQLightAPI) SetCurrentToken ¶
func (p *PrivateQLightAPI) SetCurrentToken(token string)
type PrivateTransactionData ¶
type PrivateTransactionData struct { Hash *common.EncryptedPayloadHash Payload []byte Extra *engine.ExtraMetadata IsSender bool }
func (*PrivateTransactionData) ToCachable ¶
func (d *PrivateTransactionData) ToCachable() *qlightptm.CachablePrivateTransactionData
type QLightCacheKey ¶
type QLightCacheKey struct { BlockHash common.Hash PSI types.PrivateStateIdentifier }
func (*QLightCacheKey) String ¶
func (k *QLightCacheKey) String() string
type RunningPeerAuthUpdater ¶
type TokenHolder ¶
type TokenHolder struct {
// contains filtered or unexported fields
}
func NewTokenHolder ¶
func NewTokenHolder(psi string, pluginManager *plugin.PluginManager) (*TokenHolder, error)
func NewTokenHolderWithPlugin ¶
func NewTokenHolderWithPlugin(psi string, refreshAnticipation int32, plugin qlightplugin.PluginTokenManager, pluginManager *plugin.PluginManager) *TokenHolder
func (*TokenHolder) CurrentToken ¶
func (h *TokenHolder) CurrentToken() string
func (*TokenHolder) HttpCredentialsProvider ¶
func (h *TokenHolder) HttpCredentialsProvider(ctx context.Context) (string, error)
func (*TokenHolder) RefreshPlugin ¶
func (h *TokenHolder) RefreshPlugin(pluginManager plugin.PluginManagerInterface) error
func (*TokenHolder) ReloadPlugin ¶
func (h *TokenHolder) ReloadPlugin() error
func (*TokenHolder) SetCurrentToken ¶
func (h *TokenHolder) SetCurrentToken(v string)
func (*TokenHolder) SetExpirationAnticipation ¶
func (h *TokenHolder) SetExpirationAnticipation(v int32)
func (*TokenHolder) SetPeerUpdater ¶
func (h *TokenHolder) SetPeerUpdater(peerUpdater RunningPeerAuthUpdater)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.