utils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BodyEnd = "</div></body>"
View Source
const BodyStart = `
<body class="bg-slate-200">
	<div class="flex items-center border-b border-slate-300">
		<img class="h-8 w-8 mx-4 my-6" src="data:image/png;base64,` + favicon + `" />
		<span class="text-xl">Go Scheduler - Dashboard</span>
	</div>
	<div class="px-8 py-4" hx-get="/jobs" hx-trigger="load" hx-swap="outerHTML">
`
View Source
const Footer = "</html>"
View Source
const Header = `` /* 288-byte string literal not displayed */

Variables

This section is empty.

Functions

func BuildJobOutput

func BuildJobOutput(job *gocron.Job) string

BuildJobOutput will build the html required to display the job data

func CreateFavicon

func CreateFavicon()

CreateFavicon will create a favicon file using the base64 encoded string favicon

Types

This section is empty.

Jump to

Keyboard shortcuts

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