package
0.0.0-20240415041022-463b32c03d39
Repository: https://github.com/readr-media/readr-restful.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
BindQuery is used in NewRouterFilter, so it has corresponding variable fingerprints.
GetStructTags is designed to be a public function aiming at future reuse.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetListPollsFilter is the constructor for ListPollsFilter, exploited in router Default values are MaxResult = 20, Page = 1, OrderBy = -updated_at.
ValidateChoiceCreatedAt set created_at of Choice to current time.
ValidateChoiceInsertID remove the id field if necessary.
ValidateChoicePollID check the poll_id field, and set it to pollID if PollID is not valid, or PollID is valid but not equal to pollID.
ValidateChoiceUpdatedAt set updated_at of Choice to now.
ValidatePollCreatedAt set created_at of Poll to current time.
ValidatePollInsertID remove the id field if necessary.
ValidatePollUpdatedAt set updated_at of Poll to now.
# Variables
ChoiceData is the pointer instance of choiceData struct, which implements choiceInterface, to provide choice database abstraction.
PickData is the pointer instance of pickData struct, which implements pickInterface, to provide pick database abstraction.
PollData is the pointer instance of pollData struct, which implements pollInterface It provides data layer abstraction.
Router is the single routing instance used in registration in routes/routes.go.
# Structs
Choice is the struct mapping to table polls_choices storing choice data for each poll.
ChosenChoice is the mapping struct for table polls_chosen_choice to record the choosing history for every users.
No description provided by the author
ListPollsFilter is used to store GET filters.
Poll is the struct mapping to table polls.
PollDeserializer is used for polls input Unmarschalling.
PollSerializer is a single complete poll struct used for JSON output.
PubsubData is total message format of Google Pub/Sub.
PubsubMessage hosts the message body of Google Pub/Sub.
SQLO , not SOLO, stands for "SQL Object".