Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- func ConvertToStringWithThousandSeparator(input uint64) string
- func FormatDuration(d time.Duration) string
- func NewUserLog(log logging.Logger, userwriter io.Writer)
- func PrintEndpointTables(clusterInfo *rpcpb.ClusterInfo) error
- func PrintTableEndpoints(clusterInfo *rpcpb.ClusterInfo, codespaceURLs bool) error
- func PrintWait(cancel chan struct{})
- func SpinComplete(s *ysmrr.Spinner)
- func SpinFailWithError(s *ysmrr.Spinner, txt string, err error)
- type UserLog
- type UserSpinner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStringWithThousandSeparator ¶ added in v1.2.0
func FormatDuration ¶ added in v0.2.0
FormatDuration returns a user friendly string for a duration
func PrintEndpointTables ¶ added in v1.5.1
func PrintEndpointTables(clusterInfo *rpcpb.ClusterInfo) error
PrintEndpointTables prints the endpoints coming from the healthy call
func PrintTableEndpoints ¶ added in v0.2.0
func PrintTableEndpoints(clusterInfo *rpcpb.ClusterInfo, codespaceURLs bool) error
func PrintWait ¶
func PrintWait(cancel chan struct{})
PrintWait does some dot printing to entertain the user
func SpinComplete ¶ added in v1.4.0
Types ¶
type UserLog ¶
var Logger *UserLog
func (*UserLog) GreenCheckmarkToUser ¶ added in v1.4.0
GreenCheckmarkToUser prints a green checkmark to the user before the message
func (*UserLog) PrintLineSeparator ¶ added in v1.4.2
func (ul *UserLog) PrintLineSeparator()
func (*UserLog) PrintToUser ¶
PrintToUser prints msg directly on the screen, but also to log file
func (*UserLog) RedXToUser ¶ added in v1.4.0
type UserSpinner ¶ added in v1.4.0
type UserSpinner struct {
// contains filtered or unexported fields
}
func NewUserSpinner ¶ added in v1.4.0
func NewUserSpinner() *UserSpinner
func (*UserSpinner) SpinToUser ¶ added in v1.4.0
func (us *UserSpinner) SpinToUser(msg string, args ...interface{}) *ysmrr.Spinner
func (*UserSpinner) Stop ¶ added in v1.4.0
func (us *UserSpinner) Stop()
Click to show internal directories.
Click to hide internal directories.