Documentation
¶
Index ¶
- func Bind[H any](newHandler func(H, ...connect.HandlerOption) (string, http.Handler)) func(H) NewHandlerFunc
- type Client
- func (c *Client) Do() *Client
- func (c *Client) Err() *connect.Error
- func (c *Client) ExpectHeader(key string, want ...string) *Client
- func (c *Client) ExpectStatus(code int) *Client
- func (c *Client) Header(key, value string) *Client
- func (c *Client) In(msg proto.Message) *Client
- func (c *Client) Out(dst proto.Message) *Client
- func (c *Client) Procedure(proc string) *Client
- type NewHandlerFunc
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶ added in v0.0.3
func Bind[H any](newHandler func(H, ...connect.HandlerOption) (string, http.Handler)) func(H) NewHandlerFunc
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWith ¶ added in v0.0.3
func NewWith(t T, f NewHandlerFunc, opts ...connect.HandlerOption) *Client
func (*Client) ExpectStatus ¶
type NewHandlerFunc ¶ added in v0.0.3
type NewHandlerFunc = func(...connect.HandlerOption) (string, http.Handler)
Click to show internal directories.
Click to hide internal directories.