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 FormatDuration ¶
FormatDuration returns a user friendly string for a duration
func PrintEndpointTables ¶
func PrintEndpointTables(clusterInfo *rpcpb.ClusterInfo) error
PrintEndpointTables prints the endpoints coming from the healthy call
func PrintTableEndpoints ¶
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 ¶
Types ¶
type UserLog ¶
var Logger *UserLog
func (*UserLog) GreenCheckmarkToUser ¶
GreenCheckmarkToUser prints a green checkmark to the user before the message
func (*UserLog) PrintLineSeparator ¶
func (ul *UserLog) PrintLineSeparator()
func (*UserLog) PrintToUser ¶
PrintToUser prints msg directly on the screen, but also to log file
func (*UserLog) RedXToUser ¶
type UserSpinner ¶
type UserSpinner struct {
// contains filtered or unexported fields
}
func NewUserSpinner ¶
func NewUserSpinner() *UserSpinner
func (*UserSpinner) SpinToUser ¶
func (us *UserSpinner) SpinToUser(msg string, args ...interface{}) *ysmrr.Spinner
func (*UserSpinner) Stop ¶
func (us *UserSpinner) Stop()
Click to show internal directories.
Click to hide internal directories.