Skip to content

Commit

Permalink
feat(driver): add args to init and update func
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 6, 2022
1 parent 492476d commit 79965ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package driver

import (
"context"
"github.com/alist-org/alist/v3/internal/model"
)

type Driver interface {
Expand All @@ -26,8 +27,9 @@ type Writer interface {
}

type Other interface {
Init(ctx context.Context) error
Update(ctx context.Context) error
Init(ctx context.Context, account model.Account) error
Update(ctx context.Context, account model.Account) error
Drop(ctx context.Context) error
Additional() Addition
// GetAccount transform additional field to string and assign to account's addition
GetAccount() model.Account
}

0 comments on commit 79965ab

Please sign in to comment.