Versions in this module Expand all Collapse all v1 v1.1.0 Jan 29, 2023 Changes in this version + const Accountag + const AuthHeaderkey + const AuthPayload + const AuthRefresh + const AuthTypeBearer + const Comment + const Like + const Posttag + const Qretweet + const Retweet + const Unlike + const Unqretweet + const Unretweet + var AlphaCheck = regexp.MustCompile(`^[a-zA-Z_\s]+$`).MatchString + var AlphaNumCheck = regexp.MustCompile(`^[a-zA-Z0-9_\s]+$`).MatchString + var NumCheck = regexp.MustCompile(`^[0-9]+$`).MatchString + var NumCheckByte = regexp.MustCompile(`^[0-9]+$`).Match + var StringsCheck = regexp.MustCompile(`^[a-zA-Z0-9_\s'"?!,.&%$@-]+$`).MatchString + func ConverterParam(context echo.Context, param string) int + func GetErrorValidator(c echo.Context, err error, tag string) (int, error) + func ValidateAlpha(fullname string, min, max int) error + func ValidateAlphanum(username string, min, max int) error + func ValidateEmail(email string, min, max int) error + func ValidateError(errorTag, errorString string) string + func ValidateID(num int) error + func ValidateString(strings string, min, max int) error + func ValidateURI[T int64 | int](context echo.Context, URIparam string) (T, error) + type BasicResponse map[string]interface + type CommentPostResp struct + Comment string + LikeAT int64 + PostID uuid.UUID + SumComment int64 + type CreateAccountsResponse struct + AccountType bool + CreatedAt int64 + Follower int64 + Following int64 + ID int64 + Owner string + PhototDir string + func AccountResponse(input db2.Account) CreateAccountsResponse + type CreatePostResponse struct + CreatedAt int64 + ID uuid.UUID + IsRetweet bool + PictureDescription string + PostFeature postfeatureresponse + func PostResponse(input db2.Post, input2 db2.PostFeature) CreatePostResponse + func PostResponsePointer(input *db2.Post, input2 db2.PostFeature) CreatePostResponse + type CreateUserResponse struct + Account CreateAccountsResponse + CreatedAt int64 + Email string + FullName string + Username string + func CreateUserResponses(input db2.User, input2 CreateAccountsResponse) CreateUserResponse + func UserResponse(input db2.User, account db2.Account) CreateUserResponse + type FollowResponse struct + Follow accountfollowresp + FromAccount CreateAccountsResponse + ToAccount CreateAccountsResponse + type GetPostResponses struct + CreatedAt int64 + ID uuid.UUID + PictureDescription string + PostComment []commentresp + PostFeature db2.PostFeature + func GetPostResponse(input db2.Post, input2 db2.PostFeature, comment []db2.ListCommentRow) GetPostResponses + type H = map[string]interface + type Handler struct + func (s *Handler) AuthAccount(c echo.Context) (int, *token.Payload, error) + type HandlerService interface + func NewHandler(store db.PostgresStore, gcpClient gcp.GCPService, redis redis.Store, ...) HandlerService + type Helper interface + AuthAccount func(c echo.Context) (int, *token.Payload, error) + type LikePostResp struct + LikeAT int64 + PostID uuid.UUID + SumLike int64 + type OwnerGetAccountResponse struct + Account db2.Account + QueueAccount []QueueResponse + func OwnerAccountResponse(Account db2.Account, Queue ...db2.ListQueueRow) OwnerGetAccountResponse + type PublicAccountResp struct + Accounts []PublicAccountResponse + PageInfo map[string]interface{} + func FuncPublicAccountsResp(input []db2.Account, pageInfo map[string]interface{}) PublicAccountResp + type PublicAccountResponse struct + AccountType bool + CreatedAt int64 + Follower int64 + Following int64 + ID int64 + Owner string + PhotoDir string + func FuncPublicAccountResponse(input []db2.Account) []PublicAccountResponse + type QouteRetweetPostResp struct + PostFeature CreatePostResponse + Qoute string + RetweetAt int64 + type QueueResponse struct + AccountID int64 + Owner string + type RetweetPostResp struct + PostID uuid.UUID + Postfeature CreatePostResponse + RetweetAt int64 + type RetweetResponse struct + Feature db2.PostFeature + Post db2.Post