Documentation ¶
Index ¶
- type DocumentServiceClient
- func (_m *DocumentServiceClient) EXPECT() *DocumentServiceClient_Expecter
- func (_m *DocumentServiceClient) GeneratePreview(ctx context.Context, in *v1.GeneratePreviewRequest, opts ...grpc.CallOption) (v1.DocumentService_GeneratePreviewClient, error)
- func (mock *DocumentServiceClient) SetupGeneratePreview(mockStream *DocumentService_GeneratePreviewClient)
- func (mock *DocumentServiceClient) SetupGeneratePreviewThrowsError(err error)
- type DocumentServiceClient_Expecter
- type DocumentServiceClient_GeneratePreview_Call
- func (_c *DocumentServiceClient_GeneratePreview_Call) Return(_a0 v1.DocumentService_GeneratePreviewClient, _a1 error) *DocumentServiceClient_GeneratePreview_Call
- func (_c *DocumentServiceClient_GeneratePreview_Call) Run(...) *DocumentServiceClient_GeneratePreview_Call
- func (_c *DocumentServiceClient_GeneratePreview_Call) RunAndReturn(...) *DocumentServiceClient_GeneratePreview_Call
- type DocumentServiceGateway
- func (_m *DocumentServiceGateway) CreateDocumentServiceClient() (v1.DocumentServiceClient, error)
- func (_m *DocumentServiceGateway) EXPECT() *DocumentServiceGateway_Expecter
- func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnClient(mockClient *DocumentServiceClient)
- func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnDialError()
- type DocumentServiceGateway_CreateDocumentServiceClient_Call
- func (_c *DocumentServiceGateway_CreateDocumentServiceClient_Call) Return(_a0 v1.DocumentServiceClient, _a1 error) *DocumentServiceGateway_CreateDocumentServiceClient_Call
- func (_c *DocumentServiceGateway_CreateDocumentServiceClient_Call) Run(run func()) *DocumentServiceGateway_CreateDocumentServiceClient_Call
- func (_c *DocumentServiceGateway_CreateDocumentServiceClient_Call) RunAndReturn(run func() (v1.DocumentServiceClient, error)) *DocumentServiceGateway_CreateDocumentServiceClient_Call
- type DocumentServiceGateway_Expecter
- type DocumentService_GeneratePreviewClient
- func (_m *DocumentService_GeneratePreviewClient) CloseSend() error
- func (_m *DocumentService_GeneratePreviewClient) Context() context.Context
- func (_m *DocumentService_GeneratePreviewClient) EXPECT() *DocumentService_GeneratePreviewClient_Expecter
- func (_m *DocumentService_GeneratePreviewClient) Header() (metadata.MD, error)
- func (_m *DocumentService_GeneratePreviewClient) Recv() (*v1.GeneratePreviewResponse, error)
- func (_m *DocumentService_GeneratePreviewClient) RecvMsg(m interface{}) error
- func (_m *DocumentService_GeneratePreviewClient) SendMsg(m interface{}) error
- func (mock *DocumentService_GeneratePreviewClient) SetupEndOfResponse()
- func (mock *DocumentService_GeneratePreviewClient) SetupStreamClose()
- func (mock *DocumentService_GeneratePreviewClient) SetupStreamResponse(response *v1.GeneratePreviewResponse)
- func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidChunk()
- func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidMetadata()
- func (_m *DocumentService_GeneratePreviewClient) Trailer() metadata.MD
- type DocumentService_GeneratePreviewClient_CloseSend_Call
- func (_c *DocumentService_GeneratePreviewClient_CloseSend_Call) Return(_a0 error) *DocumentService_GeneratePreviewClient_CloseSend_Call
- func (_c *DocumentService_GeneratePreviewClient_CloseSend_Call) Run(run func()) *DocumentService_GeneratePreviewClient_CloseSend_Call
- func (_c *DocumentService_GeneratePreviewClient_CloseSend_Call) RunAndReturn(run func() error) *DocumentService_GeneratePreviewClient_CloseSend_Call
- type DocumentService_GeneratePreviewClient_Context_Call
- func (_c *DocumentService_GeneratePreviewClient_Context_Call) Return(_a0 context.Context) *DocumentService_GeneratePreviewClient_Context_Call
- func (_c *DocumentService_GeneratePreviewClient_Context_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Context_Call
- func (_c *DocumentService_GeneratePreviewClient_Context_Call) RunAndReturn(run func() context.Context) *DocumentService_GeneratePreviewClient_Context_Call
- type DocumentService_GeneratePreviewClient_Expecter
- func (_e *DocumentService_GeneratePreviewClient_Expecter) CloseSend() *DocumentService_GeneratePreviewClient_CloseSend_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) Context() *DocumentService_GeneratePreviewClient_Context_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) Header() *DocumentService_GeneratePreviewClient_Header_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) Recv() *DocumentService_GeneratePreviewClient_Recv_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) RecvMsg(m interface{}) *DocumentService_GeneratePreviewClient_RecvMsg_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) SendMsg(m interface{}) *DocumentService_GeneratePreviewClient_SendMsg_Call
- func (_e *DocumentService_GeneratePreviewClient_Expecter) Trailer() *DocumentService_GeneratePreviewClient_Trailer_Call
- type DocumentService_GeneratePreviewClient_Header_Call
- func (_c *DocumentService_GeneratePreviewClient_Header_Call) Return(_a0 metadata.MD, _a1 error) *DocumentService_GeneratePreviewClient_Header_Call
- func (_c *DocumentService_GeneratePreviewClient_Header_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Header_Call
- func (_c *DocumentService_GeneratePreviewClient_Header_Call) RunAndReturn(run func() (metadata.MD, error)) *DocumentService_GeneratePreviewClient_Header_Call
- type DocumentService_GeneratePreviewClient_RecvMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_RecvMsg_Call) Return(_a0 error) *DocumentService_GeneratePreviewClient_RecvMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_RecvMsg_Call) Run(run func(m interface{})) *DocumentService_GeneratePreviewClient_RecvMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *DocumentService_GeneratePreviewClient_RecvMsg_Call
- type DocumentService_GeneratePreviewClient_Recv_Call
- func (_c *DocumentService_GeneratePreviewClient_Recv_Call) Return(_a0 *v1.GeneratePreviewResponse, _a1 error) *DocumentService_GeneratePreviewClient_Recv_Call
- func (_c *DocumentService_GeneratePreviewClient_Recv_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Recv_Call
- func (_c *DocumentService_GeneratePreviewClient_Recv_Call) RunAndReturn(run func() (*v1.GeneratePreviewResponse, error)) *DocumentService_GeneratePreviewClient_Recv_Call
- type DocumentService_GeneratePreviewClient_SendMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_SendMsg_Call) Return(_a0 error) *DocumentService_GeneratePreviewClient_SendMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_SendMsg_Call) Run(run func(m interface{})) *DocumentService_GeneratePreviewClient_SendMsg_Call
- func (_c *DocumentService_GeneratePreviewClient_SendMsg_Call) RunAndReturn(run func(interface{}) error) *DocumentService_GeneratePreviewClient_SendMsg_Call
- type DocumentService_GeneratePreviewClient_Trailer_Call
- func (_c *DocumentService_GeneratePreviewClient_Trailer_Call) Return(_a0 metadata.MD) *DocumentService_GeneratePreviewClient_Trailer_Call
- func (_c *DocumentService_GeneratePreviewClient_Trailer_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Trailer_Call
- func (_c *DocumentService_GeneratePreviewClient_Trailer_Call) RunAndReturn(run func() metadata.MD) *DocumentService_GeneratePreviewClient_Trailer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentServiceClient ¶
DocumentServiceClient is an autogenerated mock type for the DocumentServiceClient type
func NewDocumentServiceClient ¶
func NewDocumentServiceClient(t interface { mock.TestingT Cleanup(func()) }) *DocumentServiceClient
NewDocumentServiceClient creates a new instance of DocumentServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DocumentServiceClient) EXPECT ¶
func (_m *DocumentServiceClient) EXPECT() *DocumentServiceClient_Expecter
func (*DocumentServiceClient) GeneratePreview ¶
func (_m *DocumentServiceClient) GeneratePreview(ctx context.Context, in *v1.GeneratePreviewRequest, opts ...grpc.CallOption) (v1.DocumentService_GeneratePreviewClient, error)
GeneratePreview provides a mock function with given fields: ctx, in, opts
func (*DocumentServiceClient) SetupGeneratePreview ¶
func (mock *DocumentServiceClient) SetupGeneratePreview(mockStream *DocumentService_GeneratePreviewClient)
func (*DocumentServiceClient) SetupGeneratePreviewThrowsError ¶
func (mock *DocumentServiceClient) SetupGeneratePreviewThrowsError(err error)
type DocumentServiceClient_Expecter ¶
type DocumentServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*DocumentServiceClient_Expecter) GeneratePreview ¶
func (_e *DocumentServiceClient_Expecter) GeneratePreview(ctx interface{}, in interface{}, opts ...interface{}) *DocumentServiceClient_GeneratePreview_Call
GeneratePreview is a helper method to define mock.On call
- ctx context.Context
- in *v1.GeneratePreviewRequest
- opts ...grpc.CallOption
type DocumentServiceClient_GeneratePreview_Call ¶
DocumentServiceClient_GeneratePreview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GeneratePreview'
func (*DocumentServiceClient_GeneratePreview_Call) Return ¶
func (_c *DocumentServiceClient_GeneratePreview_Call) Return(_a0 v1.DocumentService_GeneratePreviewClient, _a1 error) *DocumentServiceClient_GeneratePreview_Call
func (*DocumentServiceClient_GeneratePreview_Call) Run ¶
func (_c *DocumentServiceClient_GeneratePreview_Call) Run(run func(ctx context.Context, in *v1.GeneratePreviewRequest, opts ...grpc.CallOption)) *DocumentServiceClient_GeneratePreview_Call
func (*DocumentServiceClient_GeneratePreview_Call) RunAndReturn ¶
func (_c *DocumentServiceClient_GeneratePreview_Call) RunAndReturn(run func(context.Context, *v1.GeneratePreviewRequest, ...grpc.CallOption) (v1.DocumentService_GeneratePreviewClient, error)) *DocumentServiceClient_GeneratePreview_Call
type DocumentServiceGateway ¶
DocumentServiceGateway is an autogenerated mock type for the DocumentServiceGateway type
func NewDocumentServiceGateway ¶
func NewDocumentServiceGateway(t interface { mock.TestingT Cleanup(func()) }) *DocumentServiceGateway
NewDocumentServiceGateway creates a new instance of DocumentServiceGateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DocumentServiceGateway) CreateDocumentServiceClient ¶
func (_m *DocumentServiceGateway) CreateDocumentServiceClient() (v1.DocumentServiceClient, error)
CreateDocumentServiceClient provides a mock function with given fields:
func (*DocumentServiceGateway) EXPECT ¶
func (_m *DocumentServiceGateway) EXPECT() *DocumentServiceGateway_Expecter
func (*DocumentServiceGateway) SetupDocumentServiceGatewayToReturnClient ¶
func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnClient(mockClient *DocumentServiceClient)
func (*DocumentServiceGateway) SetupDocumentServiceGatewayToReturnDialError ¶
func (mock *DocumentServiceGateway) SetupDocumentServiceGatewayToReturnDialError()
type DocumentServiceGateway_CreateDocumentServiceClient_Call ¶
DocumentServiceGateway_CreateDocumentServiceClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDocumentServiceClient'
func (*DocumentServiceGateway_CreateDocumentServiceClient_Call) Run ¶
func (_c *DocumentServiceGateway_CreateDocumentServiceClient_Call) Run(run func()) *DocumentServiceGateway_CreateDocumentServiceClient_Call
func (*DocumentServiceGateway_CreateDocumentServiceClient_Call) RunAndReturn ¶
func (_c *DocumentServiceGateway_CreateDocumentServiceClient_Call) RunAndReturn(run func() (v1.DocumentServiceClient, error)) *DocumentServiceGateway_CreateDocumentServiceClient_Call
type DocumentServiceGateway_Expecter ¶
type DocumentServiceGateway_Expecter struct {
// contains filtered or unexported fields
}
func (*DocumentServiceGateway_Expecter) CreateDocumentServiceClient ¶
func (_e *DocumentServiceGateway_Expecter) CreateDocumentServiceClient() *DocumentServiceGateway_CreateDocumentServiceClient_Call
CreateDocumentServiceClient is a helper method to define mock.On call
type DocumentService_GeneratePreviewClient ¶
DocumentService_GeneratePreviewClient is an autogenerated mock type for the DocumentService_GeneratePreviewClient type
func NewDocumentService_GeneratePreviewClient ¶
func NewDocumentService_GeneratePreviewClient(t interface { mock.TestingT Cleanup(func()) }) *DocumentService_GeneratePreviewClient
NewDocumentService_GeneratePreviewClient creates a new instance of DocumentService_GeneratePreviewClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DocumentService_GeneratePreviewClient) CloseSend ¶
func (_m *DocumentService_GeneratePreviewClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*DocumentService_GeneratePreviewClient) Context ¶
func (_m *DocumentService_GeneratePreviewClient) Context() context.Context
Context provides a mock function with given fields:
func (*DocumentService_GeneratePreviewClient) EXPECT ¶
func (_m *DocumentService_GeneratePreviewClient) EXPECT() *DocumentService_GeneratePreviewClient_Expecter
func (*DocumentService_GeneratePreviewClient) Header ¶
func (_m *DocumentService_GeneratePreviewClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*DocumentService_GeneratePreviewClient) Recv ¶
func (_m *DocumentService_GeneratePreviewClient) Recv() (*v1.GeneratePreviewResponse, error)
Recv provides a mock function with given fields:
func (*DocumentService_GeneratePreviewClient) RecvMsg ¶
func (_m *DocumentService_GeneratePreviewClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*DocumentService_GeneratePreviewClient) SendMsg ¶
func (_m *DocumentService_GeneratePreviewClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*DocumentService_GeneratePreviewClient) SetupEndOfResponse ¶
func (mock *DocumentService_GeneratePreviewClient) SetupEndOfResponse()
func (*DocumentService_GeneratePreviewClient) SetupStreamClose ¶
func (mock *DocumentService_GeneratePreviewClient) SetupStreamClose()
func (*DocumentService_GeneratePreviewClient) SetupStreamResponse ¶
func (mock *DocumentService_GeneratePreviewClient) SetupStreamResponse(response *v1.GeneratePreviewResponse)
func (*DocumentService_GeneratePreviewClient) SetupStreamValidChunk ¶
func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidChunk()
func (*DocumentService_GeneratePreviewClient) SetupStreamValidMetadata ¶
func (mock *DocumentService_GeneratePreviewClient) SetupStreamValidMetadata()
func (*DocumentService_GeneratePreviewClient) Trailer ¶
func (_m *DocumentService_GeneratePreviewClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type DocumentService_GeneratePreviewClient_CloseSend_Call ¶
DocumentService_GeneratePreviewClient_CloseSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseSend'
func (*DocumentService_GeneratePreviewClient_CloseSend_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_CloseSend_Call) Run(run func()) *DocumentService_GeneratePreviewClient_CloseSend_Call
func (*DocumentService_GeneratePreviewClient_CloseSend_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_CloseSend_Call) RunAndReturn(run func() error) *DocumentService_GeneratePreviewClient_CloseSend_Call
type DocumentService_GeneratePreviewClient_Context_Call ¶
DocumentService_GeneratePreviewClient_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
func (*DocumentService_GeneratePreviewClient_Context_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_Context_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Context_Call
func (*DocumentService_GeneratePreviewClient_Context_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_Context_Call) RunAndReturn(run func() context.Context) *DocumentService_GeneratePreviewClient_Context_Call
type DocumentService_GeneratePreviewClient_Expecter ¶
type DocumentService_GeneratePreviewClient_Expecter struct {
// contains filtered or unexported fields
}
func (*DocumentService_GeneratePreviewClient_Expecter) CloseSend ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) CloseSend() *DocumentService_GeneratePreviewClient_CloseSend_Call
CloseSend is a helper method to define mock.On call
func (*DocumentService_GeneratePreviewClient_Expecter) Context ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) Context() *DocumentService_GeneratePreviewClient_Context_Call
Context is a helper method to define mock.On call
func (*DocumentService_GeneratePreviewClient_Expecter) Header ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) Header() *DocumentService_GeneratePreviewClient_Header_Call
Header is a helper method to define mock.On call
func (*DocumentService_GeneratePreviewClient_Expecter) Recv ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) Recv() *DocumentService_GeneratePreviewClient_Recv_Call
Recv is a helper method to define mock.On call
func (*DocumentService_GeneratePreviewClient_Expecter) RecvMsg ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) RecvMsg(m interface{}) *DocumentService_GeneratePreviewClient_RecvMsg_Call
RecvMsg is a helper method to define mock.On call
- m interface{}
func (*DocumentService_GeneratePreviewClient_Expecter) SendMsg ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) SendMsg(m interface{}) *DocumentService_GeneratePreviewClient_SendMsg_Call
SendMsg is a helper method to define mock.On call
- m interface{}
func (*DocumentService_GeneratePreviewClient_Expecter) Trailer ¶
func (_e *DocumentService_GeneratePreviewClient_Expecter) Trailer() *DocumentService_GeneratePreviewClient_Trailer_Call
Trailer is a helper method to define mock.On call
type DocumentService_GeneratePreviewClient_Header_Call ¶
DocumentService_GeneratePreviewClient_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*DocumentService_GeneratePreviewClient_Header_Call) Return ¶
func (_c *DocumentService_GeneratePreviewClient_Header_Call) Return(_a0 metadata.MD, _a1 error) *DocumentService_GeneratePreviewClient_Header_Call
func (*DocumentService_GeneratePreviewClient_Header_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_Header_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Header_Call
func (*DocumentService_GeneratePreviewClient_Header_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_Header_Call) RunAndReturn(run func() (metadata.MD, error)) *DocumentService_GeneratePreviewClient_Header_Call
type DocumentService_GeneratePreviewClient_RecvMsg_Call ¶
DocumentService_GeneratePreviewClient_RecvMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecvMsg'
func (*DocumentService_GeneratePreviewClient_RecvMsg_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_RecvMsg_Call) Run(run func(m interface{})) *DocumentService_GeneratePreviewClient_RecvMsg_Call
func (*DocumentService_GeneratePreviewClient_RecvMsg_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_RecvMsg_Call) RunAndReturn(run func(interface{}) error) *DocumentService_GeneratePreviewClient_RecvMsg_Call
type DocumentService_GeneratePreviewClient_Recv_Call ¶
DocumentService_GeneratePreviewClient_Recv_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recv'
func (*DocumentService_GeneratePreviewClient_Recv_Call) Return ¶
func (_c *DocumentService_GeneratePreviewClient_Recv_Call) Return(_a0 *v1.GeneratePreviewResponse, _a1 error) *DocumentService_GeneratePreviewClient_Recv_Call
func (*DocumentService_GeneratePreviewClient_Recv_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_Recv_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Recv_Call
func (*DocumentService_GeneratePreviewClient_Recv_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_Recv_Call) RunAndReturn(run func() (*v1.GeneratePreviewResponse, error)) *DocumentService_GeneratePreviewClient_Recv_Call
type DocumentService_GeneratePreviewClient_SendMsg_Call ¶
DocumentService_GeneratePreviewClient_SendMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendMsg'
func (*DocumentService_GeneratePreviewClient_SendMsg_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_SendMsg_Call) Run(run func(m interface{})) *DocumentService_GeneratePreviewClient_SendMsg_Call
func (*DocumentService_GeneratePreviewClient_SendMsg_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_SendMsg_Call) RunAndReturn(run func(interface{}) error) *DocumentService_GeneratePreviewClient_SendMsg_Call
type DocumentService_GeneratePreviewClient_Trailer_Call ¶
DocumentService_GeneratePreviewClient_Trailer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trailer'
func (*DocumentService_GeneratePreviewClient_Trailer_Call) Run ¶
func (_c *DocumentService_GeneratePreviewClient_Trailer_Call) Run(run func()) *DocumentService_GeneratePreviewClient_Trailer_Call
func (*DocumentService_GeneratePreviewClient_Trailer_Call) RunAndReturn ¶
func (_c *DocumentService_GeneratePreviewClient_Trailer_Call) RunAndReturn(run func() metadata.MD) *DocumentService_GeneratePreviewClient_Trailer_Call