Documentation
¶
Index ¶
- type Client
- type Option
- func WithArguments(args ...string) Option
- func WithEnvironment(key, value string) Option
- func WithHandler(handler transport.Handler) Option
- func WithInterceptor(interceptor transport.Interceptor) Option
- func WithListener(listener jsonrpc.Listener) Option
- func WithLogger(logger jsonrpc.Logger) Option
- func WithRunTimeout(timeoutMs int) Option
- func WithSecret(resource secret.Resource) Option
- func WithTrips(trips *transport.RoundTrips) Option
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represent a base
type Option ¶
type Option func(c *Client)
func WithArguments ¶
WithArguments is used to set the command line arguments for the base
func WithEnvironment ¶
WithEnvironment is used to set the environment for the base
func WithHandler ¶
func WithInterceptor ¶ added in v0.3.0
func WithInterceptor(interceptor transport.Interceptor) Option
WithInterceptor sets a custom interceptor for the client
func WithListener ¶
WithListener set listener on stdio base
func WithLogger ¶
func WithRunTimeout ¶
func WithSecret ¶
WithSecret allows to inject a secret resource into the base
Click to show internal directories.
Click to hide internal directories.