Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAndAddToRoot ¶
func LoadHTMLFromEmbedFS ¶
func StartServer ¶
func StartServer()
Types ¶
type PasteEntry ¶
type PasteEntry struct { Id string `json:"id"` ExpirationHours int `json:"expirationHours" form:"pasteExpirationHours"` Content string `json:"content" form:"pasteContent"` Password string `json:"password" form:"pastePassword"` DeleteOnRead bool `json:"deleteOnRead" form:"pasteDeleteOnRead"` Created time.Time `json:"created"` }
func NewPasteEntryFromDbItem ¶
func NewPasteEntryFromDbItem(item db.Item) PasteEntry
type WebConfig ¶
func GetWebConfig ¶
func GetWebConfig() *WebConfig
type WebHandler ¶
type WebHandler struct {
// contains filtered or unexported fields
}
func NewWebHandler ¶
func NewWebHandler(c *WebConfig, server *gin.Engine) *WebHandler
func (*WebHandler) Run ¶
func (h *WebHandler) Run() error
Click to show internal directories.
Click to hide internal directories.