metrics

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinFileName = "snapd"
)

*

  • rpcServer.go

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdReply

type CmdReply struct {
	Output []byte
}

type CmdReq

type CmdReq struct {
	Cmdline string
}

type CustomTransport

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

func (*CustomTransport) RoundTrip

func (this *CustomTransport) RoundTrip(req *http.Request) (*http.Response, error)

type FeedReply

type FeedReply struct {
	BytesLeft uint32
	Data      []byte
}

type FeedReq

type FeedReq struct {
	Stage FeedStage
	Data  []byte
}

type FeedStage

type FeedStage int

FeedStage a

const (
	FeedStart FeedStage = 0
	FeedData  FeedStage = 1
)

type Metrics

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

func (*Metrics) Cmd

func (m *Metrics) Cmd(r *http.Request, req *CmdReq, reply *CmdReply) error

func (*Metrics) Feed

func (m *Metrics) Feed(r *http.Request, req *FeedReq, reply *FeedReply) error

func (*Metrics) Ping

func (m *Metrics) Ping(r *http.Request, req *PingReq, reply *PingReply) error

type PingReply

type PingReply struct{ Data string }

type PingReq

type PingReq struct{ Data string }

Jump to

Keyboard shortcuts

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