Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement statically typed output types #1

Open
simar7 opened this issue Nov 14, 2019 · 0 comments
Open

Implement statically typed output types #1

simar7 opened this issue Nov 14, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@simar7
Copy link
Owner

simar7 commented Nov 14, 2019

Currently there are no statically defined return outputs for every Store implementation as there are for inputs.

So this would possible look something like the following:

type Store interface {
	Set(input types.SetItemInput) (types.SetItemOutput, error)
	BatchSet(input types.BatchSetItemInput) (types.BatchSetItemOutput, error)
	Get(input types.GetItemInput) (types.GetItemOutput, error)
	Delete(input types.DeleteItemInput) (types.DeleteItemOutput, error)
	Close() error
	Scan(input types.ScanInput) (types.ScanOutput, error)
}
@simar7 simar7 added the enhancement New feature or request label Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant