Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BadUnaryRequest = &testvalidatev1.SendRequest{ Message: "%any", } GoodUnaryRequest = &testvalidatev1.SendRequest{ Message: "good@example.com", } )
Unary requests for unit testing
View Source
var ( BadStreamRequest = &testvalidatev1.SendStreamRequest{ Message: "%any", } GoodStreamRequest = &testvalidatev1.SendStreamRequest{ Message: "good@example.com", } )
Stream requests for unit testing
Functions ¶
This section is empty.
Types ¶
type TestValidateService ¶
type TestValidateService struct {
testvalidatev1.UnimplementedTestValidateServiceServer
}
func (*TestValidateService) Send ¶
func (v *TestValidateService) Send( _ context.Context, _ *testvalidatev1.SendRequest, ) (*testvalidatev1.SendResponse, error)
func (*TestValidateService) SendStream ¶
func (v *TestValidateService) SendStream( _ *testvalidatev1.SendStreamRequest, stream testvalidatev1.TestValidateService_SendStreamServer, ) error
Click to show internal directories.
Click to hide internal directories.