Documentation ¶
Index ¶
- Variables
- type CachedClient
- func (c *CachedClient) CreateSmartlockAuth(ctx context.Context, sa *models.SmartlocksAuthCreate) error
- func (c *CachedClient) CreateUser(ctx context.Context, u *User) (*User, error)
- func (c *CachedClient) DeleteUser(ctx context.Context, u *User) error
- func (c *CachedClient) FindSmartlockAuth(ctx context.Context, smartlockID int64, accoutnUserId int32) (*models.SmartlockAuth, error)
- func (c *CachedClient) FindUserByEmail(ctx context.Context, email string) (*User, error)
- type Client
- func (c *Client) CreateSmartlockAuth(ctx context.Context, sa *models.SmartlocksAuthCreate) error
- func (c *Client) CreateUser(ctx context.Context, u *User) (*User, error)
- func (c *Client) DeleteUser(ctx context.Context, u *User) error
- func (c *Client) FindUserByEmail(ctx context.Context, email string) (*User, error)
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("user not found")
Functions ¶
This section is empty.
Types ¶
type CachedClient ¶
type CachedClient struct {
// contains filtered or unexported fields
}
func NewCached ¶
func NewCached(nukiAPI *nukiclient.NukiAPI, beareToken string) *CachedClient
func NewCachedDefault ¶
func NewCachedDefault(bearerToken string) *CachedClient
func (*CachedClient) CreateSmartlockAuth ¶
func (c *CachedClient) CreateSmartlockAuth(ctx context.Context, sa *models.SmartlocksAuthCreate) error
func (*CachedClient) CreateUser ¶
func (*CachedClient) DeleteUser ¶
func (c *CachedClient) DeleteUser(ctx context.Context, u *User) error
func (*CachedClient) FindSmartlockAuth ¶
func (c *CachedClient) FindSmartlockAuth(ctx context.Context, smartlockID int64, accoutnUserId int32) (*models.SmartlockAuth, error)
func (*CachedClient) FindUserByEmail ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func (*Client) CreateSmartlockAuth ¶
CreateSmartlockAuth is async
func (*Client) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.