fork of indigo with slightly nicer lexgen

better method param names for LexDo()

Changed files
+5 -3
lex
util
xrpc
+3 -1
lex/util/client.go
··· 11 11 ) 12 12 13 13 // API client interface used in lexgen. 14 + // 15 + // 'method' is the HTTP method type. 'inputEncoding' is the Content-Type for bodyData in Procedure calls. 'params' are query parameters. 'bodyData' should be either 'nil', an [io.Reader], or a type which can be marshalled to JSON. 'out' is optional; if not nil it should be a pointer to a type which can be un-Marshaled as JSON, for the response body. 14 16 type LexClient interface { 15 - LexDo(ctx context.Context, kind string, inpenc string, method string, params map[string]any, bodyobj any, out any) error 17 + LexDo(ctx context.Context, method string, inputEncoding string, endpoint string, params map[string]any, bodyData any, out any) error 16 18 }
+2 -2
xrpc/xrpc.go
··· 226 226 return nil 227 227 } 228 228 229 - func (c *Client) LexDo(ctx context.Context, kind string, inpenc string, method string, params map[string]any, bodyobj any, out any) error { 230 - return c.Do(ctx, kind, inpenc, method, params, bodyobj, out) 229 + func (c *Client) LexDo(ctx context.Context, method string, inputEncoding string, endpoint string, params map[string]any, bodyData any, out any) error { 230 + return c.Do(ctx, method, inputEncoding, endpoint, params, bodyData, out) 231 231 }