7 type PeersList struct {
11 func (s *Shell) BootstrapAdd(peers []string) ([]string, error) {
12 var addOutput PeersList
13 err := s.Request("bootstrap/add", peers...).Exec(context.Background(), &addOutput)
14 return addOutput.Peers, err
17 func (s *Shell) BootstrapAddDefault() ([]string, error) {
18 var addOutput PeersList
19 err := s.Request("bootstrap/add/default").Exec(context.Background(), &addOutput)
20 return addOutput.Peers, err
23 func (s *Shell) BootstrapRmAll() ([]string, error) {
24 var rmAllOutput PeersList
25 err := s.Request("bootstrap/rm/all").Exec(context.Background(), &rmAllOutput)
26 return rmAllOutput.Peers, err