Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { Login(ctx context.Context, username blinkfile.Username, password string, requestData app.SessionRequestData) (app.Session, error) Logout(context.Context, app.Token) error IsAuthenticated(context.Context, app.Token) (blinkfile.UserID, bool, error) ListFiles(context.Context, blinkfile.UserID) ([]blinkfile.FileHeader, error) UploadFile(context.Context, app.UploadFileArgs) error DownloadFile(ctx context.Context, userID blinkfile.UserID, fileID blinkfile.FileID, pass string) (blinkfile.FileHeader, error) DeleteFiles(context.Context, blinkfile.UserID, []blinkfile.FileID) error SubscribeToFileChanges(blinkfile.UserID) (<-chan app.FileEvent, func()) CreateUser(context.Context, app.CreateUserArgs) error ChangeUsername(context.Context, app.ChangeUsernameArgs) error ChangePassword(context.Context, app.ChangePasswordArgs) (blinkfile.Username, error) ListUsers(context.Context) ([]blinkfile.User, error) GetUserByID(context.Context, blinkfile.UserID) (blinkfile.User, error) DeleteUsers(context.Context, []blinkfile.UserID) error app.Log }
type EditUserView ¶ added in v0.1.31
type EditUserView struct { LayoutView User UserView MessageView }
type ErrorView ¶
type FileDownloadView ¶
type FileDownloadView struct { LayoutView ID string MessageView }
type FilesView ¶
type FilesView struct { LayoutView Files []FileView MessageView }
type LayoutView ¶
type LayoutView struct {
Title string
}
type LoginView ¶
type LoginView struct { LayoutView MessageView }
type MessageView ¶
type TestAutomator ¶
type TestAutomator interface {
TestAutomation(ctx context.Context, args testautomation.Args) error
}
type UsersView ¶ added in v0.1.13
type UsersView struct { LayoutView Users []UserView MessageView }
Click to show internal directories.
Click to hide internal directories.