Documentation ¶
Index ¶
- Variables
- type Storage
- func (storage *Storage) ActivateSharedPeer(sharingKey string, pubkey string) (int64, error)
- func (storage *Storage) AsKeystore() auth.KeyStore
- func (storage *Storage) CreatePeer(peer types.PeerInfo) (int64, error)
- func (storage *Storage) DeleteAuthorizerKey(id string) error
- func (storage *Storage) DeleteEventlogsSubscriber(subscriberID string) error
- func (storage *Storage) DeletePeer(id int64) error
- func (storage *Storage) GetAuthorizerKeyByID(id string) (types.AuthorizerKey, error)
- func (storage *Storage) GetDownstreamMetric() int64
- func (storage *Storage) GetEventlogsSubscriber(subscriberID string) (*types.EventlogSubscriber, error)
- func (storage *Storage) GetPeer(id int64) (*types.PeerInfo, error)
- func (s *Storage) GetPeerBySharingKey(skey string) (types.PeerInfo, error)
- func (storage *Storage) GetUpstreamMetric() int64
- func (storage *Storage) ListAuthorizerKeys() ([]types.AuthorizerKey, error)
- func (storage *Storage) PutEventlogsSubscriber(subscriber *types.EventlogSubscriber) error
- func (storage *Storage) Running() bool
- func (storage *Storage) SearchPeers(filter *types.PeerInfo) ([]*types.PeerInfo, error)
- func (storage *Storage) SetDownstreamMetric(value int64)
- func (storage *Storage) SetUpstreamMetric(value int64)
- func (storage *Storage) Shutdown() error
- func (storage *Storage) UpdateAuthorizerKeys(keys []types.AuthorizerKey) error
- func (storage *Storage) UpdatePeer(peer *types.PeerInfo) (int64, error)
- func (storage *Storage) UpdatePeerStats(now time.Time, peer *types.PeerInfo) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ActivateSharedPeer ¶
func (*Storage) AsKeystore ¶
func (*Storage) DeleteAuthorizerKey ¶
func (*Storage) DeleteEventlogsSubscriber ¶ added in v0.3.5
func (*Storage) DeletePeer ¶
func (*Storage) GetAuthorizerKeyByID ¶
func (storage *Storage) GetAuthorizerKeyByID(id string) (types.AuthorizerKey, error)
func (*Storage) GetDownstreamMetric ¶ added in v0.3.2
func (*Storage) GetEventlogsSubscriber ¶ added in v0.3.5
func (storage *Storage) GetEventlogsSubscriber(subscriberID string) (*types.EventlogSubscriber, error)
func (*Storage) GetPeerBySharingKey ¶ added in v0.2.3
func (*Storage) GetUpstreamMetric ¶ added in v0.3.2
func (*Storage) ListAuthorizerKeys ¶
func (storage *Storage) ListAuthorizerKeys() ([]types.AuthorizerKey, error)
func (*Storage) PutEventlogsSubscriber ¶ added in v0.3.5
func (storage *Storage) PutEventlogsSubscriber(subscriber *types.EventlogSubscriber) error
func (*Storage) SearchPeers ¶
func (*Storage) SetDownstreamMetric ¶ added in v0.3.2
func (*Storage) SetUpstreamMetric ¶ added in v0.3.2
func (*Storage) UpdateAuthorizerKeys ¶
func (storage *Storage) UpdateAuthorizerKeys(keys []types.AuthorizerKey) error
UpdateAuthorizerKeys updates or inserts the given keys. The methods do not validate the key content.
func (*Storage) UpdatePeer ¶
Click to show internal directories.
Click to hide internal directories.