Documentation
¶
Index ¶
- type AccountController
- func (c *AccountController) Create(ctx context.Context, account *models.Account) error
- func (c *AccountController) Delete(ctx context.Context, account *models.Account) error
- func (c *AccountController) Get(ctx context.Context, account *models.Account) error
- func (c *AccountController) GetCurrent(ctx context.Context, account *models.Account) error
- func (c *AccountController) List(ctx context.Context, accounts *[]models.Account) error
- func (c *AccountController) Update(ctx context.Context, account *models.Account) error
- type DeviceAuthController
- type FilesController
- type SitesController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
// contains filtered or unexported fields
}
AccountController is a controller for managing accounts.
func NewAccountController ¶
func NewAccountController(account ports.AccountRepository) *AccountController
NewAccountController creates a new AccountController.
func (*AccountController) GetCurrent ¶
GetCurrent is a method that returns the current account.
type DeviceAuthController ¶
type DeviceAuthController struct {
// contains filtered or unexported fields
}
func NewDeviceAuthController ¶
func NewDeviceAuthController(deviceAuthRepo ports.DeviceAuthRepository, accountRepo ports.AccountRepository) *DeviceAuthController
func (*DeviceAuthController) Begin ¶
func (c *DeviceAuthController) Begin(ctx context.Context) (*models.DeviceAuth, error)
Begin is a method that begins the device authentication process.
func (*DeviceAuthController) Finish ¶
func (c *DeviceAuthController) Finish(ctx context.Context, deviceAuth *models.DeviceAuth) (*models.Account, error)
Finish is a method that finishes the device authentication process.
type FilesController ¶ added in v0.3.0
type FilesController struct {
// contains filtered or unexported fields
}
func NewFilesController ¶ added in v0.3.0
func NewFilesController(repo ports.FilesRepository) *FilesController
func (*FilesController) UploadFile ¶ added in v0.3.0
UploadFile is a method that uploads a file to the repository.
type SitesController ¶
type SitesController struct {
// contains filtered or unexported fields
}
func NewSitesController ¶
func NewSitesController(sitesRepo ports.SitesRepository) *SitesController
Click to show internal directories.
Click to hide internal directories.