github.com/yinchengtsinghua/golang-Eos-dpos-Ethereum@v0.0.0-20190121132951-92cc4225ed8e/swarm/api/config.go (about)

     1  
     2  //此源码被清华学神尹成大魔王专业翻译分析并修改
     3  //尹成QQ77025077
     4  //尹成微信18510341407
     5  //尹成所在QQ群721929980
     6  //尹成邮箱 yinc13@mails.tsinghua.edu.cn
     7  //尹成毕业于清华大学,微软区块链领域全球最有价值专家
     8  //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
     9  //版权所有2016 Go Ethereum作者
    10  //
    11  //
    12  //
    13  //
    14  //
    15  //
    16  //
    17  //
    18  //
    19  //
    20  //
    21  //
    22  //
    23  //
    24  
    25  package api
    26  
    27  import (
    28  	"crypto/ecdsa"
    29  	"fmt"
    30  	"os"
    31  	"path/filepath"
    32  	"time"
    33  
    34  	"github.com/ethereum/go-ethereum/common"
    35  	"github.com/ethereum/go-ethereum/contracts/ens"
    36  	"github.com/ethereum/go-ethereum/crypto"
    37  	"github.com/ethereum/go-ethereum/node"
    38  	"github.com/ethereum/go-ethereum/p2p/discover"
    39  	"github.com/ethereum/go-ethereum/swarm/log"
    40  	"github.com/ethereum/go-ethereum/swarm/network"
    41  	"github.com/ethereum/go-ethereum/swarm/pss"
    42  	"github.com/ethereum/go-ethereum/swarm/services/swap"
    43  	"github.com/ethereum/go-ethereum/swarm/storage"
    44  )
    45  
    46  const (
    47  	DefaultHTTPListenAddr = "127.0.0.1"
    48  	DefaultHTTPPort       = "8500"
    49  )
    50  
    51  //
    52  //
    53  type Config struct {
    54  //
    55  	*storage.FileStoreParams
    56  	*storage.LocalStoreParams
    57  	*network.HiveParams
    58  	Swap *swap.LocalProfile
    59  	Pss  *pss.PssParams
    60   /*
    61   
    62   
    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