ui

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintFileContent added in v0.3.0

func PrintFileContent(w io.Writer, path string) error

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

func WriteListNetworksTable(w io.Writer, data []string)

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 ListClientsTable struct {
	ClientTypes []string
	Clients     [][]string
}

type RandomizedClientsTable

type RandomizedClientsTable struct {
	ClientTypes []string
	Clients     []string
}

type SimpleTableData

type SimpleTableData struct {
	Headers      []*simpletable.Cell
	Columns      [][]*simpletable.Cell
	DefaultAlign int
	Enumerate    bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL