backup-notify/api/types/types.go

27 lines
474 B
Go
Raw Normal View History

2024-04-21 21:46:40 -04:00
package types
import (
"database/sql"
"net/http"
"time"
"git.simponic.xyz/simponic/backup-notify/args"
)
type RequestContext struct {
DBConn *sql.DB
Args *args.Arguments
Id string
Start time.Time
TemplateData *map[string]interface{}
}
type BannerMessages struct {
Messages []string
}
type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
type ContinuationChain func(Continuation, Continuation) ContinuationChain