Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(obj interface{}) error
- func (c *Client) Delete(obj interface{}) error
- func (c *Client) ReadUser(id uuid.UUID) (*models.User, error)
- func (c *Client) ReadUserByCertHash(certhash string) (*models.User, error)
- func (c *Client) ReadUserByUsername(username string) (*models.User, error)
- func (c *Client) Update(obj interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a database client.
func (*Client) ReadUserByCertHash ¶
ReadUserByCertHash will read a user by certhash from the database
func (*Client) ReadUserByUsername ¶
ReadUserByUsername will read a user by username from the database
Click to show internal directories.
Click to hide internal directories.