remoteapi

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL    string
	HTTPClient *http.Client
	Session    string
	Context    context.Context
}

func (Client) AddStub

func (c Client) AddStub(stub *stuber.Stub) error

func (Client) AddStubs

func (c Client) AddStubs(stubs []*stuber.Stub) error

func (Client) BatchDelete

func (c Client) BatchDelete(ids []uuid.UUID) error

func (Client) FetchHistory

func (c Client) FetchHistory() ([]HistoryCall, error)

func (Client) UploadDescriptors

func (c Client) UploadDescriptors(files []*descriptorpb.FileDescriptorProto) error

func (Client) VerifyMethodCalled

func (c Client) VerifyMethodCalled(service, method string, expectedCount int) error

type HistoryCall

type HistoryCall struct {
	Service   string
	Method    string
	Request   map[string]any
	Requests  []map[string]any
	Response  map[string]any
	Responses []map[string]any
	Error     string
	Code      uint32
	StubID    uuid.UUID
	Timestamp time.Time
}

type VerifyBadRequestError

type VerifyBadRequestError struct {
	Message string
}

func (VerifyBadRequestError) Error

func (e VerifyBadRequestError) Error() string

Jump to

Keyboard shortcuts

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