Skip to content

Commit

Permalink
Added the init() method to the shadow backend code
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravkuber committed Sep 24, 2024
1 parent 0e18de0 commit 47b28a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file added lib/backend/s3backend/.client.go.swp
Binary file not shown.
8 changes: 7 additions & 1 deletion lib/backend/shadowbackend/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ import (
"gopkg.in/yaml.v2"
)

const _shadow = "shadow"

func init() {
backend.Register(_shadow, &factory{})
}

type factory struct{}

func (f *factory) Name() string {
return "shadow"
return _shadow
}

func (f *factory) Create(
Expand Down

0 comments on commit 47b28a3

Please sign in to comment.