mocks

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	mock.Mock
}

RestClient is an autogenerated mock type for the RestClient type

func (*RestClient) Query

func (_m *RestClient) Query(ctx context.Context, endpoint string, httpMethod string, postData []byte, signature []byte) (*http.Response, error)

Query provides a mock function with given fields: ctx, endpoint, httpMethod, postData, signature

func (*RestClient) Submit

func (_m *RestClient) Submit(ctx context.Context, endpoint string, msg protoreflect.ProtoMessage, serverTimeout time.Duration) (*http.Response, error)

Submit provides a mock function with given fields: ctx, endpoint, msg, serverTimeout

type SignatureVerifier

type SignatureVerifier struct {
	mock.Mock
}

SignatureVerifier is an autogenerated mock type for the SignatureVerifier type

func (*SignatureVerifier) Verify

func (_m *SignatureVerifier) Verify(entityID string, payload []byte, signature []byte) error

Verify provides a mock function with given fields: entityID, payload, signature

type Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func (*Signer) Identity

func (_m *Signer) Identity() string

Identity provides a mock function with given fields:

func (*Signer) Sign

func (_m *Signer) Sign(msgBytes []byte) ([]byte, error)

Sign provides a mock function with given fields: msgBytes

Jump to

Keyboard shortcuts

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