27 lines
474 B
Go
27 lines
474 B
Go
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
|