cmd

package
v0.0.0-...-a47669d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiTest

func NewApiTest() (command *cobra.Command)

func NewLog2Tsv

func NewLog2Tsv() (command *cobra.Command)

func NewPrint

func NewPrint(name string) (command *cobra.Command)

func NewServe

func NewServe(project, version string) (command *cobra.Command)

func NewVersion

func NewVersion(buildInfo map[string]string) (command *cobra.Command)

func NewWsTest

func NewWsTest() (command *cobra.Command)

Types

type VersionInfo

type VersionInfo map[string]string

func (VersionInfo) JSON

func (items VersionInfo) JSON() []byte

func (VersionInfo) String

func (items VersionInfo) String() string

type WsClient

type WsClient struct {
	// contains filtered or unexported fields
}

func NewWsClient

func NewWsClient(conn *websocket.Conn, pingDur time.Duration, jsonMsg bool) (client WsClient)

func (WsClient) Close

func (client WsClient) Close()

func (WsClient) HandleMessage

func (client WsClient) HandleMessage()

Jump to

Keyboard shortcuts

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