Documentation ¶
Index ¶
- Constants
- Variables
- func BuildPollPbModel(poll *pollModels.Poll) *pollPb.Poll
- func CloseMQConn()
- func PollMQ2Redis(ctx context.Context, rPoll *pollPb.Poll) error
- type PollServiceImpl
- func (s PollServiceImpl) CreatePoll(ctx context.Context, request *pollPb.CreatePollRequest) (resp *pollPb.CreatePollResponse, err error)
- func (s PollServiceImpl) FeedPoll(ctx context.Context, request *pollPb.FeedPollRequest) (response *pollPb.FeedPollResponse, err error)
- func (s PollServiceImpl) GetChoiceWithPollUuidAndUsername(ctx context.Context, request *pollPb.GetChoiceWithPollUuidAndUsernameRequest) (response *pollPb.GetChoiceWithPollUuidAndUsernameResponse, err error)
- func (s PollServiceImpl) GetPoll(ctx context.Context, request *pollPb.GetPollRequest) (response *pollPb.GetPollResponse, err error)
- func (s PollServiceImpl) ListPoll(ctx context.Context, request *pollPb.ListPollRequest) (resp *pollPb.ListPollResponse, err error)
- func (s PollServiceImpl) New()
- func (s PollServiceImpl) PollExist(ctx context.Context, request *pollPb.PollExistRequest) (response *pollPb.PollExistResponse, err error)
Constants ¶
View Source
const (
PollCount = 3
)
Variables ¶
View Source
var CommentClient commentPb.CommentServiceClient
View Source
var UserClient userPb.UserServiceClient
Functions ¶
func BuildPollPbModel ¶
func BuildPollPbModel(poll *pollModels.Poll) *pollPb.Poll
func CloseMQConn ¶
func CloseMQConn()
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 (s PollServiceImpl) GetChoiceWithPollUuidAndUsername(ctx context.Context, request *pollPb.GetChoiceWithPollUuidAndUsernameRequest) (response *pollPb.GetChoiceWithPollUuidAndUsernameResponse, err error)
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)
Click to show internal directories.
Click to hide internal directories.