github.com/linapex/ethereum-dpos-chinese@v0.0.0-20190316121959-b78b3a4a1ece/swarm/api/config.go (about)

     1  
     2  //<developer>
     3  //    <name>linapex 曹一峰</name>
     4  //    <email>linapex@163.com</email>
     5  //    <wx>superexc</wx>
     6  //    <qqgroup>128148617</qqgroup>
     7  //    <url>https://jsq.ink</url>
     8  //    <role>pku engineer</role>
     9  //    <date>2019-03-16 12:09:46</date>
    10  //</624342668750622720>
    11  
    12  //版权所有2016 Go Ethereum作者
    13  //
    14  //
    15  //
    16  //
    17  //
    18  //
    19  //
    20  //
    21  //
    22  //
    23  //
    24  //
    25  //
    26  //
    27  
    28  package api
    29  
    30  import (
    31  	"crypto/ecdsa"
    32  	"fmt"
    33  	"os"
    34  	"path/filepath"
    35  	"time"
    36  
    37  	"github.com/ethereum/go-ethereum/common"
    38  	"github.com/ethereum/go-ethereum/contracts/ens"
    39  	"github.com/ethereum/go-ethereum/crypto"
    40  	"github.com/ethereum/go-ethereum/node"
    41  	"github.com/ethereum/go-ethereum/p2p/discover"
    42  	"github.com/ethereum/go-ethereum/swarm/log"
    43  	"github.com/ethereum/go-ethereum/swarm/network"
    44  	"github.com/ethereum/go-ethereum/swarm/pss"
    45  	"github.com/ethereum/go-ethereum/swarm/services/swap"
    46  	"github.com/ethereum/go-ethereum/swarm/storage"
    47  )
    48  
    49  const (
    50  	DefaultHTTPListenAddr = "127.0.0.1"
    51  	DefaultHTTPPort       = "8500"
    52  )
    53  
    54  //
    55  //
    56  type Config struct {
    57  //
    58  	*storage.FileStoreParams
    59  	*storage.LocalStoreParams
    60  	*network.HiveParams
    61  	Swap *swap.LocalProfile
    62  	Pss  *pss.PssParams
    63   /*
    64   
    65   
    66   
    67   
    68   
    69   
    70   
    71   
    72   
    73   
    74   
    75   
    76   
    77   
    78   
    79   
    80   
    81   
    82   
    83  
    84  
    85  
    86  
    87  
    88   
    89    
    90    
    91    
    92    
    93    
    94    
    95    
    96    
    97    
    98    
    99    
   100    
   101    
   102    
   103    
   104    
   105    
   106   
   107  
   108   
   109  
   110  
   111  
   112  
   113  
   114  
   115   
   116   
   117   
   118   
   119    
   120    
   121   
   122  
   123   
   124   
   125   
   126  
   127   
   128   
   129   
   130  
   131   
   132    
   133   
   134  
   135   
   136   
   137   
   138  
   139   
   140  
   141  
   142  
   143   
   144    
   145    
   146   
   147   
   148  
   149