Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *rpcclient.JSONRPCClient // contains filtered or unexported fields }
Client is a JSON-RPC client for the Kwil gateway service. It use the JSONRPCClient from the rpcclient package for the actual JSON-RPC communication, and implements gateway service methods.
func NewClient ¶
NewClient creates a new gateway json rpc client, target should be the base URL of the gateway server, and should not include "/rpc/v1" as that is appended automatically. If the client does not have a cookie jar, an error is returned.
func (*Client) Authn ¶
Authn authenticates the client with the gateway. It sets the returned cookie in the client's cookie jar.
func (*Client) GetAuthnParameter ¶
GetAuthnParameter returns the auth parameter for the client.
Click to show internal directories.
Click to hide internal directories.