fakeshipping_v1

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShippingServer

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

func NewShippingServer

func NewShippingServer(
	grpcServer *grpc.Server,
) *ShippingServer

func (*ShippingServer) ClearAllResponses

func (s *ShippingServer) ClearAllResponses(
	tid string,
)

func (*ShippingServer) SetCreateResponse

func (s *ShippingServer) SetCreateResponse(
	tid string,
	res *v1.CreateShippingResponse,
	err error,
)

func (*ShippingServer) SetCreateResponseCreator

func (s *ShippingServer) SetCreateResponseCreator(
	tid string,
	creator func(ctx context.Context, req *v1.CreateShippingRequest) (*v1.CreateShippingResponse, error))

func (*ShippingServer) SetStatusResponse

func (s *ShippingServer) SetStatusResponse(
	tid string,
	res *v1.ShippingStatusResponse,
	err error,
)

func (*ShippingServer) SetStatusResponseCreator

func (s *ShippingServer) SetStatusResponseCreator(
	tid string,
	creator func(ctx context.Context, req *v1.ShippingStatusRequest) (*v1.ShippingStatusResponse, error))

Jump to

Keyboard shortcuts

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