topics

package
v0.16.4-7-gd0f204dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

README

Topics flags

This module provides 2 helpers to parse collections of topics.

  1. List of topics, such as:
statusd -topic.register=whisper -topic.register=les
  1. List of topics with limits per topic. Main use case is to define per-protocol peer limits:
statusd -topic.search=whisper=7,9 -topic.search=mailserver=1,1 -topic.search=les=1,2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TopicFlag

type TopicFlag []discv5.Topic

TopicFlag used to parse discv5 topics.

func (*TopicFlag) Set

func (f *TopicFlag) Set(value string) error

Set parses single topic.

func (*TopicFlag) String

func (f *TopicFlag) String() string

type TopicLimitsFlag

type TopicLimitsFlag map[discv5.Topic]params.Limits

TopicLimitsFlag used to parse limits for discv5 topics.

func (*TopicLimitsFlag) Set

func (f *TopicLimitsFlag) Set(value string) error

Set parses single limit for a topic.

func (*TopicLimitsFlag) String

func (f *TopicLimitsFlag) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL