posts

package
v0.40.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 26 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