Documentation
¶
Index ¶
- func WithPasswordAuth(pwd string) *auth.PasswordAuthOption
- type Client
- func (c *Client) AdoptCandidateAuth()
- func (c *Client) DiscardCandidateAuth()
- func (c *Client) Execute(request request.Request, response responselib.Response) (err error)
- func (c *Client) GetAuth() auth.Auther
- func (c *Client) GetHost() string
- func (c *Client) GetPort() int
- func (c *Client) GetServer() string
- func (c *Client) SetAuth(auth auth.Auther)
- func (c *Client) SetCandidateAuth(auth auth.Auther)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPasswordAuth ¶
func WithPasswordAuth(pwd string) *auth.PasswordAuthOption
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is not thread-safe
func NewClient ¶
NewClient creates a new client with the given host and port.
The client will use the given options to configure the client. You can use the sdk.WithPasswordAuth option to set the password for the client.
AS: sdk.NewClient("127.0.0.1", 8080, sdk.WithPasswordAuth("password"))
func NewClientWithPassword ¶
func (*Client) AdoptCandidateAuth ¶
func (c *Client) AdoptCandidateAuth()
func (*Client) DiscardCandidateAuth ¶
func (c *Client) DiscardCandidateAuth()
func (*Client) SetCandidateAuth ¶
Click to show internal directories.
Click to hide internal directories.