Created
May 2, 2014 21:31
-
-
Save laser/71e5da0949c783f355e1 to your computer and use it in GitHub Desktop.
TodoManager V2 IDL
This file contains hidden or 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
interface TodoManager { | |
// returns all Todos | |
readTodos() []Todo | |
// creates new Todo and returns it with an id | |
createTodo(todo TodoProperties) Todo | |
// updates Todo and returns it | |
updateTodo(todo Todo) Todo | |
// deletes Todo and returns true | |
deleteTodo(id int) bool | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment