Documentation ¶
Overview ¶
Copyright 2022 Nethermind
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Nethermind ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func PrintFileContent(w io.Writer, path string) error
- func WriteListClientsTable(w io.Writer, data *ListClientsTable)
- func WriteListNetworksTable(w io.Writer, data []string)
- func WriteRandomizedClientsTable(w io.Writer, data RandomizedClientsTable)
- func WriteSimpleTable(w io.Writer, data *SimpleTableData)
- type ListClientsTable
- type RandomizedClientsTable
- type SimpleTableData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintFileContent ¶ added in v0.3.0
PrintFileContent This functions outputs the contents of a file to a writer
params :- a. w io.Writer Writer to be use for writing the file content b. path string Path to the file to write its content
returns :- a. error Error if any
func WriteListClientsTable ¶
func WriteListClientsTable(w io.Writer, data *ListClientsTable)
WriteListClientsTable : Prints the supported clients table
params :- a. w io.Writer Where the table is to be printed b. data ListClientsTable Table data
returns :- None
func WriteListNetworksTable ¶
WriteListNetworksTable : Prints the supported networks table
params :- a. w io.Writer Where the table is to be printed b. data []string Table data
returns :- None
func WriteRandomizedClientsTable ¶
func WriteRandomizedClientsTable(w io.Writer, data RandomizedClientsTable)
WriteRandomizedClientsTable : Prints the randomized clients table
params :- a. w io.Writer Where the table is to be printed b. data [][]string Table data
returns :- None
func WriteSimpleTable ¶
func WriteSimpleTable(w io.Writer, data *SimpleTableData)
WriteSimpleTable : Prints a simple table from given data
params :- a. w io.Writer Where the table is to be printed b. data SimpleTableData Table data
returns :- None
Types ¶
type ListClientsTable ¶
type RandomizedClientsTable ¶
type SimpleTableData ¶
type SimpleTableData struct { Headers []*simpletable.Cell Columns [][]*simpletable.Cell DefaultAlign int Enumerate bool }