micro/client/test_request.go
Vasiliy Tolstov f3f2a9b737
Some checks failed
coverage / build (push) Failing after 56s
test / test (push) Successful in 2m30s
move to v4
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2025-01-25 15:48:10 +03:00

44 lines
691 B
Go

package client
import (
"go.unistack.org/micro/v4/codec"
)
type testRequest struct {
codec codec.Codec
body interface{}
service string
method string
endpoint string
contentType string
opts RequestOptions
}
func (r *testRequest) ContentType() string {
return r.contentType
}
func (r *testRequest) Service() string {
return r.service
}
func (r *testRequest) Method() string {
return r.method
}
func (r *testRequest) Endpoint() string {
return r.endpoint
}
func (r *testRequest) Body() interface{} {
return r.body
}
func (r *testRequest) Codec() codec.Codec {
return r.codec
}
func (r *testRequest) Stream() bool {
return r.opts.Stream
}