github.com/mandrigin/go-ethereum@v1.7.4-0.20180116162341-02aeb3d76652/dashboard/assets/types/content.jsx (about)

     1  // @flow
     2  
     3  // Copyright 2017 The go-ethereum Authors
     4  // This file is part of the go-ethereum library.
     5  //
     6  // The go-ethereum library is free software: you can redistribute it and/or modify
     7  // it under the terms of the GNU Lesser General Public License as published by
     8  // the Free Software Foundation, either version 3 of the License, or
     9  // (at your option) any later version.
    10  //
    11  // The go-ethereum library is distributed in the hope that it will be useful,
    12  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    14  // GNU Lesser General Public License for more details.
    15  //
    16  // You should have received a copy of the GNU Lesser General Public License
    17  // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
    18  
    19  export type Content = {
    20  	general: General,
    21  	home: Home,
    22  	chain: Chain,
    23  	txpool: TxPool,
    24  	network: Network,
    25  	system: System,
    26  	logs: Logs,
    27  };
    28  
    29  export type General = {
    30  	version: ?string,
    31  	commit: ?string,
    32  };
    33  
    34  export type Home = {
    35  	memory: ChartEntries,
    36  	traffic: ChartEntries,
    37  };
    38  
    39  export type ChartEntries = Array<ChartEntry>;
    40  
    41  export type ChartEntry = {
    42  	time: Date,
    43  	value: number,
    44  };
    45  
    46  export type Chain = {
    47  	/* TODO (kurkomisi) */
    48  };
    49  
    50  export type TxPool = {
    51  	/* TODO (kurkomisi) */
    52  };
    53  
    54  export type Network = {
    55  	/* TODO (kurkomisi) */
    56  };
    57  
    58  export type System = {
    59  	/* TODO (kurkomisi) */
    60  };
    61  
    62  export type Logs = {
    63  	log: Array<string>,
    64  };