A gRPC service is a Protocol Buffers declaration that groups remotely callable methods and defines their service interface. In a habits tracker, the Habits service organizes operations for registering and tracking habits. section 10.1.1
Define a service incrementally:
- Compile the declarations with protoc and the Go and gRPC plugins to produce Go implementation interfaces and message types. section 10.1.2
CreateHabit
A service method can accept CreateHabitRequest, containing a name and optional weekly frequency, and return CreateHabitResponse containing the created Habit.
