e2e

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const Limit1MiB = 1024 * 1024

Variables

This section is empty.

Functions

func TestE2E

func TestE2E(t *testing.T, ctx context.Context, store storage.AllStorage)

Types

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

Doer executes an HTTP request.

type HandlerClient

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

HandlerClient behaves like an HTTP client but merely routes to an http.Handler.

func NewHandlerClient

func NewHandlerClient(handler http.Handler) *HandlerClient

func (*HandlerClient) Do

func (c *HandlerClient) Do(r *http.Request) (*http.Response, error)

Do routes HTTP requests to an http.Handler using an httptest.NewRecorder.

type IDer

type IDer interface {
	ID() string
}

type NanoMDMAPI

type NanoMDMAPI interface {
	// RawCommandEnqueue enqueues cmd to ids. An APNs push is omitted if nopush is true.
	RawCommandEnqueue(ctx context.Context, ids []string, cmd *mdm.Command, nopush bool) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳