Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteTrustProvider ¶
func NewRemoteTrustProvider(prm RemoteProviderPrm) reputationrouter.RemoteWriterProvider
func PanicOnPrmValue ¶
Types ¶
type EpochContext ¶
EpochContext is a std context extended with epoch data.
func (*EpochContext) Epoch ¶
func (ctx *EpochContext) Epoch() uint64
type NopReputationWriter ¶
type NopReputationWriter struct{}
func (NopReputationWriter) Close ¶
func (NopReputationWriter) Close() error
func (NopReputationWriter) Write ¶
func (NopReputationWriter) Write(reputation.Trust) error
type OnlyKeyRemoteServerInfo ¶
type OnlyKeyRemoteServerInfo struct {
Key []byte
}
OnlyKeyRemoteServerInfo is an implementation of reputation.ServerInfo interface but with only public key data.
func (*OnlyKeyRemoteServerInfo) ExternalAddresses ¶ added in v0.33.0
func (*OnlyKeyRemoteServerInfo) ExternalAddresses() []string
func (*OnlyKeyRemoteServerInfo) IterateAddresses ¶ added in v0.22.0
func (*OnlyKeyRemoteServerInfo) IterateAddresses(func(string) bool)
func (*OnlyKeyRemoteServerInfo) NumberOfAddresses ¶ added in v0.22.0
func (*OnlyKeyRemoteServerInfo) NumberOfAddresses() int
func (*OnlyKeyRemoteServerInfo) PublicKey ¶
func (i *OnlyKeyRemoteServerInfo) PublicKey() []byte
type RemoteProviderPrm ¶
type RemoteProviderPrm struct { NetmapKeys netmap.AnnouncedKeys DeadEndProvider reputationcommon.WriterProvider ClientCache clientCache WriterProvider clientKeyRemoteProvider Log *zap.Logger }
RemoteProviderPrm groups the required parameters of the remoteTrustProvider's constructor.
All values must comply with the requirements imposed on them. Passing incorrect parameter values will result in constructor failure (error or panic depending on the implementation).
Click to show internal directories.
Click to hide internal directories.