Documentation
¶
Index ¶
- func IsNotFound(err error) bool
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteNodeIfStale(ctx context.Context, ip string) error
- func (s *Store) LastRefresh(ctx context.Context) time.Time
- func (s *Store) MarkFailure(ctx context.Context, ip, reason string) error
- func (s *Store) Metadata(ctx context.Context, key string) (string, error)
- func (s *Store) Node(ctx context.Context, ip string) (model.Node, error)
- func (s *Store) Nodes(ctx context.Context, mode string, limit, offset int) ([]model.Node, error)
- func (s *Store) ReplaceNodes(ctx context.Context, nodes []model.Node, refreshedAt time.Time, ...) error
- func (s *Store) SaveMeasurement(ctx context.Context, ip string, bitsPerSecond int64) error
- func (s *Store) SaveMeasurementFailure(ctx context.Context, ip string) error
- func (s *Store) SetMetadata(ctx context.Context, key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteNodeIfStale ¶
func (*Store) MarkFailure ¶
func (*Store) ReplaceNodes ¶
func (*Store) SaveMeasurement ¶
func (*Store) SaveMeasurementFailure ¶
Click to show internal directories.
Click to hide internal directories.