Documentation ¶
Index ¶
- type Client
- func (c *Client) Close(_ context.Context) db.Error
- func (c *Client) CountInstances(ctx context.Context) (int64, db.Error)
- func (c *Client) CountTags(ctx context.Context) (int64, db.Error)
- func (c *Client) CreateAccount(ctx context.Context, account *models.Account) db.Error
- func (c *Client) CreateInstance(ctx context.Context, instance *models.Instance) db.Error
- func (c *Client) CreateTag(ctx context.Context, tag *models.Tag) db.Error
- func (c *Client) DoMigration(ctx context.Context) db.Error
- func (c *Client) IncAccountLoginCount(ctx context.Context, account *models.Account) db.Error
- func (c *Client) ReadAccount(ctx context.Context, id int64) (*models.Account, db.Error)
- func (c *Client) ReadAccountByUsername(ctx context.Context, username string, instanceID int64) (*models.Account, db.Error)
- func (c *Client) ReadInstance(ctx context.Context, id int64) (*models.Instance, db.Error)
- func (c *Client) ReadInstanceByDomain(ctx context.Context, domain string) (*models.Instance, db.Error)
- func (c *Client) ReadInstancesPage(ctx context.Context, index, count int) ([]*models.Instance, db.Error)
- func (c *Client) ReadTag(ctx context.Context, id int64) (*models.Tag, db.Error)
- func (c *Client) ReadTagByName(ctx context.Context, name string) (*models.Tag, db.Error)
- func (c *Client) ReadTagsPage(ctx context.Context, index, count int) ([]*models.Tag, db.Error)
- func (c *Client) UpdateAccount(ctx context.Context, account *models.Account) db.Error
- func (c *Client) UpdateInstance(ctx context.Context, instance *models.Instance) db.Error
- func (c *Client) UpdateTag(ctx context.Context, tags *models.Tag) db.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 DB interface compatible client for Bun.
func (*Client) CountInstances ¶
func (*Client) CreateAccount ¶
func (*Client) CreateInstance ¶
func (*Client) DoMigration ¶
DoMigration runs schema migrations on the database.
func (*Client) IncAccountLoginCount ¶
func (*Client) ReadAccount ¶
func (*Client) ReadAccountByUsername ¶
func (*Client) ReadInstance ¶
func (*Client) ReadInstanceByDomain ¶
func (*Client) ReadInstancesPage ¶
func (*Client) ReadTagByName ¶
func (*Client) ReadTagsPage ¶
func (*Client) UpdateAccount ¶
func (*Client) UpdateInstance ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.