Skip to content

Instantly share code, notes, and snippets.

@laser
Created April 14, 2014 17:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laser/10667632 to your computer and use it in GitHub Desktop.
Save laser/10667632 to your computer and use it in GitHub Desktop.
03: UserService IDL
// services/user_service/interface.idl
struct UserProperties {
email string
full_name string
phone_number string [optional]
}
struct User extends UserProperties {
id int
}
interface UserService {
create_user(properties UserProperties) User
get_all_users() []User
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment