Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encourager ¶
type Encourager struct {
// contains filtered or unexported fields
}
Encourager gRPC servicer
func NewEncourager ¶
func NewEncourager(f encouragerFetcher) (*Encourager, error)
NewEncourager create a gRPC servicer using the given datastore interface
func (*Encourager) GetEncouragement ¶
func (e *Encourager) GetEncouragement(ctx context.Context, p *proto.EncouragementRequest) (*proto.Encouragement, error)
GetEncouragement gRPC route to return one random encouragement per day from the database
Click to show internal directories.
Click to hide internal directories.