Documentation
¶
Index ¶
- func CreatePayment(t *testing.T, codeData codedata.Provider, quarks uint64, mtdt proto.Message) *commonpb.IntentId
- func RunGRPCServer(t *testing.T, opts ...ServerOption) grpc.ClientConnInterface
- type ServerOption
- func WithService(f func(*grpc.Server)) ServerOption
- func WithStreamClientInterceptor(i grpc.StreamClientInterceptor) ServerOption
- func WithStreamServerInterceptor(i grpc.StreamServerInterceptor) ServerOption
- func WithUnaryClientInterceptor(i grpc.UnaryClientInterceptor) ServerOption
- func WithUnaryServerInterceptor(i grpc.UnaryServerInterceptor) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePayment ¶
func RunGRPCServer ¶
func RunGRPCServer(t *testing.T, opts ...ServerOption) grpc.ClientConnInterface
Types ¶
type ServerOption ¶
type ServerOption func(o *serverOpts)
ServerOption configures the settings when creating a test server.
func WithService ¶
func WithService(f func(*grpc.Server)) ServerOption
WithService registers a function to be called in order to bind a service.
func WithStreamClientInterceptor ¶
func WithStreamClientInterceptor(i grpc.StreamClientInterceptor) ServerOption
WithStreamClientInterceptor adds a stream client interceptor to the test client.
func WithStreamServerInterceptor ¶
func WithStreamServerInterceptor(i grpc.StreamServerInterceptor) ServerOption
WithStreamServerInterceptor adds a stream server interceptor to the test client.
func WithUnaryClientInterceptor ¶
func WithUnaryClientInterceptor(i grpc.UnaryClientInterceptor) ServerOption
WithUnaryClientInterceptor adds a unary client interceptor to the test client.
func WithUnaryServerInterceptor ¶
func WithUnaryServerInterceptor(i grpc.UnaryServerInterceptor) ServerOption
WithUnaryServerInterceptor adds a unary server interceptor to the test client.
Click to show internal directories.
Click to hide internal directories.