posts

package
v0.41.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const PageSize int = 25

Variables

View Source
var Streamer *sse.Server

Functions

func GetOnePage

func GetOnePage(opts PageOptions) (map[string]models.Post, map[string]models.User)

for now, let us use it for posts/flow exclusively only

func Router

func Router() chi.Router

Types

type PageOptions

type PageOptions struct {
	CallerID string          `json:"caller_id"`
	PageNo   int             `json:"page_no"`
	FlowList map[string]bool `json:"folow_list"`

	// flow subroutes booleans and vars
	SinglePost   bool   `json:"single_post" default:false`
	UserFlow     bool   `json:"user_flow" default:false`
	SinglePostID string `json:"single_post_id"`
	UserFlowNick string `json:"user_Flow_nick"`

	Hashtag     string `json:"hashtag" default:""`
	HideReplies bool   `json:"hide_replies" default:"false"`
}

Jump to

Keyboard shortcuts

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