-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass on API design and data model for clusters and items
- Loading branch information
1 parent
23b7736
commit 1ee6ab9
Showing
99 changed files
with
22,814 additions
and
3,430 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package bindings | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/Southclaws/storyden/app/resources/collection" | ||
collection_svc "github.com/Southclaws/storyden/app/services/collection" | ||
"github.com/Southclaws/storyden/internal/openapi" | ||
) | ||
|
||
type Clusters struct { | ||
collection_repo collection.Repository | ||
collection_svc collection_svc.Service | ||
} | ||
|
||
func NewClusters( | ||
collection_repo collection.Repository, | ||
collection_svc collection_svc.Service, | ||
) Clusters { | ||
return Clusters{ | ||
collection_repo: collection_repo, | ||
collection_svc: collection_svc, | ||
} | ||
} | ||
|
||
func (i *Clusters) ClusterList(ctx context.Context, request openapi.ClusterListRequestObject) (openapi.ClusterListResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterCreate(ctx context.Context, request openapi.ClusterCreateRequestObject) (openapi.ClusterCreateResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterGet(ctx context.Context, request openapi.ClusterGetRequestObject) (openapi.ClusterGetResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterUpdate(ctx context.Context, request openapi.ClusterUpdateRequestObject) (openapi.ClusterUpdateResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterRemoveCluster(ctx context.Context, request openapi.ClusterRemoveClusterRequestObject) (openapi.ClusterRemoveClusterResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterAddCluster(ctx context.Context, request openapi.ClusterAddClusterRequestObject) (openapi.ClusterAddClusterResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterRemoveItem(ctx context.Context, request openapi.ClusterRemoveItemRequestObject) (openapi.ClusterRemoveItemResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Clusters) ClusterAddItem(ctx context.Context, request openapi.ClusterAddItemRequestObject) (openapi.ClusterAddItemResponseObject, error) { | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package bindings | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/Southclaws/storyden/app/resources/collection" | ||
collection_svc "github.com/Southclaws/storyden/app/services/collection" | ||
"github.com/Southclaws/storyden/internal/openapi" | ||
) | ||
|
||
type Items struct { | ||
collection_repo collection.Repository | ||
collection_svc collection_svc.Service | ||
} | ||
|
||
func NewItems( | ||
collection_repo collection.Repository, | ||
collection_svc collection_svc.Service, | ||
) Items { | ||
return Items{ | ||
collection_repo: collection_repo, | ||
collection_svc: collection_svc, | ||
} | ||
} | ||
|
||
func (i *Items) ItemList(ctx context.Context, request openapi.ItemListRequestObject) (openapi.ItemListResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Items) ItemCreate(ctx context.Context, request openapi.ItemCreateRequestObject) (openapi.ItemCreateResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Items) ItemGet(ctx context.Context, request openapi.ItemGetRequestObject) (openapi.ItemGetResponseObject, error) { | ||
return nil, nil | ||
} | ||
|
||
func (i *Items) ItemUpdate(ctx context.Context, request openapi.ItemUpdateRequestObject) (openapi.ItemUpdateResponseObject, error) { | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.