Feat: add List method to Handler interface / implement local.List

This commit is contained in:
HFO4
2020-04-24 11:08:07 +08:00
parent 6006ff4d22
commit f7311f906b
11 changed files with 97 additions and 2 deletions

View File

@@ -27,6 +27,10 @@ type Driver struct {
AuthInstance auth.Auth
}
func (handler Driver) List(ctx context.Context, path string) ([]response.Object, error) {
panic("implement me")
}
// getAPIUrl 获取接口请求地址
func (handler Driver) getAPIUrl(scope string, routes ...string) string {
serverURL, err := url.Parse(handler.Policy.Server)