services

package
v0.0.0-...-9e605f1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollCount = 3
)

Variables

Functions

func BuildPollPbModel

func BuildPollPbModel(poll *pollModels.Poll) *pollPb.Poll

func CloseMQConn

func CloseMQConn()

func PollMQ2Redis

func PollMQ2Redis(ctx context.Context, rPoll *pollPb.Poll) error

Types

type PollServiceImpl

type PollServiceImpl struct {
	pollPb.PollServiceServer
}

func (PollServiceImpl) CreatePoll

func (s PollServiceImpl) CreatePoll(ctx context.Context, request *pollPb.CreatePollRequest) (resp *pollPb.CreatePollResponse, err error)

func (PollServiceImpl) FeedPoll

func (s PollServiceImpl) FeedPoll(ctx context.Context, request *pollPb.FeedPollRequest) (response *pollPb.FeedPollResponse, err error)

func (PollServiceImpl) GetChoiceWithPollUuidAndUsername

func (PollServiceImpl) GetPoll

func (s PollServiceImpl) GetPoll(ctx context.Context, request *pollPb.GetPollRequest) (response *pollPb.GetPollResponse, err error)

func (PollServiceImpl) ListPoll

func (s PollServiceImpl) ListPoll(ctx context.Context, request *pollPb.ListPollRequest) (resp *pollPb.ListPollResponse, err error)

func (PollServiceImpl) New

func (s PollServiceImpl) New()

func (PollServiceImpl) PollExist

func (s PollServiceImpl) PollExist(ctx context.Context, request *pollPb.PollExistRequest) (response *pollPb.PollExistResponse, err error)

Jump to

Keyboard shortcuts

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