Documentation ¶
Index ¶
- Variables
- func ConnectAndPing(ctx context.Context, authenticatedUri string) error
- func FailsWithAuthError(err error) bool
- type Client
- func (c *Client) Close() error
- func (c *Client) DeleteUser(ctx context.Context, dbName string, username string) error
- func (c *Client) Ping(ctx context.Context) error
- func (c *Client) UpdateUserPassword(ctx context.Context, dbName string, userName string, password string) error
- func (c *Client) UpsertUser(ctx context.Context, dbName string, userName string, password string) error
- func (c *Client) UserExists(ctx context.Context, dbName string, userName string) (bool, error)
- type ErrUserExists
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotConnected = fmt.Errorf("is not connected to db yet, call Connect() method")
Functions ¶
func FailsWithAuthError ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteUser ¶
func (*Client) UpdateUserPassword ¶
func (*Client) UpsertUser ¶
type ErrUserExists ¶
type ErrUserExists struct {
Message string `json:"message"`
}
func (ErrUserExists) Error ¶
func (e ErrUserExists) Error() string
Click to show internal directories.
Click to hide internal directories.