Documentation ¶
Index ¶
- type Controller
- func (c Controller) CheckStreak(ctx context.Context, req *v1.CheckStreakRequest) (*v1.CheckStreakResponse, error)
- func (c Controller) GetStreaksHistory(ctx context.Context, req *v1.GetStreaksHistoryRequest) (*v1.GetStreaksHistoryResponse, error)
- func (c Controller) ListenEvents(ctx context.Context)
- func (c Controller) Register(reg grpc.ServiceRegistrar)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { v1.UnsafeStreakServiceServer // contains filtered or unexported fields }
Controller represents struct that implements StreakServiceServer.
func New ¶
func New(svc *service.Service) Controller
func (Controller) CheckStreak ¶
func (c Controller) CheckStreak( ctx context.Context, req *v1.CheckStreakRequest, ) (*v1.CheckStreakResponse, error)
func (Controller) GetStreaksHistory ¶
func (c Controller) GetStreaksHistory( ctx context.Context, req *v1.GetStreaksHistoryRequest, ) (*v1.GetStreaksHistoryResponse, error)
func (Controller) ListenEvents ¶
func (c Controller) ListenEvents(ctx context.Context)
func (Controller) Register ¶
func (c Controller) Register(reg grpc.ServiceRegistrar)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.