test

package
v0.0.0-...-7264f90 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConsumedCorrelationID

func GetConsumedCorrelationID(ctx context.Context) string

func NewTestNilServiceBinding

func NewTestNilServiceBinding(svc Service) *testNilServerBinding

func NewTestServiceBinding

func NewTestServiceBinding(svc Service) *testServerBinding

func SetCorrelationID

func SetCorrelationID(ctx context.Context, v string) context.Context

Types

type Service

type Service interface {
	Test(ctx context.Context, a string, b int64) (context.Context, string, error)
	TestB(ctx context.Context, a string, b int64) (context.Context, string, error)
	TestNil(ctx context.Context, i []byte) (context.Context, string, error)
}

func NewClient

func NewClient[O interface{}](cc *grpc.ClientConn) Service

func NewService

func NewService() Service

type TestNilRequest

type TestNilRequest struct {
	A []byte
}

type TestRequest

type TestRequest struct {
	A string
	B int64
}

type TestResponse

type TestResponse struct {
	Ctx context.Context
	V   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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