Documentation
¶
Index ¶
Constants ¶
View Source
const MAX_ANON_REACTIONS int = 6
Variables ¶
View Source
var IsTimeGuarded = false
Whether to mandate a 2 hour delay between posts or not
View Source
var (
Rl ratelimit.Limiter
)
Functions ¶
func AddReaction ¶
Adds a Reaction contained in the request body to databse, subject to
validation Input reaction should be of the format: {postId, descriptor, gravitasHash}
func GetHtmlChain ¶
Gets HTML markup for the frontend chain, dependent on current backup data
func GetHtmlReactions ¶
Gets html reactions that will be passed to frontend
func GetRawChain ¶
Gets the chain stored in backend as JSON. This inlcudes all posts and the
top 3 reactions for each post
func SetupDatabase ¶
func SetupDatabase()
Establishes database connection and controller object, else panics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.