mock

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o ...Option) postage.Service

New creates a new mock postage service.

func NewStamper

func NewStamper() postage.Stamper

NewStamper returns anew new mock stamper.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is an option passed to a mock postage Service.

func WithAcceptAll

func WithAcceptAll() Option

WithAcceptAll sets the mock to return a new BatchIssuer on every call to GetStampIssuer.

func WithIssuer

func WithIssuer(s *postage.StampIssuer) Option

Jump to

Keyboard shortcuts

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