debug

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OutputFormat = "text"

Functions

func AddOutputJsonYamlTextFlag

func AddOutputJsonYamlTextFlag(cmd *kingpin.CmdClause)

func DefineDebugCommands

func DefineDebugCommands(kpApp *kingpin.Application)

Types

type Client

type Client struct {
	SocketPath string
}

func DefaultClient

func DefaultClient() *Client

func NewClient

func NewClient() *Client

func (*Client) Get

func (c *Client) Get(url string) ([]byte, error)

func (*Client) WithSocketPath

func (c *Client) WithSocketPath(path string)

type QueueRequest

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

func Queue

func Queue(client *Client) *QueueRequest

func (*QueueRequest) Dump

func (qr *QueueRequest) Dump(format string) ([]byte, error)

type Server

type Server struct {
	SocketPath string
	Prefix     string

	Router chi.Router
}

func NewServer

func NewServer() *Server

func (*Server) Init

func (s *Server) Init() (err error)

func (*Server) WithPrefix

func (s *Server) WithPrefix(prefix string)

func (*Server) WithSocketPath

func (s *Server) WithSocketPath(path string)

Jump to

Keyboard shortcuts

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