go-http-peering: forge.cadoles.com/wpetit/go-http-peering/memory Index | Files

package memory

import "forge.cadoles.com/wpetit/go-http-peering/memory"

Index

Package Files

store.go

type Store Uses

type Store struct {
    // contains filtered or unexported fields
}

func NewStore Uses

func NewStore() *Store

func (*Store) Accept Uses

func (s *Store) Accept(id peering.PeerID) error

func (*Store) Create Uses

func (s *Store) Create(id peering.PeerID, attrs peering.PeerAttributes) (*peering.Peer, error)

func (*Store) Delete Uses

func (s *Store) Delete(id peering.PeerID) error

func (*Store) Forget Uses

func (s *Store) Forget(id peering.PeerID) error

func (*Store) Get Uses

func (s *Store) Get(id peering.PeerID) (*peering.Peer, error)

func (*Store) List Uses

func (s *Store) List() ([]peering.PeerHeader, error)

func (*Store) Reject Uses

func (s *Store) Reject(id peering.PeerID) error

func (*Store) UpdateAttributes Uses

func (s *Store) UpdateAttributes(id peering.PeerID, attrs peering.PeerAttributes) error

func (*Store) UpdateLastContact Uses

func (s *Store) UpdateLastContact(id peering.PeerID, remoteAddress string, ts time.Time) error

func (*Store) UpdatePublicKey Uses

func (s *Store) UpdatePublicKey(id peering.PeerID, publicKey []byte) error

Package memory imports 3 packages (graph). Updated 2019-05-21. Refresh now. Tools for package owners.