Documentation ¶
Index ¶
- func ConfigDefaultClient(ops ...Option) (err error)
- func FetchPrintTask(context context.Context, req *domprinter.FetchPrintTaskReq, ...) (resp *domprinter.FetchPrintTaskResp, rawResponse *protocol.Response, err error)
- func Ping(context context.Context, req *domprinter.PingReq, ...) (resp *domprinter.PingResp, rawResponse *protocol.Response, err error)
- func SubmitPrintTask(context context.Context, req *domprinter.SubmitPrintTaskReq, ...) (resp *domprinter.SubmitPrintTaskResp, rawResponse *protocol.Response, ...)
- func UpdatePrintTask(context context.Context, req *domprinter.UpdatePrintTaskReq, ...) (resp *domprinter.UpdatePrintTaskResp, rawResponse *protocol.Response, ...)
- type Client
- type DOMPrinterServiceClient
- func (s *DOMPrinterServiceClient) FetchPrintTask(context context.Context, req *domprinter.FetchPrintTaskReq, ...) (resp *domprinter.FetchPrintTaskResp, rawResponse *protocol.Response, err error)
- func (s *DOMPrinterServiceClient) Ping(context context.Context, req *domprinter.PingReq, ...) (resp *domprinter.PingResp, rawResponse *protocol.Response, err error)
- func (s *DOMPrinterServiceClient) SubmitPrintTask(context context.Context, req *domprinter.SubmitPrintTaskReq, ...) (resp *domprinter.SubmitPrintTaskResp, rawResponse *protocol.Response, ...)
- func (s *DOMPrinterServiceClient) UpdatePrintTask(context context.Context, req *domprinter.UpdatePrintTaskReq, ...) (resp *domprinter.UpdatePrintTaskResp, rawResponse *protocol.Response, ...)
- type Option
- type Options
- type ResponseResultDecider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDefaultClient ¶
func FetchPrintTask ¶
func FetchPrintTask(context context.Context, req *domprinter.FetchPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.FetchPrintTaskResp, rawResponse *protocol.Response, err error)
func Ping ¶ added in v0.0.2
func Ping(context context.Context, req *domprinter.PingReq, reqOpt ...config.RequestOption) (resp *domprinter.PingResp, rawResponse *protocol.Response, err error)
func SubmitPrintTask ¶
func SubmitPrintTask(context context.Context, req *domprinter.SubmitPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.SubmitPrintTaskResp, rawResponse *protocol.Response, err error)
func UpdatePrintTask ¶
func UpdatePrintTask(context context.Context, req *domprinter.UpdatePrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.UpdatePrintTaskResp, rawResponse *protocol.Response, err error)
Types ¶
type Client ¶
type Client interface { FetchPrintTask(context context.Context, req *domprinter.FetchPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.FetchPrintTaskResp, rawResponse *protocol.Response, err error) SubmitPrintTask(context context.Context, req *domprinter.SubmitPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.SubmitPrintTaskResp, rawResponse *protocol.Response, err error) UpdatePrintTask(context context.Context, req *domprinter.UpdatePrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.UpdatePrintTaskResp, rawResponse *protocol.Response, err error) Ping(context context.Context, req *domprinter.PingReq, reqOpt ...config.RequestOption) (resp *domprinter.PingResp, rawResponse *protocol.Response, err error) }
type DOMPrinterServiceClient ¶
type DOMPrinterServiceClient struct {
// contains filtered or unexported fields
}
func (*DOMPrinterServiceClient) FetchPrintTask ¶
func (s *DOMPrinterServiceClient) FetchPrintTask(context context.Context, req *domprinter.FetchPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.FetchPrintTaskResp, rawResponse *protocol.Response, err error)
func (*DOMPrinterServiceClient) Ping ¶ added in v0.0.2
func (s *DOMPrinterServiceClient) Ping(context context.Context, req *domprinter.PingReq, reqOpt ...config.RequestOption) (resp *domprinter.PingResp, rawResponse *protocol.Response, err error)
func (*DOMPrinterServiceClient) SubmitPrintTask ¶
func (s *DOMPrinterServiceClient) SubmitPrintTask(context context.Context, req *domprinter.SubmitPrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.SubmitPrintTaskResp, rawResponse *protocol.Response, err error)
func (*DOMPrinterServiceClient) UpdatePrintTask ¶
func (s *DOMPrinterServiceClient) UpdatePrintTask(context context.Context, req *domprinter.UpdatePrintTaskReq, reqOpt ...config.RequestOption) (resp *domprinter.UpdatePrintTaskResp, rawResponse *protocol.Response, err error)
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Configuration of client
func WithHeader ¶
WithHeader is used to add the default header, which is carried by every request
func WithHertzClient ¶
WithHertzClient is used to register a custom hertz client
func WithHertzClientMiddleware ¶
func WithHertzClientMiddleware(mws ...hertz_client.Middleware) Option
WithHertzClientMiddleware is used to register the middleware for the hertz client
func WithHertzClientOption ¶
func WithHertzClientOption(opt ...config.ClientOption) Option
WithHertzClientOption is used to pass configuration for the hertz client
func WithResponseResultDecider ¶
func WithResponseResultDecider(decider ResponseResultDecider) Option
WithResponseResultDecider configure custom deserialization of http response to response struct
Click to show internal directories.
Click to hide internal directories.