servicer

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 4 Imported by: 0

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

func (*Encourager) GetStatus

func (e *Encourager) GetStatus(context.Context, *empty.Empty) (*proto.Status, error)

GetStatus check the status of the backend and the availability of all dependencies.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL