frame

package
v0.0.0-...-3d06fe7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFrameButton

func GetFrameButton(index int, content string) template.HTML

func GetFramePostButton

func GetFramePostButton(url string) template.HTML

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(publicURL string, drawingService drawing.Service) *Controller

func (*Controller) Draw

func (c *Controller) Draw(ctx *gin.Context)

func (*Controller) GetRoot

func (c *Controller) GetRoot(ctx *gin.Context)

func (*Controller) PostRoot

func (c *Controller) PostRoot(ctx *gin.Context)

type Post

type Post struct {
	UntrustedData UntrustedData `json:"untrustedData"`
}

type UntrustedCastID

type UntrustedCastID struct {
	FID  int    `json:"fid"`
	Hash string `json:"hash"`
}

type UntrustedData

type UntrustedData struct {
	ButtonIndex int             `json:"buttonIndex"`
	CastID      UntrustedCastID `json:"castId"`
	FID         int             `json:"fid"`
}

Jump to

Keyboard shortcuts

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